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:
Andrew Cooper committed 2021-06-15 20:50:32 +01:00
1 parent 2cf3b4b92a
commit 3ccaa174fa
1 file changed
+6
+6
View File
@@ -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 )
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.