Skip to content

x86/hvm: vmx: refactor cache disable mode code

Grygorii Strashko xen-devel 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest posting 3/33 patches 6 repliesIn review
  2. v2 posting 2/33 patches 0 repliesSuperseded
  3. v2 posting 1/33 patches 1 replySuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v13 patches10 repliesSuperseded

Patches in v2 posting 3/3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3x86/hvm: move hvm_shadow_handle_cd() to vmx codexen/arch/x86/hvm/hvm.c xen/arch/x86/hvm/vmx/vmx.c xen/arch/x86/include/asm/hvm/support.h+61 -605 replies
2/3x86/hvm: vmx: account for SHADOW_PAGING when use hvm_shadow_handle_cd()xen/arch/x86/hvm/vmx/vmx.c+1 -10 replies
3/3x86/hvm: vmx: refactor cache disable mode dataxen/arch/x86/hvm/hvm.c xen/arch/x86/hvm/vmx/vmx.c xen/arch/x86/include/asm/hvm/domain.h +5 more+33 -281 reply

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchJan Beulich
1/3A-b
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

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

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]/

v1: https://patchwork.kernel.org/project/xen-devel/cover/[email protected]/

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(-)
Signature · 1 line
2.34.1