All of lore.kernel.org
 help / color / mirror / Atom feed
* [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

* Re: [PATCH] fix 32 bit guest freeze on second reboot
       [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-07  9:20   ` Avi Kivity
  1 sibling, 1 reply; 5+ messages in thread
From: Dor Laor @ 2007-02-05 14:53 UTC (permalink / raw)
  To: Joerg Roedel, 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. This time with a patch
>attached.

Although it seems logical to apply the patch anyway, it does'nt fix the
problem. On 80% of the times I tried rebooting debian 32bit guest, the
second tried the guest did not manage to complete the reboot andwas
stuck.

>
>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

* Re: [PATCH] fix 32 bit guest freeze on second reboot
       [not found]     ` <64F9B87B6B770947A9F8391472E032160A4D1F22-yEcIvxbTEBqsx+V+t5oei8rau4O3wl8o3fe8/T/H7NteoWH0uzbU5w@public.gmane.org>
@ 2007-02-06  9:39       ` Joerg Roedel
  0 siblings, 0 replies; 5+ messages in thread
From: Joerg Roedel @ 2007-02-06  9:39 UTC (permalink / raw)
  To: Dor Laor; +Cc: kvm-devel, Avi Kivity

On Mon, Feb 05, 2007 at 06:53:40AM -0800, Dor Laor wrote:
> 
> >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.
> 
> Although it seems logical to apply the patch anyway, it does'nt fix the
> problem. On 80% of the times I tried rebooting debian 32bit guest, the
> second tried the guest did not manage to complete the reboot andwas
> stuck.

Ok. Right. Seems I should have did more tests with the patch before
submission. I will further debug it next time.

Joerg

-- 
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

* Re: [PATCH] fix 32 bit guest freeze on second reboot
       [not found] ` <20070205120412.GG8804-5C7GfCeVMHo@public.gmane.org>
  2007-02-05 14:53   ` Dor Laor
@ 2007-02-07  9:20   ` Avi Kivity
  1 sibling, 0 replies; 5+ messages in thread
From: Avi Kivity @ 2007-02-07  9:20 UTC (permalink / raw)
  To: Joerg Roedel; +Cc: kvm-devel

Joerg Roedel wrote:
> 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>
>
>   

Applied, thanks.

-- 
Do not meddle in the internals of kernels, for they are subtle and quick to panic.


-------------------------------------------------------------------------
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 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

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 12:04 [PATCH] fix 32 bit guest freeze on second reboot 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
  -- strict thread matches above, loose matches on Subject: below --
2007-02-05 11:12 Joerg Roedel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.