Skip to contentSkip to conversation

xen: suppress known wrmsrs

PATCH Applied Jeremy Fitzhardinge 2 participants 2 messages Jul 24, 2008 – Jul 28, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xen: suppress known wrmsrs

In general, Xen doesn't support wrmsr from an unprivileged domain; it just ends up ignoring the instruction and printing a message on the console.

Given that there are sets of MSRs we know the kernel will try to write to, but we don't care, just eat them in xen_write_msr to cut down on console noise.

---
arch/x86/xen/enlighten.c | 13 +++++++++++++

1 file changed, 13 insertions(+)

===================================================================

arch/x86/xen/enlighten.c +0 -0
@@ -803,6 +803,19 @@
			ret = -EFAULT;
		break;

#endif
+
+ case MSR_STAR:
+ case MSR_CSTAR:
+ case MSR_LSTAR:
+ case MSR_SYSCALL_MASK:
+ case MSR_IA32_SYSENTER_CS:
+ case MSR_IA32_SYSENTER_ESP:
+ case MSR_IA32_SYSENTER_EIP:
+ /* Fast syscall setup is all done in hypercalls, so
+ these are all ignored. Stub them out here to stop
+ Xen console noise. */
+ break;
+

	default:
		ret = native_write_msr_safe(msr, low, high);
	}
Applied
#1 lore raw
Quoted 9 lines · Jeremy Fitzhardinge

In general, Xen doesn't support wrmsr from an unprivileged domain; it just ends up ignoring the instruction and printing a message on the console.

Given that there are sets of MSRs we know the kernel will try to write to, but we don't care, just eat them in xen_write_msr to cut down on console noise.

applied to tip/x86/xen - thanks,

Ingo