"-cpu host" AMD Host
Is “–cpu host” supported on AMD hosts?
Whenever I try to use this option on a Windows Vista/7 client, I get blue screen.
Removing the option, the client works fine.
Host kernel 2.6.31.4. Userspace is qemu-kvm-0.11.0. (Previous versions fail too)
/proc/cpuinfo snippet:
vendor_id : AuthenticAMD
cpu family : 15
model : 107
model name : AMD Athlon(tm) 64 X2 Dual Core Processor 5200+
Thanks,
--
Marty
Quoted 3 lines · Martin Gallant
Is “–cpu host” supported on AMD hosts?
Yes.
Quoted 4 lines
Whenever I try to use this option on a Windows Vista/7 client, I get blue screen.
Removing the option, the client works fine.
Quoted 9 lines
Host kernel 2.6.31.4. Userspace is qemu-kvm-0.11.0. (Previous versions fail too)
/proc/cpuinfosnippet:vendor_id: AuthenticAMD
cpu family : 15
model : 107
model name : AMD Athlon(tm) 64 X2 Dual Core Processor 5200+
Please post the flags : field as well.
Signature · 1 line
error compiling committee.c: too many arguments to function
Quoted 13 lines · Avi Kivity
Quoted 2 lines · Martin Gallant
Is “–cpu host” supported on AMD hosts?
Yes.
Quoted 7 lines
Whenever I try to use this option on a Windows Vista/7 client, I get blue screen.
Removing the option, the client works fine.Host kernel 2.6.31.4. Userspace is qemu-kvm-0.11.0. (Previous versions fail too)
Quoted 8 lines
Quoted 5 lines
/proc/cpuinfosnippet:vendor_id: AuthenticAMD
cpu family : 15
model : 107
model name : AMD Athlon(tm) 64 X2 Dual Core Processor 5200+Please post the flags : field as well.
You might try the attached patch.
Signature · 1 line
error compiling committee.c: too many arguments to function
Quoted 1 line
From
d8e9cf4f4f688873456b297d78be70c5c328489cMon Sep 17 00:00:00 2001
From: Andre Przywara <[email protected]>
Date: Wed, 24 Jun 2009 12:44:34 +0200
Subject: [PATCH -stable] KVM: ignore reads from AMDs C1E enabled MSR
If the Linux kernel detects an C1E capable AMD processor (K8 RevF and higher), it will access a certain MSR on every attempt to go to halt. Explicitly handle this read and return 0 to let KVM run a Linux guest with the native AMD host CPU propagated to the guest.
--- arch/x86/kvm/x86.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
arch/x86/kvm/x86.c +1 -0
@@ -949,6 +949,7 @@ int kvm_get_msr_common(struct kvm_vcpu *vcpu, u32 msr, u64 *pdata)case MSR_P6_EVNTSEL0 :case MSR_P6_EVNTSEL1 :case MSR_K7_EVNTSEL0 : +case MSR_K8_INT_PENDING_MSG : data =0 ;break ;case MSR_MTRRcap:
Signature · 1 line
1.6.5.2
I still see the problem with the kernel patch applied.
/proc/cpuinfo attached
Will post a formal bug report with all dumps in a few minutes.
Thanks for the quick response.
--
Marty
-----Original Message-----
From: Avi Kivity [mailto:[email protected]]
Sent: Tuesday, October 27, 2009 4:58 AM
To: Martin Gallant
Cc: [email protected]
Subject: Re: "-cpu host" AMD Host
Quoted 13 lines · Avi Kivity
Quoted 2 lines · Martin Gallant
Is "-cpu host" supported on AMD hosts?
Yes.
Quoted 7 lines
Whenever I try to use this option on a Windows Vista/7 client, I get blue screen.
Removing the option, the client works fine.Host kernel 2.6.31.4. Userspace is qemu-kvm-0.11.0. (Previous versions fail too)
Quoted 8 lines
Quoted 5 lines
/proc/cpuinfosnippet:vendor_id: AuthenticAMD
cpu family : 15
model : 107
model name : AMD Athlon(tm) 64 X2 Dual Core Processor 5200+Please post the flags : field as well.
You might try the attached patch.
--
error compiling committee.c: too many arguments to function
processor : 0vendor_id : AuthenticAMD
cpu family : 15
model : 107
model name : AMD Athlon(tm) 64 X2 Dual Core Processor 5200+
stepping : 2
cpu MHz : 2700.000
cache size : 512 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 2
apicid : 0
initial apicid : 0
fpu : yesfpu_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 syscall nx mmxext fxsr_opt rdtscp lm 3dnowext 3dnow rep_good extd_apicid pni cx16 lahf_lm cmp_legacy svm extapic cr8_legacy 3dnowprefetch
bogomips : 5429.84
TLB size : 1024 4K pages
clflush size : 64cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management: ts fid vid ttp tm stc 100mhzsteps
processor : 1vendor_id : AuthenticAMD
cpu family : 15
model : 107
model name : AMD Athlon(tm) 64 X2 Dual Core Processor 5200+
stepping : 2
cpu MHz : 2700.000
cache size : 512 KB
physical id : 0
siblings : 2
core id : 1
cpu cores : 2
apicid : 1
initial apicid : 1
fpu : yesfpu_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 syscall nx mmxext fxsr_opt rdtscp lm 3dnowext 3dnow rep_good extd_apicid pni cx16 lahf_lm cmp_legacy svm extapic cr8_legacy 3dnowprefetch
bogomips : 5429.84
TLB size : 1024 4K pages
clflush size : 64cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management: ts fid vid ttp tm stc 100mhzsteps