public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fix 32 bit guest freeze on second reboot
@ 2007-02-05 11:12 Joerg Roedel
  0 siblings, 0 replies; 5+ messages in thread
From: Joerg Roedel @ 2007-02-05 11:12 UTC (permalink / raw)
  To: Avi Kivity; +Cc: kvm-devel

From: Joerg Roedel <joerg.roedel-5C7GfCeVMHo@public.gmane.org>

This patch fixes a bug detected with 32 bit Linux guests. There the
second try to reboot hangs the guest machine. It seems to be necessary
to fix all dataseg registers for 32 bit guests.

Signed-off-by: Joerg Roedel <joerg.roedel-5C7GfCeVMHo@public.gmane.org>

-- 
Joerg Roedel
Operating System Research Center
AMD Saxony LLC & Co. KG



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

^ permalink raw reply	[flat|nested] 5+ messages in thread
* [PATCH] fix 32 bit guest freeze on second reboot
@ 2007-02-05 12:04 Joerg Roedel
       [not found] ` <20070205120412.GG8804-5C7GfCeVMHo@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Joerg Roedel @ 2007-02-05 12:04 UTC (permalink / raw)
  To: Avi Kivity; +Cc: kvm-devel

[-- Attachment #1: Type: text/plain, Size: 432 bytes --]

From: Joerg Roedel <joerg.roedel-5C7GfCeVMHo@public.gmane.org>

This patch fixes a bug detected with 32 bit Linux guests. There the
second try to reboot hangs the guest machine. It seems to be necessary
to fix all dataseg registers for 32 bit guests. This time with a patch
attached.

Signed-off-by: Joerg Roedel <joerg.roedel-5C7GfCeVMHo@public.gmane.org>

-- 
Joerg Roedel
Operating System Research Center
AMD Saxony LLC & Co. KG

[-- Attachment #2: kvm-32guest-reboot-fix.patch --]
[-- Type: text/plain, Size: 438 bytes --]

Index: qemu/qemu-kvm.c
===================================================================
--- qemu/qemu-kvm.c	(revision 4384)
+++ qemu/qemu-kvm.c	(working copy)
@@ -195,6 +195,8 @@
 	    if (!(env->cr[0] & CR0_PG_MASK)) {
 		    fix_realmode_dataseg(&sregs.ds);
 		    fix_realmode_dataseg(&sregs.es);
+		    fix_realmode_dataseg(&sregs.fs);
+		    fix_realmode_dataseg(&sregs.gs);
 		    fix_realmode_dataseg(&sregs.ss);
 	    }
     }

[-- Attachment #3: Type: text/plain, Size: 374 bytes --]

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

[-- Attachment #4: Type: text/plain, Size: 186 bytes --]

_______________________________________________
kvm-devel mailing list
kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/kvm-devel

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

end of thread, other threads:[~2007-02-07  9:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-05 11:12 [PATCH] fix 32 bit guest freeze on second reboot Joerg Roedel
  -- strict thread matches above, loose matches on Subject: below --
2007-02-05 12:04 Joerg Roedel
     [not found] ` <20070205120412.GG8804-5C7GfCeVMHo@public.gmane.org>
2007-02-05 14:53   ` Dor Laor
     [not found]     ` <64F9B87B6B770947A9F8391472E032160A4D1F22-yEcIvxbTEBqsx+V+t5oei8rau4O3wl8o3fe8/T/H7NteoWH0uzbU5w@public.gmane.org>
2007-02-06  9:39       ` Joerg Roedel
2007-02-07  9:20   ` Avi Kivity

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