]> xenbits.xensource.com Git - xen.git/commit
x86/AMD: Convert rdmsr_amd_safe() to use asm goto()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 7 Apr 2025 15:10:57 +0000 (16:10 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 22 Apr 2025 14:47:48 +0000 (15:47 +0100)
commit2fdeed237249f365b42cac7039e1ae6c7b1b60db
treeb10b4515b28c3475eb957084ff5a924b6b9206e6
parentb3502246d19d01711d7b28379111763353634460
x86/AMD: Convert rdmsr_amd_safe() to use asm goto()

Unlike the WRMSR side, we can't use asm goto() unconditionally, because our
toolchain baseline doesn't support asm goto with outputs.

However, the code generation improvements are substantial enough to warrant
the duplicate implementations.

Detect support, and use asm goto() when available.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/Kconfig
xen/arch/x86/cpu/amd.c