]> xenbits.xensource.com Git - xen.git/commit
x86/spec-ctrl: Make svm_vmexit_spec_ctrl conditional
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 18 Jul 2022 13:15:08 +0000 (14:15 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 19 Jul 2022 13:28:18 +0000 (14:28 +0100)
commitc16a9eda77b2089206d5bc39ab6488c3793e11bf
treeeebbd8cc0c1d6ee098e01791008b68b0782d437f
parentaddb336f4afb244fd57eb141a9c6ac365ed36563
x86/spec-ctrl: Make svm_vmexit_spec_ctrl conditional

The logic was written this way out of an abundance of caution, but the reality
is that AMD parts don't currently have the RAS-flushing side effect, nor do
they intend to gain it.

This removes one WRMSR from the VMExit path by default on Zen2 systems.

Fixes: 614cec7d79d7 ("x86/svm: VMEntry/Exit logic for MSR_SPEC_CTRL")
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/hvm/svm/entry.S