diff options
author | Avi Kivity <avi@qumranet.com> | 2008-03-23 12:18:19 +0200 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2008-03-25 10:22:16 +0200 |
commit | 4b1a80fa65aa9e2ec5696998856136c886385538 (patch) | |
tree | 95c32481bc474e0b74a5a6f060e9817ff8775260 /arch/x86 | |
parent | 5dc832628229d2736fab10523566855c3cda622d (diff) | |
download | op-kernel-dev-4b1a80fa65aa9e2ec5696998856136c886385538.zip op-kernel-dev-4b1a80fa65aa9e2ec5696998856136c886385538.tar.gz |
KVM: MMU: Fix is_rmap_pte() with io ptes
is_rmap_pte() doesn't take into account io ptes, which have the avail bit set.
Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/kvm/mmu.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c index d8172aa..e49c4d4 100644 --- a/arch/x86/kvm/mmu.c +++ b/arch/x86/kvm/mmu.c @@ -222,8 +222,7 @@ static int is_io_pte(unsigned long pte) static int is_rmap_pte(u64 pte) { - return pte != shadow_trap_nonpresent_pte - && pte != shadow_notrap_nonpresent_pte; + return is_shadow_present_pte(pte); } static gfn_t pse36_gfn_delta(u32 gpte) |