From mboxrd@z Thu Jan 1 00:00:00 1970 From: tadomeit Subject: Re: guest reboot hanging - kvm: unhandled wrmsr: 0xc0000083 Date: Tue, 31 Jul 2007 22:34:05 +0200 Message-ID: <46AF9CBD.7080209@compuserve.de> References: <46A9D46A.8050003@compuserve.de> <46AF6018.3060108@qumranet.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------050608050409010904030108" Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org To: Avi Kivity Return-path: In-Reply-To: <46AF6018.3060108-atKUWr5tajBWk0Htik3J/w@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org This is a multi-part message in MIME format. --------------050608050409010904030108 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit 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? > > --------------050608050409010904030108 Content-Type: text/x-patch; name="i386-no-long-mode.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="i386-no-long-mode.patch" commit d9ff68d1414c64477a06bb9d35633f7c45d4942a Author: Avi Kivity 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 #include +#include #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) --------------050608050409010904030108 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- 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/ --------------050608050409010904030108 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ kvm-devel mailing list kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/kvm-devel --------------050608050409010904030108--