forked from sauce-archives/mac-osx-on-kvm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
99-ignore_msrs.patch.kvm-kmod
46 lines (43 loc) · 1.27 KB
/
99-ignore_msrs.patch.kvm-kmod
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
Mac OS X touches some MSRs that are not yet "white-listed", ignore them for now.
kvm: cpu0 ignored rdmsr: 0xe2
kvm: cpu0 ignored wrmsr: 0xe2 data 8
kvm: cpu0 ignored rdmsr: 0xe2
kvm: cpu0 ignored wrmsr: 0xe2 data 800
kvm: cpu0 ignored rdmsr: 0xe2
kvm: cpu0 ignored wrmsr: 0xe2 data 8
kvm: cpu1 ignored rdmsr: 0xe2
kvm: cpu1 ignored wrmsr: 0xe2 data 8
kvm: cpu1 ignored rdmsr: 0xe2
kvm: cpu1 ignored wrmsr: 0xe2 data 800
- Rene Rebe <[email protected]>
--- kvm-kmod-2.6.37/x86/x86.c.vanilla 2011-02-22 15:37:22.357977769 +0000
+++ kvm-kmod-2.6.37/x86/x86.c 2011-02-22 15:43:04.605311459 +0000
@@ -1593,6 +1593,9 @@
} else
return set_msr_hyperv(vcpu, msr, data);
break;
+ case 0xe2: /* PMG_CST_CONFIG_CONTROL */
+ ;
+ break;
default:
if (msr && (msr == vcpu->kvm->arch.xen_hvm_config.msr))
return xen_hvm_config(vcpu, data);
@@ -1600,6 +1603,8 @@
pr_unimpl(vcpu, "unhandled wrmsr: 0x%x data %llx\n",
msr, data);
return 1;
+ data = 0;
+ break;
} else {
pr_unimpl(vcpu, "ignored wrmsr: 0x%x data %llx\n",
msr, data);
@@ -1844,6 +1849,9 @@
} else
return get_msr_hyperv(vcpu, msr, pdata);
break;
+ case 0xe2: /* PMG_CST_CONFIG_CONTROL */
+ data = 0;
+ break;
default:
if (!ignore_msrs) {
pr_unimpl(vcpu, "unhandled rdmsr: 0x%x\n", msr);