tests/tsx: Extend test-tsx to check MSR_MCU_OPT_CTRL
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 10 Jun 2021 11:34:45 +0000 (12:34 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 8 Feb 2022 18:01:32 +0000 (18:01 +0000)
commit60f5eb827bec993c824f426ab7d574362c0b4863
treec90bc24b5fcdabcdd66c6c952e4008f85f9d3c20
parent0c46d108b74bd38e0887cdd02cb82dd1084586cb
tests/tsx: Extend test-tsx to check MSR_MCU_OPT_CTRL

This MSR needs to be identical across the system for TSX to have identical
behaviour everywhere.  Furthermore, its CPUID bit (SRBDS_CTRL) shouldn't be
visible to guests.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
(cherry picked from commit 4b45c4faa8c0637eb41cb4b143ccd4e9548c4908)
tools/tests/tsx/test-tsx.c
xen/arch/x86/platform_hypercall.c