]> rtime.felk.cvut.cz Git - lisovros/linux_canprio.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)
commita357bd229cdaf37a41798d238ab50b34c71dd0d6
tree0a2801b53c7df2c8494bc5c572574cb29ad4aeee
parenta3aa51cfaafe9179add88db20506ccb07e030b47
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