From patchwork Fri Mar 14 05:19:03 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergiy Kibrik X-Patchwork-Id: 14016222 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 D81D1C28B30 for ; Fri, 14 Mar 2025 05:19:39 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.913728.1319628 (Exim 4.92) (envelope-from ) id 1tsxRy-00014X-GI; Fri, 14 Mar 2025 05:19:14 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 913728.1319628; Fri, 14 Mar 2025 05:19:14 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1tsxRy-00014Q-DQ; Fri, 14 Mar 2025 05:19:14 +0000 Received: by outflank-mailman (input) for mailman id 913728; Fri, 14 Mar 2025 05:19:12 +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 1tsxRw-00014K-Rc for xen-devel@lists.xenproject.org; Fri, 14 Mar 2025 05:19:12 +0000 Received: from fforwardh-a2-smtp.messagingengine.com (fforwardh-a2-smtp.messagingengine.com [103.168.172.197]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id dbea4240-0093-11f0-9ab9-95dc52dad729; Fri, 14 Mar 2025 06:19:11 +0100 (CET) Received: from phl-compute-10.internal (phl-compute-10.phl.internal [10.202.2.50]) by mailfforwardh.phl.internal (Postfix) with ESMTP id 624952920249; Fri, 14 Mar 2025 01:19:09 -0400 (EDT) Received: from phl-frontend-02 ([10.202.2.161]) by phl-compute-10.internal (MEProxy); Fri, 14 Mar 2025 01:19:09 -0400 Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 14 Mar 2025 01:19:07 -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: dbea4240-0093-11f0-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= 1741929549; x=1742015949; bh=kZfdsh1cDuaKJdNIrBysFqAQEveOzxpyKd+ rwbGFPAI=; b=7mWnOWIMUSkxgrabbBG2J7jkjLxR7JQDy3nFnDep3bEI2ZAscFq Jsuexttxbv3TZKPKtTdvrbd4BY+G5vqG/eTWCmJy9aRXxEioHlCD3A/oKRTHyQ8c JQTzqlB2mkSj4Nw6DAih17zTMihr6VYTRzo+nmiV4zjpId7A6SqlIr5a9cbZBsVd kQmqTzepEBw2/BgTSay7+OG3n/ERu6E1HYJiz/oQmNchfX/L+xG3nq5n4Xx4THjm 1f9TVmLfPqz0mS0t3XWXhxpvCVKI9EzKv+E+Q9fe1KsFO7Nm86aUybXj0ilzE+r1 IEXT6/bti6k+CRww9Ca8iEuv3NDefM/5TCQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdduvdelleejucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpih gvnhhtshculddquddttddmnecujfgurhephffvvefufffkofgggfestdekredtredttden ucfhrhhomhepufgvrhhgihihucfmihgsrhhikhcuoefuvghrghhihigpmfhisghrihhkse gvphgrmhdrtghomheqnecuggftrfgrthhtvghrnhepgedvfeefhfduvdetkeegleeggfel heekveeiuddufeehtdehleelhfekiedvvedvnecuffhomhgrihhnpehkvghrnhgvlhdroh hrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehs rghkihgssegurghrkhhsthgrrhdrshhithgvpdhnsggprhgtphhtthhopedvuddpmhhoug gvpehsmhhtphhouhhtpdhrtghpthhtohepgigvnhdquggvvhgvlheslhhishhtshdrgigv nhhprhhojhgvtghtrdhorhhgpdhrtghpthhtohepshgvrhhgihihpghkihgsrhhikhesvg hprghmrdgtohhmpdhrtghpthhtoheptggrrhguohgvsegtrghrughovgdrtghomhdprhgt phhtthhopegrnhgurhgvfidrtghoohhpvghrfeestghithhrihigrdgtohhmpdhrtghpth htoheprghnthhhohhnhidrphgvrhgrrhgusehvrghtvghsrdhtvggthhdprhgtphhtthho pehmihgthhgrlhdrohhriigvlhesrghmugdrtghomhdprhgtphhtthhopehjsggvuhhlih gthhesshhushgvrdgtohhmpdhrtghpthhtohepjhhulhhivghnseigvghnrdhorhhgpdhr tghpthhtoheprhhoghgvrhdrphgruhestghithhrihigrdgtohhm X-ME-Proxy: Feedback-ID: i75f97a0f: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 v4 0/3] make build of vm_event/mem_access/monitor optional Date: Fri, 14 Mar 2025 07:19:03 +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. v3 series: https://lore.kernel.org/xen-devel/cover.1741687645.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(-)