OSDN Git Service

kvm: x86: mmu: Verify that restored PTE has needed perms in fast page fault
authorJunaid Shahid <junaids@google.com>
Thu, 22 Dec 2016 04:29:32 +0000 (20:29 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 27 Jan 2017 14:46:40 +0000 (15:46 +0100)
commitd3e328f2cb01f6f09259a5810baae3edf5416076
tree31891cea71837f04ce0cde26826b2054c60ef906
parentd162f30a7cebe9731fd331419b3a14089d0b41e3
kvm: x86: mmu: Verify that restored PTE has needed perms in fast page fault

Before fast page fault restores an access track PTE back to a regular PTE,
it now also verifies that the restored PTE would grant the necessary
permissions for the faulting access to succeed. If not, it falls back
to the slow page fault path.

Signed-off-by: Junaid Shahid <junaids@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu.c