xen/x86: Don't try to write syscall-related MSRs for PV guests
Subsystems (2)
Boris Ostrovsky
reviewerPATCH 1/1 xen/x86: Don't try to write syscall-related MSRs for PV guests
For PV guests these registers are set up by hypervisor and thus should not be written by the guest. The comment in xen_write_msr_safe() says so but we still write the MSRs, causing the hypervisor to print a warning.
--- arch/x86/xen/enlighten.c | 1 + 1 file changed, 1 insertion(+)
arch/x86/xen/enlighten.c +1 -0
@@ -1077,6 +1077,7 @@ static int xen_write_msr_safe(unsigned int msr, unsigned low, unsigned high)/* Fast syscall setup is all done in hypercalls, so these are all ignored. Stub them out here to stop Xen console noise. */ +break ;default :if (!pmu_msr_write (msr, low, high, &ret))
Signature · 1 line
2.1.0
Quoted 6 lines · Boris Ostrovsky
For PV guests these registers are set up by hypervisor and thus should not be written by the guest. The comment in
xen_write_msr_safe()says so but we still write the MSRs, causing the hypervisor to print a warning.Signed-off-by Boris Ostrovsky <[email protected]>
Quoted 19 lines
--- arch/x86/xen/enlighten.c | 1 + 1 file changed, 1 insertion(+)arch/x86/xen/enlighten.c +1
-0@@ -1077,6 +1077,7 @@ static int xen_write_msr_safe(unsigned int msr, unsigned low, unsigned high)/* Fast syscall setup is all done in hypercalls, so these are all ignored. Stub them out here to stop Xen console noise. */ +break ;default :if (!pmu_msr_write (msr, low, high, &ret))Signature · 1 line
2.1.0
Quoted 6 lines · Boris Ostrovsky
For PV guests these registers are set up by hypervisor and thus should not be written by the guest. The comment in
xen_write_msr_safe()says so but we still write the MSRs, causing the hypervisor to print a warning.Signed-off-by Boris Ostrovsky <[email protected]>
Quoted 19 lines
--- arch/x86/xen/enlighten.c | 1 + 1 file changed, 1 insertion(+)arch/x86/xen/enlighten.c +1
-0@@ -1077,6 +1077,7 @@ static int xen_write_msr_safe(unsigned int msr, unsigned low, unsigned high)/* Fast syscall setup is all done in hypercalls, so these are all ignored. Stub them out here to stop Xen console noise. */ +break ;default :if (!pmu_msr_write (msr, low, high, &ret))Signature · 1 line
2.1.0
David Vrabel
AppliedQuoted 4 lines · Boris Ostrovsky
For PV guests these registers are set up by hypervisor and thus should not be written by the guest. The comment in
xen_write_msr_safe()says so but we still write the MSRs, causing the hypervisor to print a warning.
Applied to for-linus-4.3, thanks.
David
David Vrabel
AppliedQuoted 4 lines · Boris Ostrovsky
For PV guests these registers are set up by hypervisor and thus should not be written by the guest. The comment in
xen_write_msr_safe()says so but we still write the MSRs, causing the hypervisor to print a warning.
Applied to for-linus-4.3, thanks.
David