public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* KVM 28: Reboot fails in Linux
@ 2007-06-18 20:22 Baruch Even
       [not found] ` <4676E972.8010303-6P1Dz+XQpLLYtjvyW6yDsg@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Baruch Even @ 2007-06-18 20:22 UTC (permalink / raw)
  To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

I'm using KVM 28 and when I'm trying to reboot the guest vm kvm fails 
with the following message:

  exception 13 (0)
rax 00000000000000c0 rbx 0000000000000000 rcx 0000000000000000 rdx 
0000000000000600
rsi 0000000000000000 rdi 0000000000000000 rsp 0000000000000000 rbp 
0000000000000000
r8  0000000000000000 r9  0000000000000000 r10 0000000000000000 r11 
0000000000000000
r12 0000000000000000 r13 0000000000000000 r14 0000000000000000 r15 
0000000000000000
rip 000000000000e063 rflags 00033046
cs f000 (000f0000/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0)
ds 0000 (00000000/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0)
es 0000 (00000000/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0)
ss 0000 (00000000/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0)
fs 0000 (00000000/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0)
gs 0000 (00000000/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0)
tr 0000 (00000000/0000ffff p 1 dpl 0 db 0 s 0 type b l 0 g 0 avl 0)
ldt 0000 (00000000/0000ffff p 1 dpl 0 db 0 s 0 type 2 l 0 g 0 avl 0)
gdt 0/ffff
idt 0/ffff
cr0 60000010 cr2 0 cr3 0 cr4 0 cr8 0 efer 0
code: b7 9e d2 cc b7 ae d2 cc b7 be d2 cc b7 ce d2 cc b7 de d2 cc b7 ee 
d2 cc b7 fe d2 cc b7 0e


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

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

* Re: KVM 28: Reboot fails in Linux
       [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-23 16:39   ` KVM-28 + RHEL5 = mouse disappears Alessandro Sardo
  1 sibling, 1 reply; 6+ messages in thread
From: Avi Kivity @ 2007-06-19  7:41 UTC (permalink / raw)
  To: Baruch Even; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

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?

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


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

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

* Re: KVM 28: Reboot fails in Linux
       [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>
  0 siblings, 1 reply; 6+ messages in thread
From: Baruch Even @ 2007-06-19 10:02 UTC (permalink / raw)
  To: Avi Kivity; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

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.

Let me know if you need any more info.

Baruch


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

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

* Re: KVM 28: Reboot fails in Linux
       [not found]         ` <4677A9D1.5010806-6P1Dz+XQpLLYtjvyW6yDsg@public.gmane.org>
@ 2007-06-21 13:16           ` Avi Kivity
  0 siblings, 0 replies; 6+ messages in thread
From: Avi Kivity @ 2007-06-21 13:16 UTC (permalink / raw)
  To: Baruch Even; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

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

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

* KVM-28 + RHEL5 = mouse disappears
       [not found] ` <4676E972.8010303-6P1Dz+XQpLLYtjvyW6yDsg@public.gmane.org>
  2007-06-19  7:41   ` Avi Kivity
@ 2007-06-23 16:39   ` Alessandro Sardo
       [not found]     ` <467D4CC6.2070706-8RLafaVCWuNeoWH0uzbU5w@public.gmane.org>
  1 sibling, 1 reply; 6+ messages in thread
From: Alessandro Sardo @ 2007-06-23 16:39 UTC (permalink / raw)
  To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

Hello list,

I am experiencing the following problem with the latest KVM release. 
Whenever I start a guest and click on its window, the mouse cursor will 
"disappear" (actually, it just gets stuck in one of the corners and will 
not move away from there). So, mouse inside the guest is totally unusable.

Here is some basic info:

* CPU model: Intel Core 2 Duo
* KVM version: KVM-28
* Host: RHEL5 x86_64, kernel 2.6.18-8.1.6
* Guest: RHEL5 x86_64
* qemu command line: qemu -hda VM_test.img -cdrom RHEL5_x86_64.iso -boot 
d -m 512
* the problem DOES appear with the -no-kvm switch as well

I can reproduce my problem by following these steps:

* create a guest image
* start a RHEL5/CentOS5 installation
* wait for Anaconda to finish configuring the Xorg server (the mouse 
cursor will be visible in the middle of the window)
* click on the window and move the mouse - the cursor will get stuck on 
one of the corners and not move anymore

I would like to point out that I have used KVM-26 on top of RHEL5's 
kernel 2.6.18-8.1.3 for weeks without any problem. Today, I upgraded 
both KVM and kernel to their latest versions and something broke. Last 
thing, typing dmesg I get this line:

"kvm: emulating exchange as write"

though I guess that is unrelated to the mouse problem (it gets printed 
before focusing the VM window).

Please let me know how can I help testing/debugging this issue.

Thanks,


Alessandro

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

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

* Re: KVM-28 + RHEL5 = mouse disappears
       [not found]     ` <467D4CC6.2070706-8RLafaVCWuNeoWH0uzbU5w@public.gmane.org>
@ 2007-06-24  8:57       ` Avi Kivity
  0 siblings, 0 replies; 6+ messages in thread
From: Avi Kivity @ 2007-06-24  8:57 UTC (permalink / raw)
  To: Alessandro Sardo; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

Alessandro Sardo wrote:
> Hello list,
>
> I am experiencing the following problem with the latest KVM release. 
> Whenever I start a guest and click on its window, the mouse cursor will 
> "disappear" (actually, it just gets stuck in one of the corners and will 
> not move away from there). So, mouse inside the guest is totally unusable.
>
> Here is some basic info:
>
> * CPU model: Intel Core 2 Duo
> * KVM version: KVM-28
> * Host: RHEL5 x86_64, kernel 2.6.18-8.1.6
> * Guest: RHEL5 x86_64
> * qemu command line: qemu -hda VM_test.img -cdrom RHEL5_x86_64.iso -boot 
> d -m 512
> * the problem DOES appear with the -no-kvm switch as well
>
> I can reproduce my problem by following these steps:
>
> * create a guest image
> * start a RHEL5/CentOS5 installation
> * wait for Anaconda to finish configuring the Xorg server (the mouse 
> cursor will be visible in the middle of the window)
> * click on the window and move the mouse - the cursor will get stuck on 
> one of the corners and not move anymore
>
> I would like to point out that I have used KVM-26 on top of RHEL5's 
> kernel 2.6.18-8.1.3 for weeks without any problem. Today, I upgraded 
> both KVM and kernel to their latest versions and something broke. Last 
> thing, typing dmesg I get this line:
>
>   

Looks like the guest no longer recognizes the mouse.  Can you post the 
guest's dmesg, and Xorg.0.log?

We need to see whether the guest image, kvm, or the host kernel is 
broken.  Does downgrading kvm and/or the host kernel correct the problem?


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

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

end of thread, other threads:[~2007-06-24  8:57 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

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