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 9BFFBC28B30 for ; Thu, 20 Mar 2025 10:32:45 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.921651.1325435 (Exim 4.92) (envelope-from ) id 1tvDCW-0000na-PK; Thu, 20 Mar 2025 10:32:36 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 921651.1325435; Thu, 20 Mar 2025 10:32:36 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1tvDCW-0000nT-MK; Thu, 20 Mar 2025 10:32:36 +0000 Received: by outflank-mailman (input) for mailman id 921651; Thu, 20 Mar 2025 10:32:35 +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 1tvDCV-0000nL-6H for xen-devel@lists.xenproject.org; Thu, 20 Mar 2025 10:32:35 +0000 Received: from fforwardh-b4-smtp.messagingengine.com (fforwardh-b4-smtp.messagingengine.com [202.12.124.199]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id a120daaf-0576-11f0-9ffa-bf95429c2676; Thu, 20 Mar 2025 11:32:32 +0100 (CET) Received: from phl-compute-12.internal (phl-compute-12.phl.internal [10.202.2.52]) by mailfforwardh.stl.internal (Postfix) with ESMTP id 128551740241; Thu, 20 Mar 2025 06:32:31 -0400 (EDT) Received: from phl-frontend-01 ([10.202.2.160]) by phl-compute-12.internal (MEProxy); Thu, 20 Mar 2025 06:32:31 -0400 Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 20 Mar 2025 06:32:29 -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: a120daaf-0576-11f0-9ffa-bf95429c2676 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= 1742466750; x=1742553150; bh=QIBJiemfl/U8NEJw8eqqbLerNyu5yd8wdV/ F9ndrYNc=; b=zieYtrEB+Z6LPeTEWWmrv1PkPvwHadYV6ylzJ3ulhk0MtXTrKHj rBI2QPmnmzzGV2RykD/Hjut3/HBaw69p8+4NxpOQhXdFBtYhP9lOFc+kxNky39Ow yoCpmTrAqiyWZ4CarOKYKtDeEMuHkjlZrPj/50rEZN6tHtcIXxSO6eHH8ulUxue+ GNItHTzLNmWXrpmJBOg6zc3L1kd+7IW16vsAjg7PbUdqd+l9XwbYibcjC6Z+0kI9 nCeoMRmgFtDcf6vtyGrAPKU2DMc79NTq0lCafRh4S3DXq+9tvmhUPANBrZMvEuQM 036OdRwV6uf/YDwxBhs5ViFJ0PAGh4vhy0Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddugeejleekucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpih gvnhhtshculddquddttddmnecujfgurhephffvvefufffkofgggfestdekredtredttden ucfhrhhomhepufgvrhhgihihucfmihgsrhhikhcuoefuvghrghhihigpmfhisghrihhkse gvphgrmhdrtghomheqnecuggftrfgrthhtvghrnhepffffvdeifeeijefhheefuedvvedt heffjeeiveehgfettedvgedujefgudejgedvnecuvehluhhsthgvrhfuihiivgeptdenuc frrghrrghmpehmrghilhhfrhhomhepshgrkhhisgesuggrrhhkshhtrghrrdhsihhtvgdp nhgspghrtghpthhtohepiedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepgigvnh dquggvvhgvlheslhhishhtshdrgigvnhhprhhojhgvtghtrdhorhhgpdhrtghpthhtohep shgvrhhgihihpghkihgsrhhikhesvghprghmrdgtohhmpdhrtghpthhtohepjhgsvghulh hitghhsehsuhhsvgdrtghomhdprhgtphhtthhopegrnhgurhgvfidrtghoohhpvghrfees tghithhrihigrdgtohhmpdhrtghpthhtoheprhhoghgvrhdrphgruhestghithhrihigrd gtohhmpdhrtghpthhtohepshhsthgrsggvlhhlihhniheskhgvrhhnvghlrdhorhhg X-ME-Proxy: Feedback-ID: ifdffe1b6:Fastmail From: Sergiy Kibrik To: xen-devel@lists.xenproject.org Cc: Sergiy Kibrik , Jan Beulich , Andrew Cooper , =?UTF-8?q?Roger=20Pau=20Monn=C3=A9?= , Stefano Stabellini Subject: [XEN PATCH v1 0/4] make nested virtualization support optional Date: Thu, 20 Mar 2025 12:32:26 +0200 Message-Id: X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Here're a couple of patches that introduce a Kconfig control for user to be able to remove nested HVM code from the build and hence to tune their system in case nested VMs aren't required. The first two patches are minor fixes and not directly related to nested HVM, but since they also modify the same code I've decided to include them too. -Sergiy Sergiy Kibrik (4): x86:svm: use nsvm_efer_svm_enabled() to check guest's EFER.SVME x86:svm: rename svm/nestedhvm.h -> svm/nestedsvm.h x86:hvm: guard calls to nestedhvm routines x86:hvm: make nestedhvm support optional xen/arch/x86/Kconfig | 5 +++++ xen/arch/x86/hvm/Makefile | 2 +- xen/arch/x86/hvm/hvm.c | 6 ++++-- xen/arch/x86/hvm/svm/Makefile | 2 +- xen/arch/x86/hvm/svm/asid.c | 2 +- xen/arch/x86/hvm/svm/entry.S | 2 ++ xen/arch/x86/hvm/svm/intr.c | 2 +- xen/arch/x86/hvm/svm/nestedsvm.c | 2 +- xen/arch/x86/hvm/svm/{nestedhvm.h => nestedsvm.h} | 0 xen/arch/x86/hvm/svm/svm.c | 14 +++++++++----- xen/arch/x86/hvm/vmx/Makefile | 2 +- xen/arch/x86/hvm/vmx/entry.S | 2 ++ xen/arch/x86/hvm/vmx/vmcs.c | 8 +++++--- xen/arch/x86/hvm/vmx/vmx.c | 10 +++++++++- xen/arch/x86/include/asm/hvm/nestedhvm.h | 10 +++++++++- 15 files changed, 51 insertions(+), 18 deletions(-) rename xen/arch/x86/hvm/svm/{nestedhvm.h => nestedsvm.h} (100%) -- 2.25.1