Skip to contentSkip to conversation

fix Oops at shutdown guest

PATCH Applied Akio Takebe 2 participants 2 messages Jun 17, 2008 – Jun 18, 2008 KVM

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix Oops at shutdown guest

Hi,

I got a Oops message when I shutdown a guest on x86_32 machine. The patch fixes this issue.

Best Regards,

Akio Takebe

---

virt/kvm/kvm_main.c +1 -1
index 4f38f5c..f9427e2 100644
@@ -262,11 +262,11 @@ static void kvm_destroy_vm(struct kvm *kvm)
 	spin_unlock(&kvm_lock);
 	kvm_io_bus_destroy(&kvm->pio_bus);
 	kvm_io_bus_destroy(&kvm->mmio_bus);
-	kvm_arch_destroy_vm(kvm);
 #ifdef KVM_COALESCED_MMIO_PAGE_OFFSET
 	if (kvm->coalesced_mmio_ring != NULL)
 		free_page((unsigned long)kvm->coalesced_mmio_ring);
 #endif
+	kvm_arch_destroy_vm(kvm);
 	mmdrop(mm);
 }
 
Applied
#1 lore raw
Quoted 6 lines · Akio Takebe

Hi,

I got a Oops message when I shutdown a guest on x86_32 machine. The patch fixes this issue.

Applied, thanks.

Signature · 2 lines
I have a truly marvellous patch that fixes the bug which this
signature is too narrow to contain.