linux/virt/kvm
Glauber Costa 7d8fece678 KVM: Don't destroy vcpu in case vcpu_setup fails
One of vcpu_setup responsibilities is to do mmu initialization.
However, in case we fail in kvm_arch_vcpu_reset, before we get the
chance to init mmu. OTOH, vcpu_destroy will attempt to destroy mmu,
triggering a bug. Keeping track of whether or not mmu is initialized
would unnecessarily complicate things. Rather, we just make return,
making sure any needed uninitialization is done before we return, in
case we fail.

Signed-off-by: Glauber Costa <glommer@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
2008-10-15 14:25:10 +02:00
..
coalesced_mmio.c KVM: Add coalesced MMIO support (common part) 2008-07-20 12:42:31 +03:00
coalesced_mmio.h KVM: Add coalesced MMIO support (common part) 2008-07-20 12:42:31 +03:00
ioapic.c KVM: ia64: add a dummy irq ack notification 2008-10-15 10:15:21 +02:00
ioapic.h KVM: irq ack notification 2008-10-15 10:15:16 +02:00
iodev.h KVM: kvm_io_device: extend in_range() to manage len and write attribute 2008-07-20 12:42:30 +03:00
kvm_main.c KVM: Don't destroy vcpu in case vcpu_setup fails 2008-10-15 14:25:10 +02:00
kvm_trace.c KVM: kvmtrace: replace get_cycles with ktime_get v3 2008-10-15 10:15:15 +02:00