Skip to content

hvm: add hvm_funcs hooks for msr intercept handling

Xenia Ragiadakou xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 12 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4x86/vpmu: rename {svm,vmx}_vpmu_initialise to {amd,core2}_vpmu_initialisexen/arch/x86/cpu/vpmu_amd.c xen/arch/x86/cpu/vpmu_intel.c+6 -61 reply
2/4x86/svm: split svm_intercept_msr() into svm_{set,clear}_msr_intercept()xen/arch/x86/cpu/vpmu_amd.c xen/arch/x86/hvm/svm/svm.c xen/arch/x86/include/asm/hvm/hvm.h +1 more+66 -405 replies
3/4x86/vmx: replace enum vmx_msr_intercept_type with the msr access flagsxen/arch/x86/cpu/vpmu_intel.c xen/arch/x86/hvm/vmx/vmcs.c xen/arch/x86/hvm/vmx/vmx.c +1 more+54 -663 replies
4/4x86/hvm: create hvm_funcs for {svm,vmx}_{set,clear}_msr_intercept()xen/arch/x86/cpu/vpmu_amd.c xen/arch/x86/cpu/vpmu_intel.c xen/arch/x86/hvm/svm/svm.c +5 more+55 -253 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

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

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

Read the v1 thread

Cover letter [PATCH 0/4] hvm: add hvm_funcs hooks for msr intercept handling

This patch series aims to make the msr intercept handling, performed in vpmu code, virtualization technology agnostic.
It creates a common interface for setting/clearing the msr intercepts and then add hooks to the corresponding hvm_funcs table to be able to call the svm/vmx specific handlers through a generic hvm wrapper function.

Xenia Ragiadakou (4):
x86/vpmu: rename {svm,vmx}_vpmu_initialise to
{amd,core2}_vpmu_initialise
x86/svm: split svm_intercept_msr() into

    svm_{set,clear}_msr_intercept()

x86/vmx: replace enum vmx_msr_intercept_type with the msr access flags x86/hvm: create hvm_funcs for {svm,vmx}_{set,clear}_msr_intercept()

 xen/arch/x86/cpu/vpmu_amd.c             | 15 ++---
 xen/arch/x86/cpu/vpmu_intel.c           | 30 +++++-----
 xen/arch/x86/hvm/svm/svm.c              | 80 ++++++++++++++++---------
 xen/arch/x86/hvm/vmx/vmcs.c             | 38 ++++++------
 xen/arch/x86/hvm/vmx/vmx.c              | 46 +++++++-------
 xen/arch/x86/include/asm/hvm/hvm.h      | 32 ++++++++++
 xen/arch/x86/include/asm/hvm/svm/vmcb.h | 13 ++--
 xen/arch/x86/include/asm/hvm/vmx/vmcs.h | 14 +----
 8 files changed, 156 insertions(+), 112 deletions(-)
Signature · 1 line
2.37.2