mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
x86/platform: Permit reading the TSX control MSRs via XENPF_resource_op
We are going to want this to write some tests with. Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com> Reviewed-by: Jan Beulich <jbeulich@suse.com>
This commit is contained in:
1 parent
2cf3b4b92a
commit
3ccaa174fa
1 file changed
+6
@@ -74,6 +74,12 @@ static bool msr_read_allowed(unsigned int msr)
|
||||
|
||||
case MSR_IA32_TSC:
|
||||
return true;
|
||||
|
||||
case MSR_TSX_FORCE_ABORT:
|
||||
return cpu_has_tsx_force_abort;
|
||||
|
||||
case MSR_TSX_CTRL:
|
||||
return cpu_has_tsx_ctrl;
|
||||
}
|
||||
|
||||
if ( ppin_msr && msr == ppin_msr )
|
||||
|
||||