[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v1 0/7] consolidate vm event subsystem
- To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Penny Zheng <Penny.Zheng@xxxxxxx>
- Date: Thu, 13 Nov 2025 11:16:23 +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=9FDNO415xiZvDXNB3TUXesp76OqUeka2h1D93hRa5wk=; b=JOH9Lg82TGQvZXfY6h+QI5jrTA3EAzBqZQyQZ/sQkYx4znUTs6diLlS2UnLDS0mXs/6n1VSbkCO1a604nct2+Uo4JvERQQtTwfWoN71RRDW58pcAxyBpHTOh5kC3b0mTkXb8D+MWavLLaO8qEUWiuvbYvkbsCB46+VPTF89i5VXjhsl2rWjYk+D/Sz4pHbFiuyKLOedNL4gFP3YaMpvO8YC7QbL5AVDu01+h+Zk+WVeioD7R4QwoQIlz+NOm7jwed8z/trTwxPliFMARC53fnerybM+4dC0VYqHqJijS9kIQO3bdhlpaRJV3QPy4pQkm6CZAs++8ArZO6DpTkiuSWg==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=PW/a2CCYAJ6lRpfA96nU4BF3Dr4bl7k2Tk1Sta7Tons1CgP4+Avl6RwqzpimLnEFn73DiZM8xnbAzx33khEczjpns/47wx9nx9S24OHRK3zJNT+7qgetQGpFfvfdsATdbK9Rkv0vlA9xYcjsXbJ+4/cKLyn1P8d2fEiCx7RF+AIxeOjRSZ9fR8BcdqMwFvYLh8znaRQHo0VKVd1GQVxhlmwDUbeqeoUKUr7l2wn75esYsWKVrXvI7JjeagRBzNvfwUM5/xhvmdnxANrwYZeJG2rTCplm3/jQw7srlpmtOru7wRyuv7Xe9J8D8tZ43Ve4dlP76YoJZ/fRJwfOxiNfpA==
- Cc: Penny Zheng <Penny.Zheng@xxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, "Andrew Cooper" <andrew.cooper3@xxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Jason Andryuk <jason.andryuk@xxxxxxx>, "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>, "Daniel P. Smith" <dpsmith@xxxxxxxxxxxxxxxxxxxx>
- Delivery-date: Thu, 13 Nov 2025 03:17:20 +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
Penny Zheng (7):
xen/svm: limit the scope of "rc"
xen/vm_event: introduce vm_event_is_enabled()
xen/monitor: wrap monitor_op under CONFIG_VM_EVENT
xen/p2m: move xenmem_access_to_p2m_access() to common p2m.c
xen/x86: move declaration from mem_access.h to altp2m.h
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 | 123 ++++++++++++++++----------
xen/arch/x86/hvm/svm/intr.c | 2 +-
xen/arch/x86/hvm/svm/svm.c | 82 +++++++++++------
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 | 8 ++
xen/arch/x86/mm/mem_access.c | 36 --------
xen/arch/x86/mm/mem_sharing.c | 3 +
xen/arch/x86/mm/p2m.c | 38 ++++++++
xen/common/Kconfig | 7 +-
xen/include/xen/vm_event.h | 7 ++
19 files changed, 319 insertions(+), 193 deletions(-)
--
2.34.1
|