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)
commiteb45fda45f915c7ca3e81e005e853cb770da2642
tree9c10bbdb52a1a1752cac30343a3c6f4d79ef4a88
parentedde99ce05290e50ce0b3495d209e54e6349ab47
KVM: MMU: fix rmap_remove on non present sptes

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