summaryrefslogtreecommitdiffstats
path: root/arch/x86/xen
diff options
context:
space:
mode:
authorBoris Ostrovsky <boris.ostrovsky@oracle.com>2015-09-21 09:09:28 -0400
committerDavid Vrabel <david.vrabel@citrix.com>2015-09-28 14:48:52 +0100
commit2ecf91b6d8b0ee8ef38aa7ea2a0fe0cd57b6ca50 (patch)
treee854923e5165a1f27f9781345bd74c54c9a30a7d /arch/x86/xen
parent24f775a6605a8ffc697c0767fc7ea85656ddb958 (diff)
downloadlinux-2ecf91b6d8b0ee8ef38aa7ea2a0fe0cd57b6ca50.tar.gz
linux-2ecf91b6d8b0ee8ef38aa7ea2a0fe0cd57b6ca50.tar.bz2
linux-2ecf91b6d8b0ee8ef38aa7ea2a0fe0cd57b6ca50.zip
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. Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com> Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Diffstat (limited to 'arch/x86/xen')
-rw-r--r--arch/x86/xen/enlighten.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/xen/enlighten.c b/arch/x86/xen/enlighten.c
index 30d12afe52ed..1f1dbd2949a4 100644
--- a/arch/x86/xen/enlighten.c
+++ b/arch/x86/xen/enlighten.c
@@ -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))