From: Grygorii Strashko <[email protected]>

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/[email protected]/

Grygorii Strashko (3):
  x86/hvm: move hvm_shadow_handle_cd() in 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              | 70 +++++++++++++++++++++++--
 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 | 14 +++++
 xen/arch/x86/include/asm/mtrr.h         |  3 --
 xen/arch/x86/mm/shadow/multi.c          |  2 +-
 9 files changed, 83 insertions(+), 79 deletions(-)

-- 
2.34.1

Reply via email to