* [PATCH] KVM: Ignore the writes to MSR_K7_HWCR(3)
@ 2012-02-21 21:44 Nicolae Mogoreanu
2012-03-07 11:00 ` Avi Kivity
0 siblings, 1 reply; 2+ messages in thread
From: Nicolae Mogoreanu @ 2012-02-21 21:44 UTC (permalink / raw)
To: Avi Kivity, Marcelo Tosatti, Joerg Roedel, kvm
From: Nicolae Mogoreanu <mogoreanu@gmail.com>
KVM: Ignore the writes to MSR_K7_HWCR(3)
When CPUID Fn8000_0001_EAX reports 0x00100f22 Windows 7 x64 guest
tries to set bit 3 in MSRC001_0015 in nt!KiDisableCacheErrataSource
and fails. This patch will ignore this step and allow things to move
on without having to fake CPUID value.
Signed-off-by: Nicolae Mogoreanu <mogoreanu@gmail.com>
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index c9d99e5..289466a 100644
--- a/arch/x86/kvm/x86.c
+++ b/arch/x86/kvm/x86.c
@@ -1547,6 +1547,7 @@ int kvm_set_msr_common(struct kvm_vcpu *vcpu,
u32 msr, u64 data)
case MSR_K7_HWCR:
data &= ~(u64)0x40; /* ignore flush filter disable */
data &= ~(u64)0x100; /* ignore ignne emulation enable */
+ data &= ~(u64)0x8; /* ignore TLB cache disable */
if (data != 0) {
pr_unimpl(vcpu, "unimplemented HWCR wrmsr: 0x%llx\n",
data);
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] KVM: Ignore the writes to MSR_K7_HWCR(3)
2012-02-21 21:44 [PATCH] KVM: Ignore the writes to MSR_K7_HWCR(3) Nicolae Mogoreanu
@ 2012-03-07 11:00 ` Avi Kivity
0 siblings, 0 replies; 2+ messages in thread
From: Avi Kivity @ 2012-03-07 11:00 UTC (permalink / raw)
To: Nicolae Mogoreanu; +Cc: Marcelo Tosatti, Joerg Roedel, kvm
On 02/21/2012 11:44 PM, Nicolae Mogoreanu wrote:
> From: Nicolae Mogoreanu <mogoreanu@gmail.com>
> KVM: Ignore the writes to MSR_K7_HWCR(3)
>
> When CPUID Fn8000_0001_EAX reports 0x00100f22 Windows 7 x64 guest
> tries to set bit 3 in MSRC001_0015 in nt!KiDisableCacheErrataSource
> and fails. This patch will ignore this step and allow things to move
> on without having to fake CPUID value.
>
>
Thanks, applied.
--
error compiling committee.c: too many arguments to function
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-03-07 11:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-21 21:44 [PATCH] KVM: Ignore the writes to MSR_K7_HWCR(3) Nicolae Mogoreanu
2012-03-07 11:00 ` Avi Kivity
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox