From patchwork Tue Mar 11 10:21:06 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergiy Kibrik X-Patchwork-Id: 14011462 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E1168C28B2E for ; Tue, 11 Mar 2025 10:21:39 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.907683.1314883 (Exim 4.92) (envelope-from ) id 1trwje-00030z-6q; Tue, 11 Mar 2025 10:21:18 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 907683.1314883; Tue, 11 Mar 2025 10:21:18 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1trwje-00030s-3L; Tue, 11 Mar 2025 10:21:18 +0000 Received: by outflank-mailman (input) for mailman id 907683; Tue, 11 Mar 2025 10:21:16 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1trwjc-00030m-IX for xen-devel@lists.xenproject.org; Tue, 11 Mar 2025 10:21:16 +0000 Received: from fforwardh-b1-smtp.messagingengine.com (fforwardh-b1-smtp.messagingengine.com [202.12.124.196]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 8ec6cf79-fe62-11ef-9ab9-95dc52dad729; Tue, 11 Mar 2025 11:21:14 +0100 (CET) Received: from phl-compute-07.internal (phl-compute-07.phl.internal [10.202.2.47]) by mailfforwardh.stl.internal (Postfix) with ESMTP id B65D81740269; Tue, 11 Mar 2025 06:21:11 -0400 (EDT) Received: from phl-frontend-01 ([10.202.2.160]) by phl-compute-07.internal (MEProxy); Tue, 11 Mar 2025 06:21:12 -0400 Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 11 Mar 2025 06:21:08 -0400 (EDT) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 8ec6cf79-fe62-11ef-9ab9-95dc52dad729 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:message-id:mime-version:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1741688471; x=1741774871; bh=2Defy8U+bjmTXCamc6FHJEvRbqpM+3QzVqD UmXwi6Cs=; b=d/85DfpwsQK9T4M+t9OqQvpU+ge8ByQHthQ+PMyiOeDy8GhEOGV 56RD1tOgi/ILokZGj82+ZC51tqDSTfVm34AFsrKoCnuNplt+WuWEzV9nhkciI31X Fqf+cRmlBUODmv/OI/JFxwDfOyDLnYzYXDlwnhSU8OqKBQEIhds4G9fGst4t9E/B VZ5WJqhEZOLJ6DFOsMZMShzUcPSECSHf8xFZwG/y86U2piSM/g5VB0+5/8fqDy5K x/i9BdRV6FV3dmaFNMmqoLM07fy5rxRxXq+vHuoffXWwBVyH5kqbSw2fxllQb4ft DRizUoCmVPnA5z+/dKbns4Zyt6DYGh1TzvQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdduvdduleejucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpih gvnhhtshculddquddttddmnecujfgurhephffvvefufffkofgggfestdekredtredttden ucfhrhhomhepufgvrhhgihihucfmihgsrhhikhcuoefuvghrghhihigpmfhisghrihhkse gvphgrmhdrtghomheqnecuggftrfgrthhtvghrnhepgedvfeefhfduvdetkeegleeggfel heekveeiuddufeehtdehleelhfekiedvvedvnecuffhomhgrihhnpehkvghrnhgvlhdroh hrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehs rghkihgssegurghrkhhsthgrrhdrshhithgvpdhnsggprhgtphhtthhopedvuddpmhhoug gvpehsmhhtphhouhhtpdhrtghpthhtohepgigvnhdquggvvhgvlheslhhishhtshdrgigv nhhprhhojhgvtghtrdhorhhgpdhrtghpthhtohepshgvrhhgihihpghkihgsrhhikhesvg hprghmrdgtohhmpdhrtghpthhtoheptggrrhguohgvsegtrghrughovgdrtghomhdprhgt phhtthhopegrnhgurhgvfidrtghoohhpvghrfeestghithhrihigrdgtohhmpdhrtghpth htoheprghnthhhohhnhidrphgvrhgrrhgusehvrghtvghsrdhtvggthhdprhgtphhtthho pehmihgthhgrlhdrohhriigvlhesrghmugdrtghomhdprhgtphhtthhopehjsggvuhhlih gthhesshhushgvrdgtohhmpdhrtghpthhtohepjhhulhhivghnseigvghnrdhorhhgpdhr tghpthhtoheprhhoghgvrhdrphgruhestghithhrihigrdgtohhm X-ME-Proxy: Feedback-ID: ifd673d30:Fastmail From: Sergiy Kibrik To: xen-devel@lists.xenproject.org Cc: Sergiy Kibrik , Doug Goldstein , Andrew Cooper , Anthony PERARD , Michal Orzel , Jan Beulich , Julien Grall , =?utf-8?q?Roger_Pau_Monn=C3=A9?= , Bertrand Marquis , Volodymyr Babchuk , Tamas K Lengyel , Alexandru Isaila , Petre Pircalabu , Shawn Anastasio , Alistair Francis , Bob Eshleman , Connor Davis , Oleksii Kurochko , "Daniel P. Smith" , Stefano Stabellini Subject: [PATCH v3 0/3] make build of vm_event/mem_access/monitor optional Date: Tue, 11 Mar 2025 12:21:06 +0200 Message-Id: X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 This series aims to provide a possibility to build Xen without mem_access and related features. It is already largely covered by corresponding CONFIG_MEM_ACCESS option, yet there're still some parts remaining. Hopefully this would help to reduce dead code a bit. As coverage of MEM_ACCESS config option begins to extend beyond actual mem_access code it has been suggested to rename it into VM_EVENT, as a more general option controlling mem_access, vm_event and monitor code. One patch for automation from v2 series had been squashed into #1 patch in v3 series, v2 reference below: https://lore.kernel.org/xen-devel/cover.1737452864.git.Sergiy_Kibrik@epam.com/ -Sergiy Sergiy Kibrik (2): xen: kconfig: rename MEM_ACCESS -> VM_EVENT x86:monitor: control monitor.c build with CONFIG_VM_EVENT option Stefano Stabellini (1): xen: mem_access: conditionally compile vm_event.c & monitor.c automation/gitlab-ci/build.yaml | 2 +- xen/arch/arm/Makefile | 6 +++--- xen/arch/arm/configs/tiny64_defconfig | 2 +- xen/arch/arm/include/asm/mem_access.h | 4 ++-- xen/arch/arm/vsmc.c | 3 ++- xen/arch/ppc/configs/ppc64_defconfig | 2 +- xen/arch/riscv/configs/tiny64_defconfig | 2 +- xen/arch/x86/Kconfig | 2 +- xen/arch/x86/Makefile | 2 +- xen/arch/x86/mm/Makefile | 2 +- xen/common/Kconfig | 2 +- xen/common/Makefile | 6 +++--- xen/common/domctl.c | 2 +- xen/include/xen/mem_access.h | 6 +++--- xen/include/xen/monitor.h | 9 +++++++++ xen/include/xen/vm_event.h | 14 +++++++++++--- xen/include/xsm/dummy.h | 2 +- xen/include/xsm/xsm.h | 4 ++-- xen/xsm/dummy.c | 2 +- xen/xsm/flask/hooks.c | 4 ++-- 20 files changed, 48 insertions(+), 30 deletions(-)