From patchwork Tue Jan 21 10:17:36 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergiy Kibrik X-Patchwork-Id: 13946051 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 2BF0CC02182 for ; Tue, 21 Jan 2025 10:18:05 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.875258.1285701 (Exim 4.92) (envelope-from ) id 1taBKN-0002F2-Ju; Tue, 21 Jan 2025 10:17:47 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 875258.1285701; Tue, 21 Jan 2025 10:17:47 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1taBKN-0002Ev-H3; Tue, 21 Jan 2025 10:17:47 +0000 Received: by outflank-mailman (input) for mailman id 875258; Tue, 21 Jan 2025 10:17:46 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1taBKM-0002Ep-C9 for xen-devel@lists.xenproject.org; Tue, 21 Jan 2025 10:17:46 +0000 Received: from fforwardh-b2-smtp.messagingengine.com (fforwardh-b2-smtp.messagingengine.com [202.12.124.197]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id f3799fb8-d7e0-11ef-99a4-01e77a169b0f; Tue, 21 Jan 2025 11:17:43 +0100 (CET) Received: from phl-compute-06.internal (phl-compute-06.phl.internal [10.202.2.46]) by mailfforwardh.stl.internal (Postfix) with ESMTP id E1FE21740127; Tue, 21 Jan 2025 05:17:41 -0500 (EST) Received: from phl-frontend-02 ([10.202.2.161]) by phl-compute-06.internal (MEProxy); Tue, 21 Jan 2025 05:17:42 -0500 Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 21 Jan 2025 05:17:39 -0500 (EST) 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: f3799fb8-d7e0-11ef-99a4-01e77a169b0f 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=fm3; t= 1737454661; x=1737541061; bh=OBw60GEEhVQWibPY0f38eIS0+A3cujIKzzL MMlGQtkI=; b=U0M5Y1WW1639D8DhQqTaOGPUFzQizqxKkqpp18ak0sfXgsWImAx UoHNZgny8E5SAUr+v+FSs1IoMWAF4SrJvLkJX1ugvWMLD0SmAM7Y0DvCOIqtW5Po pwIM3QcJFT67rLJTR/QvRnytGJ4xwlWEpl20EnpKWiyigXc2UJ1Vn4fQax/knrJe o8sxOGgFN4efRHZ7XfoY+TwIX6cO9YRdQS+6e465ydXUmEXw5A+VZS2agaOe6BJQ Q7Pa9j82mt/vaLx6dX+2A6vBBXDAy75NfKNu987zXWh5a0fuOw78ZnLKgZR92JTj GtjeCs63vN9YJdcKuJm/zPTitIJZLfU1tyw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrudejuddgudefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhephffvvefufffkofgggfestdekredtredttdenucfh rhhomhepufgvrhhgihihucfmihgsrhhikhcuoefuvghrghhihigpmfhisghrihhksegvph grmhdrtghomheqnecuggftrfgrthhtvghrnhepgedvfeefhfduvdetkeegleeggfelheek veeiuddufeehtdehleelhfekiedvvedvnecuffhomhgrihhnpehkvghrnhgvlhdrohhrgh enucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehsrghk ihgssegurghrkhhsthgrrhdrshhithgvpdhnsggprhgtphhtthhopedvvddpmhhouggvpe hsmhhtphhouhhtpdhrtghpthhtohepgigvnhdquggvvhgvlheslhhishhtshdrgigvnhhp rhhojhgvtghtrdhorhhgpdhrtghpthhtohepshgvrhhgihihpghkihgsrhhikhesvghprg hmrdgtohhmpdhrtghpthhtohepjhhulhhivghnseigvghnrdhorhhgpdhrtghpthhtohep sggvrhhtrhgrnhgurdhmrghrqhhuihhssegrrhhmrdgtohhmpdhrtghpthhtohepmhhitg hhrghlrdhorhiivghlsegrmhgurdgtohhmpdhrtghpthhtohepvhholhhougihmhihrhgp sggrsggthhhukhesvghprghmrdgtohhmpdhrtghpthhtoheprghnughrvgifrdgtohhoph gvrhefsegtihhtrhhigidrtghomhdprhgtphhtthhopegrnhhthhhonhihrdhpvghrrghr ugesvhgrthgvshdrthgvtghhpdhrtghpthhtohepjhgsvghulhhitghhsehsuhhsvgdrtg homh X-ME-Proxy: Feedback-ID: if7fb09ee:Fastmail From: Sergiy Kibrik To: xen-devel@lists.xenproject.org Cc: Sergiy Kibrik , Julien Grall , Bertrand Marquis , Michal Orzel , Volodymyr Babchuk , Andrew Cooper , Anthony PERARD , Jan Beulich , =?utf-8?q?Roger_Pau_Monn=C3=A9?= , Tamas K Lengyel , Alexandru Isaila , Petre Pircalabu , Shawn Anastasio , Alistair Francis , Bob Eshleman , Connor Davis , Oleksii Kurochko , "Daniel P. Smith" , Nicola Vetrini , Doug Goldstein , Stefano Stabellini Subject: [PATCH v2 0/4] make build of vm_event/mem_access/monitor optional Date: Tue, 21 Jan 2025 12:17:36 +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. v1 patch here: https://lore.kernel.org/xen-devel/20241230063051.3332332-1-Sergiy_Kibrik@epam.com/ -Sergiy Sergiy Kibrik (3): xen: kconfig: rename MEM_ACCESS -> VM_EVENT x86:monitor: control monitor.c build with CONFIG_VM_EVENT option automation: rename CONFIG_MEM_ACCESS -> CONFIG_VM_EVENT Stefano Stabellini (1): xen: mem_access: conditionally compile vm_event.c & monitor.c automation/eclair_analysis/xen_arm_config | 2 +- automation/eclair_analysis/xen_x86_config | 2 +- 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/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 ++-- 21 files changed, 49 insertions(+), 31 deletions(-)