[XEN][PATCH v2 0/3] x86/hvm: vmx: refactor cache disable mode code

Grygorii Strashko posted 3 patches 1 month, 1 week ago
Patches applied successfully (tree, apply log)
git fetch https://gitlab.com/xen-project/patchew/xen tags/patchew/20251107150456.2965906-1-grygorii._5Fstrashko@epam.com
There is a newer version of this series
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(-)
[XEN][PATCH v2 0/3] x86/hvm: vmx: refactor cache disable mode code
Posted by Grygorii Strashko 1 month, 1 week ago
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
Re: [XEN][PATCH v2 0/3] x86/hvm: vmx: refactor cache disable mode code
Posted by Grygorii Strashko 1 month ago
Hi All,

Please, ignore this submission.
It was sent incomplete, by mistake.
Sorry for that.

On 07.11.25 17:04, Grygorii Strashko wrote:
> 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(-)
> 

-- 
Best regards,
-grygorii