]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: MMU: Add validate_direct_spte() helper
authorAvi Kivity <avi@redhat.com>
Tue, 13 Jul 2010 11:27:07 +0000 (14:27 +0300)
committerAvi Kivity <avi@redhat.com>
Mon, 2 Aug 2010 03:40:43 +0000 (06:40 +0300)
commitdbbb12b73c3641588cbbcd5c6cc68be5a2579450
tree0a2801b53c7df2c8494bc5c572574cb29ad4aeee
parent94a4d439b122fe39f4dbb77bb25f457262da0847
KVM: MMU: Add validate_direct_spte() helper

Add a helper to verify that a direct shadow page is valid wrt the required
access permissions; drop the page if it is not valid.

Reviewed-by: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/mmu.c
arch/x86/kvm/paging_tmpl.h