* guest reboot hanging - kvm: unhandled wrmsr: 0xc0000083
@ 2007-07-27 11:18 tadomeit
[not found] ` <46A9D46A.8050003-Crc3fnV8OO0Aey3BTtE3dg@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: tadomeit @ 2007-07-27 11:18 UTC (permalink / raw)
To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
[-- Attachment #1: Type: text/plain, Size: 1537 bytes --]
Hi,
I've installed the latest version kvm-33 on my PC. All guests (tested
with several knoppix version and SuSE 10.1 install dvd image) hanging on
reboot. In the host syslog I found a lot of messages (>1000): "kernel:
kvm: unhandled wrmsr: 0xc0000083"
I've tested with the original kernel kvm modules and with the modules
delivered with kvm-33, I tried the version kvm-32 - no success - every
time the same behaviour!
My startup command (without problems if using using the -no-kvm option):
qemu-system-x86_64 -boot d -m 384 -cdrom
/data/temp/SUSE-Linux-10.1-GM-DVD-i386.iso
My box:
fritz:~ # uname -a
Linux fritz 2.6.22.1-default #3 SMP Fri Jul 27 12:22:16 CEST 2007 i686
athlon i386 GNU/Linux
fritz:~ # cat /proc/cpuinfo
processor : 0 (same for core 1)
vendor_id : AuthenticAMD
cpu family : 15
model : 75
model name : AMD Athlon(tm) 64 X2 Dual Core Processor 4200+
stepping : 2
cpu MHz : 1000.000
cache size : 512 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 2
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
mca cmov pat pse36 clflush mmx fxsr sse sse2 ht s
yscall nx mmxext fxsr_opt rdtscp lm 3dnowext 3dnow pni cx16 lahf_lm
cmp_legacy svm extapic cr8legacy ts fid vid ttp tm s
tc
bogomips : 2005.81
clflush size : 64
Best regards
Tom
[-- Attachment #2: .config --]
[-- Type: application/x-config, Size: 40502 bytes --]
[-- Attachment #3: Type: text/plain, Size: 315 bytes --]
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
[-- 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] 3+ messages in thread
* Re: guest reboot hanging - kvm: unhandled wrmsr: 0xc0000083
[not found] ` <46A9D46A.8050003-Crc3fnV8OO0Aey3BTtE3dg@public.gmane.org>
@ 2007-07-31 16:15 ` Avi Kivity
[not found] ` <46AF6018.3060108-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: Avi Kivity @ 2007-07-31 16:15 UTC (permalink / raw)
To: tadomeit; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
[-- Attachment #1: Type: text/plain, Size: 560 bytes --]
tadomeit wrote:
> Hi,
>
> I've installed the latest version kvm-33 on my PC. All guests (tested
> with several knoppix version and SuSE 10.1 install dvd image) hanging on
> reboot. In the host syslog I found a lot of messages (>1000): "kernel:
> kvm: unhandled wrmsr: 0xc0000083"
>
> I've tested with the original kernel kvm modules and with the modules
> delivered with kvm-33, I tried the version kvm-32 - no success - every
> time the same behaviour!
>
>
Can you try the attached patch?
--
error compiling committee.c: too many arguments to function
[-- Attachment #2: i386-no-long-mode.patch --]
[-- Type: text/x-patch, Size: 1060 bytes --]
commit d9ff68d1414c64477a06bb9d35633f7c45d4942a
Author: Avi Kivity <avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
Date: Mon Jul 30 12:48:15 2007 +0300
kvm: qemu: disable long mode on 32-bit kernels
diff --git a/qemu/qemu-kvm.c b/qemu/qemu-kvm.c
index a19219c..4ba93d8 100644
--- a/qemu/qemu-kvm.c
+++ b/qemu/qemu-kvm.c
@@ -18,6 +18,7 @@ int kvm_allowed = KVM_ALLOWED_DEFAULT;
#include "qemu-kvm.h"
#include <kvmctl.h>
#include <pthread.h>
+#include <sys/utsname.h>
#define MSR_IA32_TSC 0x10
@@ -999,11 +1000,15 @@ static void do_cpuid_ent(struct kvm_cpuid_entry *e, uint32_t function,
e->edx = env->regs[R_EDX];
if (function == 0x80000001) {
uint32_t h_eax, h_edx;
+ struct utsname utsname;
+ int lm_capable_kernel;
host_cpuid(function, &h_eax, NULL, NULL, &h_edx);
+ uname(&utsname);
+ lm_capable_kernel = strcmp(utsname.machine, "x86_64") == 0;
// long mode
- if ((h_edx & 0x20000000) == 0)
+ if ((h_edx & 0x20000000) == 0 || !lm_capable_kernel)
e->edx &= ~0x20000000u;
// syscall
if ((h_edx & 0x00000800) == 0)
[-- Attachment #3: Type: text/plain, Size: 315 bytes --]
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
[-- 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] 3+ messages in thread
* Re: guest reboot hanging - kvm: unhandled wrmsr: 0xc0000083
[not found] ` <46AF6018.3060108-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
@ 2007-07-31 20:34 ` tadomeit
0 siblings, 0 replies; 3+ messages in thread
From: tadomeit @ 2007-07-31 20:34 UTC (permalink / raw)
To: Avi Kivity; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
[-- Attachment #1: Type: text/plain, Size: 683 bytes --]
Hi,
thank you for the answer! I've tried the patch - but with the same
result :-( (with 2.6.22 original and the kvm-33 modules)
Best regards
Tom
Avi Kivity schrieb:
> tadomeit wrote:
>> Hi,
>>
>> I've installed the latest version kvm-33 on my PC. All guests (tested
>> with several knoppix version and SuSE 10.1 install dvd image) hanging on
>> reboot. In the host syslog I found a lot of messages (>1000): "kernel:
>> kvm: unhandled wrmsr: 0xc0000083"
>>
>> I've tested with the original kernel kvm modules and with the modules
>> delivered with kvm-33, I tried the version kvm-32 - no success - every
>> time the same behaviour!
>>
>>
> Can you try the attached patch?
>
>
[-- Attachment #2: i386-no-long-mode.patch --]
[-- Type: text/x-patch, Size: 1060 bytes --]
commit d9ff68d1414c64477a06bb9d35633f7c45d4942a
Author: Avi Kivity <avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
Date: Mon Jul 30 12:48:15 2007 +0300
kvm: qemu: disable long mode on 32-bit kernels
diff --git a/qemu/qemu-kvm.c b/qemu/qemu-kvm.c
index a19219c..4ba93d8 100644
--- a/qemu/qemu-kvm.c
+++ b/qemu/qemu-kvm.c
@@ -18,6 +18,7 @@ int kvm_allowed = KVM_ALLOWED_DEFAULT;
#include "qemu-kvm.h"
#include <kvmctl.h>
#include <pthread.h>
+#include <sys/utsname.h>
#define MSR_IA32_TSC 0x10
@@ -999,11 +1000,15 @@ static void do_cpuid_ent(struct kvm_cpuid_entry *e, uint32_t function,
e->edx = env->regs[R_EDX];
if (function == 0x80000001) {
uint32_t h_eax, h_edx;
+ struct utsname utsname;
+ int lm_capable_kernel;
host_cpuid(function, &h_eax, NULL, NULL, &h_edx);
+ uname(&utsname);
+ lm_capable_kernel = strcmp(utsname.machine, "x86_64") == 0;
// long mode
- if ((h_edx & 0x20000000) == 0)
+ if ((h_edx & 0x20000000) == 0 || !lm_capable_kernel)
e->edx &= ~0x20000000u;
// syscall
if ((h_edx & 0x00000800) == 0)
[-- Attachment #3: Type: text/plain, Size: 315 bytes --]
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
[-- 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] 3+ messages in thread
end of thread, other threads:[~2007-07-31 20:34 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-27 11:18 guest reboot hanging - kvm: unhandled wrmsr: 0xc0000083 tadomeit
[not found] ` <46A9D46A.8050003-Crc3fnV8OO0Aey3BTtE3dg@public.gmane.org>
2007-07-31 16:15 ` Avi Kivity
[not found] ` <46AF6018.3060108-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-07-31 20:34 ` tadomeit
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox