public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [Patch] fix Oops at shutdown guest
@ 2008-06-17  7:22 Akio Takebe
  2008-06-18 14:19 ` Avi Kivity
  0 siblings, 1 reply; 2+ messages in thread
From: Akio Takebe @ 2008-06-17  7:22 UTC (permalink / raw)
  To: kvm

Hi,

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

Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>

Best Regards,

Akio Takebe

---
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c
index 4f38f5c..f9427e2 100644
--- a/virt/kvm/kvm_main.c
+++ b/virt/kvm/kvm_main.c
@@ -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);
 }
 


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Patch] fix Oops at shutdown guest
  2008-06-17  7:22 [Patch] fix Oops at shutdown guest Akio Takebe
@ 2008-06-18 14:19 ` Avi Kivity
  0 siblings, 0 replies; 2+ messages in thread
From: Avi Kivity @ 2008-06-18 14:19 UTC (permalink / raw)
  To: Akio Takebe; +Cc: kvm

Akio Takebe wrote:
> Hi,
>
> I got a Oops message when I shutdown a guest on x86_32 machine.
> The patch fixes this issue.
>
>   

Applied, thanks.

-- 
I have a truly marvellous patch that fixes the bug which this
signature is too narrow to contain.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-06-18 14:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-17  7:22 [Patch] fix Oops at shutdown guest Akio Takebe
2008-06-18 14:19 ` Avi Kivity

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox