]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/x86/kvm/mmu.c
KVM: MMU: Fix is_rmap_pte() with io ptes
[linux-2.6-omap-h63xx.git] / arch / x86 / kvm / mmu.c
index d8172aabc660de7503c43b697fea470d81f7eb9a..e49c4d433c0fd6047538d2d13dc910783dce369f 100644 (file)
@@ -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)