All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1 0/5] x86/nestedsvm: rework nested VMRUN/VMEXIT handling
@ 2026-09-23  9:20 chunjie.zhu
  2026-09-23  9:20 ` [PATCH v1 1/5] x86/nestedsvm: update vmrun without pending or deferred flag chunjie.zhu
                   ` (5 more replies)
  0 siblings, 6 replies; 30+ messages in thread
From: chunjie.zhu @ 2026-09-23  9:20 UTC (permalink / raw)
  To: xen-devel
  Cc: jbeulich, andrew.cooper3, roger, jason.andryuk, teddy.astie,
	Chunjie Zhu

From: Chunjie Zhu <chunjie.zhu@citrix.com>

This series simplifies nested SVM execution by removing pending and
deferred state from the VMRUN and VMEXIT paths.  Nested transitions are
handled directly by rearranging the state transfer and control flow.

The series also removes obsolete interrupt-window and vCPU-switch handling
associated with `nv_vmentry_pending`, while updating the relevant assembly
offsets and nested-SVM data structures.

Patch 1 rearranges VMRUN handling without pending or deferred flags.
Patch 2 removes code related to `nv_vmentry_pending`.
Patch 3 rearranges VMEXIT handling without pending or deferred flags.
Patch 4 update vmcb fields correctly.
Patch 5 fix issues which cause transition failure.

Chunjie Zhu (5):
  x86/nestedsvm: update vmrun without pending or deferred flag
  x86/nestedsvm: remove nv_vmentry_pending
  x86/nestedsvm: update vmexit without pending or deferred flag
  x86/nestedsvm: update vmcb correctly
  x86/nestedsvm: fix up

 xen/arch/x86/hvm/svm/entry.S             |  48 +++-
 xen/arch/x86/hvm/svm/intr.c              |  22 +-
 xen/arch/x86/hvm/svm/nestedhvm.h         |   6 +-
 xen/arch/x86/hvm/svm/nestedsvm.c         | 337 ++++++++++++-----------
 xen/arch/x86/hvm/svm/svm.c               |  25 +-
 xen/arch/x86/hvm/svm/vmcb.c              |  12 +-
 xen/arch/x86/hvm/svm/vmcb.h              |   6 +
 xen/arch/x86/include/asm/hvm/svm-types.h |   9 +-
 xen/arch/x86/include/asm/msr-index.h     |   1 +
 xen/arch/x86/mm/p2m.c                    |   5 +
 xen/arch/x86/x86_64/asm-offsets.c        |   1 +
 11 files changed, 260 insertions(+), 212 deletions(-)

-- 
2.34.1



^ permalink raw reply	[flat|nested] 30+ messages in thread

end of thread, other threads:[~2026-10-13 10:15 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-23  9:20 [PATCH v1 0/5] x86/nestedsvm: rework nested VMRUN/VMEXIT handling chunjie.zhu
2026-09-23  9:20 ` [PATCH v1 1/5] x86/nestedsvm: update vmrun without pending or deferred flag chunjie.zhu
2026-09-23  9:20 ` [PATCH v1 2/5] x86/nestedsvm: remove nv_vmentry_pending chunjie.zhu
2026-09-23  9:20 ` [PATCH v1 3/5] x86/nestedsvm: update vmexit without pending or deferred flag chunjie.zhu
2026-09-23  9:20 ` [PATCH v1 4/5] x86/nestedsvm: update vmcb correctly chunjie.zhu
2026-09-23  9:20 ` [PATCH v1 5/5] x86/nestedsvm: fix up chunjie.zhu
2026-09-23  9:42   ` Ross Lagerwall
2026-09-23  9:55     ` Ross Lagerwall
2026-09-24  9:16       ` chunjie.zhu
2026-10-10 10:13       ` [PATCH v2 00/13] x86/nestedsvm: rework nested VMRUN/VMEXIT handling chunjie.zhu
2026-10-10 10:13         ` [PATCH v2 01/13] nestedsvm: Fix CR3 MBZ check chunjie.zhu
2026-10-13 10:12           ` Jan Beulich
2026-10-10 10:13         ` [PATCH v2 02/13] nestedsvm: Adjust L2's DR intercept when adjusting L1 chunjie.zhu
2026-10-13 10:15           ` Jan Beulich
2026-10-10 10:13         ` [PATCH v2 03/13] nestedsvm: Use the correct VMCB for vGIF chunjie.zhu
2026-10-10 10:13         ` [PATCH v2 04/13] nestedsvm: Set GIF during VMRUN if vGIF is enabled chunjie.zhu
2026-10-10 10:13         ` [PATCH v2 05/13] tools/libxl: Add support for Viridian stimer direct mode chunjie.zhu
2026-10-12 15:56           ` Jan Beulich
2026-10-10 10:13         ` [PATCH v2 06/13] x86/hvm: Clamp Viridian features to known set chunjie.zhu
2026-10-13  9:51           ` Jan Beulich
2026-10-10 10:13         ` [PATCH v2 07/13] x86/svm: require VMSAVEvirt for nested virt chunjie.zhu
2026-10-10 10:13         ` [PATCH v2 08/13] nestedsvm: Don't set VMCB(1-2)'s NP_ENABLE and N_CR3 during VMEXIT to L1 chunjie.zhu
2026-10-13 10:01           ` Jan Beulich
2026-10-10 10:13         ` [PATCH v2 09/13] x86/svm: Fix VMLOAD/VMSAVE state handling when using nested virt chunjie.zhu
2026-10-10 10:13         ` [PATCH v2 10/13] x86/nSVM: Don't clear TLB_CONTROL on #VMEXIT chunjie.zhu
2026-10-10 10:13         ` [PATCH v2 11/13] x86/nestedsvm: update vmrun without pending or deferred chunjie.zhu
2026-10-10 10:13         ` [PATCH v2 12/13] x86/nestedsvm: remove nv_vmentry_pending chunjie.zhu
2026-10-10 10:13         ` [PATCH v2 13/13] x86/nestedsvm: update vmexit without pending or deferred flag chunjie.zhu
2026-10-13 10:02         ` [PATCH v2 00/13] x86/nestedsvm: rework nested VMRUN/VMEXIT handling Jan Beulich
2026-09-23  9:36 ` [PATCH v1 0/5] " Jan Beulich

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.