mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-06 19:07:52 +00:00
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>
This commit is contained in:
parent
6d5315b3a6
commit
8d5cf1610d
1 changed files with 1 additions and 1 deletions
|
@ -304,7 +304,7 @@ static int is_nx(struct kvm_vcpu *vcpu)
|
|||
|
||||
static int is_shadow_present_pte(u64 pte)
|
||||
{
|
||||
return pte & PT_PRESENT_MASK && !is_mmio_spte(pte);
|
||||
return (pte & 0xFFFFFFFFull) && !is_mmio_spte(pte);
|
||||
}
|
||||
|
||||
static int is_large_pte(u64 pte)
|
||||
|
|
Loading…
Reference in a new issue