kvm: x86: vmx: cleanup handle_ept_violation
authorTiejun Chen <tiejun.chen@intel.com>
Tue, 18 Nov 2014 09:12:56 +0000 (17:12 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 18 Nov 2014 10:07:53 +0000 (11:07 +0100)
commit81ed33e4aaba65cda6367b27a21e2de9862e955f
tree168bd1f0ad7f9cdfccedaf44aeb8ba5680abeb42
parentf210f7572bedf3320599e8b2d8e8ec2d96270d0b
kvm: x86: vmx: cleanup handle_ept_violation

Instead, just use PFERR_{FETCH, PRESENT, WRITE}_MASK
inside handle_ept_violation() for slightly better code.

Signed-off-by: Tiejun Chen <tiejun.chen@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx.c