]> git.baikalelectronics.ru Git - kernel.git/commit
kvm: mmu: extend the is_present check to 32 bits
authorBandan Das <bsd@redhat.com>
Tue, 12 Jul 2016 22:18:48 +0000 (18:18 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 14 Jul 2016 07:02:46 +0000 (09:02 +0200)
commit7ceb067ac13e532a8b7e0ebee2a344eb3936b4fd
treea6451ae6fb09cb3661db7db118aeed87d4e61de8
parent5360178b290863b0fa545d4f197453b300de4951
kvm: mmu: extend the is_present check to 32 bits

This is safe because this function is called
on host controlled page table and non-present/non-MMIO
sptes never use bits 1..31. For the EPT case, this
ensures that cases where only the execute bit is set
is marked valid.

Signed-off-by: Bandan Das <bsd@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu.c