[PATCH v4 0/6] consolidate vm event subsystem

Penny Zheng posted 6 patches 1 week, 3 days ago
Only 5 patches received!
xen/arch/x86/Makefile                 |  2 +-
xen/arch/x86/hvm/Kconfig              |  1 -
xen/arch/x86/hvm/Makefile             |  4 +-
xen/arch/x86/hvm/emulate.c            | 67 ++++++++++++------------
xen/arch/x86/hvm/hvm.c                | 51 ++++++++++++++++---
xen/arch/x86/hvm/svm/intr.c           |  2 +-
xen/arch/x86/hvm/svm/svm.c            | 54 ++++++++++++--------
xen/arch/x86/hvm/vmx/intr.c           |  2 +-
xen/arch/x86/hvm/vmx/vmx.c            | 73 ++++++++++++++++++---------
xen/arch/x86/include/asm/altp2m.h     | 10 ++++
xen/arch/x86/include/asm/hvm/hvm.h    | 18 ++++---
xen/arch/x86/include/asm/mem_access.h | 20 ++++----
xen/arch/x86/include/asm/monitor.h    |  9 ++++
xen/arch/x86/include/asm/vm_event.h   |  5 ++
xen/arch/x86/mm/mem_access.c          | 36 -------------
xen/arch/x86/mm/mem_sharing.c         |  3 ++
xen/arch/x86/mm/p2m.c                 | 40 +++++++++++++++
xen/common/Kconfig                    |  7 +--
xen/include/xen/mem_access.h          |  5 --
xen/include/xen/p2m-common.h          |  3 ++
xen/include/xen/vm_event.h            |  7 +++
21 files changed, 266 insertions(+), 153 deletions(-)
[PATCH v4 0/6] consolidate vm event subsystem
Posted by Penny Zheng 1 week, 3 days ago
This patch serie originates from "Disable domctl-op via CONFIG_MGMT_HYPERCALLS"
[1], and focuses on consolidating vm event subsystem (i.e. VM_EVENT), and its
derived features, like memory paging, etc.

[1] https://www.mail-archive.com/xen-devel@lists.xenproject.org/msg200843.html
---
Happy 2026!
Sorry for the late response to this patch serie and the domctl one.
v4 is just doing a rebase on the latest staging, and one comment fix.
I still need 2 acks for commit "xen/p2m: move xenmem_access_to_p2m_access() to
common p2m.c" and "xen/mem_access: wrap memory access when VM_EVENT=n".
---

Penny Zheng (6):
  xen/x86: move declaration from mem_access.h to altp2m.h
  x86/vm_event: introduce vm_event_is_enabled()
  x86/monitor: wrap monitor_op under CONFIG_VM_EVENT
  xen/p2m: move xenmem_access_to_p2m_access() to common p2m.c
  xen/mem_access: wrap memory access when VM_EVENT=n
  xen/vm_event: consolidate CONFIG_VM_EVENT

 xen/arch/x86/Makefile                 |  2 +-
 xen/arch/x86/hvm/Kconfig              |  1 -
 xen/arch/x86/hvm/Makefile             |  4 +-
 xen/arch/x86/hvm/emulate.c            | 67 ++++++++++++------------
 xen/arch/x86/hvm/hvm.c                | 51 ++++++++++++++++---
 xen/arch/x86/hvm/svm/intr.c           |  2 +-
 xen/arch/x86/hvm/svm/svm.c            | 54 ++++++++++++--------
 xen/arch/x86/hvm/vmx/intr.c           |  2 +-
 xen/arch/x86/hvm/vmx/vmx.c            | 73 ++++++++++++++++++---------
 xen/arch/x86/include/asm/altp2m.h     | 10 ++++
 xen/arch/x86/include/asm/hvm/hvm.h    | 18 ++++---
 xen/arch/x86/include/asm/mem_access.h | 20 ++++----
 xen/arch/x86/include/asm/monitor.h    |  9 ++++
 xen/arch/x86/include/asm/vm_event.h   |  5 ++
 xen/arch/x86/mm/mem_access.c          | 36 -------------
 xen/arch/x86/mm/mem_sharing.c         |  3 ++
 xen/arch/x86/mm/p2m.c                 | 40 +++++++++++++++
 xen/common/Kconfig                    |  7 +--
 xen/include/xen/mem_access.h          |  5 --
 xen/include/xen/p2m-common.h          |  3 ++
 xen/include/xen/vm_event.h            |  7 +++
 21 files changed, 266 insertions(+), 153 deletions(-)

-- 
2.34.1
Re: [PATCH v4 0/6] consolidate vm event subsystem
Posted by Jan Beulich 1 week, 3 days ago
On 15.01.2026 10:28, Penny Zheng wrote:
> This patch serie originates from "Disable domctl-op via CONFIG_MGMT_HYPERCALLS"
> [1], and focuses on consolidating vm event subsystem (i.e. VM_EVENT), and its
> derived features, like memory paging, etc.
> 
> [1] https://www.mail-archive.com/xen-devel@lists.xenproject.org/msg200843.html
> ---
> Happy 2026!
> Sorry for the late response to this patch serie and the domctl one.
> v4 is just doing a rebase on the latest staging, and one comment fix.
> I still need 2 acks for commit "xen/p2m: move xenmem_access_to_p2m_access() to
> common p2m.c" and "xen/mem_access: wrap memory access when VM_EVENT=n".

Is this true? I'm under the impression that strictly speaking every one of
the patches needs Tamas'es ack.

Jan