mbox series

[XEN,v1,0/4] make nested virtualization support optional

Message ID cover.1742465624.git.Sergiy_Kibrik@epam.com (mailing list archive)
Headers show
Series make nested virtualization support optional | expand

Message

Sergiy Kibrik March 20, 2025, 10:32 a.m. UTC
Here're a couple of patches that introduce a Kconfig control for user to be
able to remove nested HVM code from the build and hence to tune their system
in case nested VMs aren't required.

The first two patches are minor fixes and not directly related to nested HVM,
but since they also modify the same code I've decided to include them too.

 -Sergiy

Sergiy Kibrik (4):
  x86:svm: use nsvm_efer_svm_enabled() to check guest's EFER.SVME
  x86:svm: rename svm/nestedhvm.h -> svm/nestedsvm.h
  x86:hvm: guard calls to nestedhvm routines
  x86:hvm: make nestedhvm support optional

 xen/arch/x86/Kconfig                              |  5 +++++
 xen/arch/x86/hvm/Makefile                         |  2 +-
 xen/arch/x86/hvm/hvm.c                            |  6 ++++--
 xen/arch/x86/hvm/svm/Makefile                     |  2 +-
 xen/arch/x86/hvm/svm/asid.c                       |  2 +-
 xen/arch/x86/hvm/svm/entry.S                      |  2 ++
 xen/arch/x86/hvm/svm/intr.c                       |  2 +-
 xen/arch/x86/hvm/svm/nestedsvm.c                  |  2 +-
 xen/arch/x86/hvm/svm/{nestedhvm.h => nestedsvm.h} |  0
 xen/arch/x86/hvm/svm/svm.c                        | 14 +++++++++-----
 xen/arch/x86/hvm/vmx/Makefile                     |  2 +-
 xen/arch/x86/hvm/vmx/entry.S                      |  2 ++
 xen/arch/x86/hvm/vmx/vmcs.c                       |  8 +++++---
 xen/arch/x86/hvm/vmx/vmx.c                        | 10 +++++++++-
 xen/arch/x86/include/asm/hvm/nestedhvm.h          | 10 +++++++++-
 15 files changed, 51 insertions(+), 18 deletions(-)
 rename xen/arch/x86/hvm/svm/{nestedhvm.h => nestedsvm.h} (100%)