public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Avi Kivity <avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
To: Baruch Even <baruch-6P1Dz+XQpLLYtjvyW6yDsg@public.gmane.org>
Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: KVM 28: Reboot fails in Linux
Date: Thu, 21 Jun 2007 16:16:51 +0300	[thread overview]
Message-ID: <467A7A43.7010201@qumranet.com> (raw)
In-Reply-To: <4677A9D1.5010806-6P1Dz+XQpLLYtjvyW6yDsg@public.gmane.org>

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

Baruch Even wrote:
> Avi Kivity wrote:
>> Baruch Even wrote:
>>> I'm using KVM 28 and when I'm trying to reboot the guest vm kvm 
>>> fails with the following message:
>>>
>>>   
>>
>> Can you be more specific as to what you're doing?  what host cpu, 
>> bitness, guest OS, bitness, actions to reproduce?
>
> The host CPU is Intel Core Duo, running in 32 bits. The host and the 
> guest are Debian, the host is unstable (sid) and the guest is stable 
> (etch).
>
> The guest is a clean install of Debian etch with the Standard and 
> Desktop tasks. The action to reproduce is choosing the 
> System->Shutdown from the Gnome menu. The guest starts the shutdown 
> process and somewhere near or at the end the kvm process ends and I 
> get the output I sent on the host console.
>

This may have been fixed by the attached patch (which has already been 
committed).   Let me know if it still fails.


-- 
error compiling committee.c: too many arguments to function


[-- Attachment #2: reinit-tss.patch --]
[-- Type: text/x-patch, Size: 1044 bytes --]

commit 030421334ae91b7f6302a1cfe9c971a8991b4870
Author: Avi Kivity <avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
Date:   Wed Jun 20 11:20:04 2007 +0300

    KVM: VMX: Reinitialize the real-mode tss when entering real mode
    
    Protected mode code may have corrupted the real-mode tss, so re-initialize
    it when switching to real mode.
    
    Signed-off-by: Avi Kivity <avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org>

diff --git a/drivers/kvm/vmx.c b/drivers/kvm/vmx.c
index b47ddcc..42a9163 100644
--- a/drivers/kvm/vmx.c
+++ b/drivers/kvm/vmx.c
@@ -31,6 +31,8 @@
 MODULE_AUTHOR("Qumranet");
 MODULE_LICENSE("GPL");
 
+static int init_rmode_tss(struct kvm *kvm);
+
 static DEFINE_PER_CPU(struct vmcs *, vmxarea);
 static DEFINE_PER_CPU(struct vmcs *, current_vmcs);
 
@@ -951,6 +953,8 @@ static void enter_rmode(struct kvm_vcpu *vcpu)
 	fix_rmode_seg(VCPU_SREG_DS, &vcpu->rmode.ds);
 	fix_rmode_seg(VCPU_SREG_GS, &vcpu->rmode.gs);
 	fix_rmode_seg(VCPU_SREG_FS, &vcpu->rmode.fs);
+
+	init_rmode_tss(vcpu->kvm);
 }
 
 #ifdef CONFIG_X86_64

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

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

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

  parent reply	other threads:[~2007-06-21 13:16 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-18 20:22 KVM 28: Reboot fails in Linux Baruch Even
     [not found] ` <4676E972.8010303-6P1Dz+XQpLLYtjvyW6yDsg@public.gmane.org>
2007-06-19  7:41   ` Avi Kivity
     [not found]     ` <4677889D.6040505-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-06-19 10:02       ` Baruch Even
     [not found]         ` <4677A9D1.5010806-6P1Dz+XQpLLYtjvyW6yDsg@public.gmane.org>
2007-06-21 13:16           ` Avi Kivity [this message]
2007-06-23 16:39   ` KVM-28 + RHEL5 = mouse disappears Alessandro Sardo
     [not found]     ` <467D4CC6.2070706-8RLafaVCWuNeoWH0uzbU5w@public.gmane.org>
2007-06-24  8:57       ` Avi Kivity

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=467A7A43.7010201@qumranet.com \
    --to=avi-atkuwr5tajbwk0htik3j/w@public.gmane.org \
    --cc=baruch-6P1Dz+XQpLLYtjvyW6yDsg@public.gmane.org \
    --cc=kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox