KVM: MMU: check reserved bits only if CR4.PSE=1 or CR4.PAE=1
commitf815bce8940bc28e42e6b924825bb31df2a4bff5
authorXiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Fri, 19 Mar 2010 09:58:53 +0000 (19 17:58 +0800)
committerAvi Kivity <avi@redhat.com>
Mon, 17 May 2010 09:16:42 +0000 (17 12:16 +0300)
tree1c3df0f34d93d6f84c82dba30211ddfb08c051b1
parent041b1359a29b9301bc8baed6efcdbad29f80f6af
KVM: MMU: check reserved bits only if CR4.PSE=1 or CR4.PAE=1

- Check reserved bits only if CR4.PAE=1 or CR4.PSE=1 when guest #PF occurs
- Fix a typo in reset_rsvds_bits_mask()

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