KVM: nVMX: consult PFEC_MASK and PFEC_MATCH when generating #PF VM-exit
authorEugene Korenevsky <ekorenevsky@gmail.com>
Tue, 16 Dec 2014 19:35:53 +0000 (22:35 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 8 Jan 2015 21:45:16 +0000 (22:45 +0100)
commit19d5f10b3ad08f596d2682404af9a3a9030aa684
tree0852fe1b555324a82c49ade591e137bd15f17fb8
parente9ac033e6b6970c7061725fc6824b3933eb5a0e7
KVM: nVMX: consult PFEC_MASK and PFEC_MATCH when generating #PF VM-exit

When generating #PF VM-exit, check equality:
(PFEC & PFEC_MASK) == PFEC_MATCH
If there is equality, the 14 bit of exception bitmap is used to take decision
about generating #PF VM-exit. If there is inequality, inverted 14 bit is used.

Signed-off-by: Eugene Korenevsky <ekorenevsky@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx.c