Skip to content

Commit

Permalink
KVM: MMU: Fix is_rmap_pte() with io ptes
Browse files Browse the repository at this point in the history
is_rmap_pte() doesn't take into account io ptes, which have the avail bit set.

Signed-off-by: Avi Kivity <avi@qumranet.com>
  • Loading branch information
Avi Kivity committed Mar 25, 2008
1 parent 5dc8326 commit 4b1a80f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions arch/x86/kvm/mmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4b1a80f

Please sign in to comment.