From: Grygorii Strashko <grygorii_strashko@epam.com>
The cache disable mode code (hvm_shadow_handle_cd()) is relevant only for Intel VT-x (VMX),
hence:
- move hvm_shadow_handle_cd()/ hvm_set_uc_mode()/domain_exit_uc_mode() in VMX code
- account for SHADOW_PAGING when use hvm_shadow_handle_cd()
- move cache disable mode data into VMX specific structures
Based on discussion [1].
[1] https://patchwork.kernel.org/project/xen-devel/patch/20251023151903.560947-1-grygorii_strashko@epam.com/
v1: https://patchwork.kernel.org/project/xen-devel/cover/20251029235448.602380-1-grygorii_strashko@epam.com/
Grygorii Strashko (3):
x86/hvm: move hvm_shadow_handle_cd() to vmx code
x86/hvm: vmx: account for SHADOW_PAGING when use
hvm_shadow_handle_cd()
x86/hvm: vmx: refactor cache disable mode data
xen/arch/x86/hvm/hvm.c | 59 --------------------
xen/arch/x86/hvm/vmx/vmx.c | 73 +++++++++++++++++++++++--
xen/arch/x86/include/asm/hvm/domain.h | 6 --
xen/arch/x86/include/asm/hvm/hvm.h | 3 +
xen/arch/x86/include/asm/hvm/support.h | 2 -
xen/arch/x86/include/asm/hvm/vcpu.h | 3 -
xen/arch/x86/include/asm/hvm/vmx/vmcs.h | 13 +++++
xen/arch/x86/include/asm/mtrr.h | 3 -
xen/arch/x86/mm/shadow/multi.c | 2 +-
9 files changed, 85 insertions(+), 79 deletions(-)
--
2.34.1