From: chunjie.zhu@citrix.com
To: xen-devel@lists.xenproject.org
Cc: jbeulich@suse.com, andrew.cooper3@citrix.com,
roger@xenproject.org, jason.andryuk@amd.com,
teddy.astie@vates.tech, Chunjie Zhu <chunjie.zhu@citrix.com>
Subject: [PATCH v1 0/5] x86/nestedsvm: rework nested VMRUN/VMEXIT handling
Date: Wed, 23 Sep 2026 17:20:40 +0800 [thread overview]
Message-ID: <cover.1790146987.git.chunjie.zhu@citrix.com> (raw)
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
next reply other threads:[~2026-09-23 9:21 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-23 9:20 chunjie.zhu [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1790146987.git.chunjie.zhu@citrix.com \
--to=chunjie.zhu@citrix.com \
--cc=andrew.cooper3@citrix.com \
--cc=jason.andryuk@amd.com \
--cc=jbeulich@suse.com \
--cc=roger@xenproject.org \
--cc=teddy.astie@vates.tech \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.