[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH v4 0/6] consolidate vm event subsystem


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>, <jason.andryuk@xxxxxxx>
  • From: Penny Zheng <Penny.Zheng@xxxxxxx>
  • Date: Thu, 15 Jan 2026 17:28:35 +0800
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0)
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=1QWX3MEiUvQV4E1tz+nSas99Rto/scgJscwAKJ9D2l4=; b=y6JhlWZdBImBFrTcQF5xXd9KrEniO+0Lh+1u89kJVxajtvCw96+LPclRlkM+K6HD9kKHT1oYaOpE63vvvpMTqbZm6Qlyn1DfzJY3dgRNuDRx933jH+v9aOo0NFFrIeYK2kxFiBFdb0c6NR8WUzxL+inAoBNbwqj97zO0x0Gr9qWmMWSWyzgEUJmES9+onGrdB4jQBr/VffH5RhS5PrgGkcwOXYSZYH3YdWYqoP1fmsQ3h8myoaL7BQrKC4W1MvRqEFJgzuGG8lZ4x6a2zZ693QWb53H4wXbzf3ma3bHLVqLErcHrX2+vHOycbKkOi4LMiO85hs9wuhcsvz+59bvbAg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=I2mGPHk/PGIbaEQG1hW9W0oXW9kXn8/pAM50se01+KJkCeZxMngF/5K5Q5I3Q9TNc4wFrprHPuelrIiHpzNNsuTBZl7iP9Y5C0XP4zTaUX/HjQ6FcMcdccVylldVjq3BDasZusZeqRZxxBMAYbhK475bZU+/ANsH9EB24OGRqTuZuhM5CmviLCyUU1wG89qDHjuyfvTVg2OEUscY5V6jKkk155ZRwJR+2UDPwy9t4RFF1i9Rv/Wv+kFMFp/rvKew3iQOSLQrb/n0gSSKhuGJXVFlEvWpKoSnwMfZTT71m4VaN727gtFUALHEnQ6muzeWOml1qLaixXg2LQ9/VH6HXQ==
  • Cc: <ray.huang@xxxxxxx>, Penny Zheng <Penny.Zheng@xxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Tamas K Lengyel <tamas@xxxxxxxxxxxxx>, Alexandru Isaila <aisaila@xxxxxxxxxxxxxxx>, "Petre Pircalabu" <ppircalabu@xxxxxxxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, "Julien Grall" <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>
  • Delivery-date: Thu, 15 Jan 2026 09:29:13 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

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@xxxxxxxxxxxxxxxxxxxx/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




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.