Commit 4b1a80fa authored by Avi Kivity's avatar Avi Kivity

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: default avatarAvi Kivity <avi@qumranet.com>
parent 5dc83262
...@@ -222,8 +222,7 @@ static int is_io_pte(unsigned long pte) ...@@ -222,8 +222,7 @@ static int is_io_pte(unsigned long pte)
static int is_rmap_pte(u64 pte) static int is_rmap_pte(u64 pte)
{ {
return pte != shadow_trap_nonpresent_pte return is_shadow_present_pte(pte);
&& pte != shadow_notrap_nonpresent_pte;
} }
static gfn_t pse36_gfn_delta(u32 gpte) static gfn_t pse36_gfn_delta(u32 gpte)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment