KVM: MMU: fix rmap_remove on non present sptes
authorMarcelo Tosatti <mtosatti@redhat.com>
Mon, 25 Oct 2010 13:58:22 +0000 (11:58 -0200)
committerMarcelo Tosatti <mtosatti@redhat.com>
Fri, 5 Nov 2010 16:42:26 +0000 (14:42 -0200)
drop_spte should not attempt to rmap_remove a non present shadow pte.

This fixes a BUG_ON seen on kvm-autotest.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Reported-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/mmu.c

Simple merge