From nobody Tue Dec 16 16:44:11 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass header.i=teddy.astie@vates.tech; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=reject dis=none) header.from=vates.tech ARC-Seal: i=1; a=rsa-sha256; t=1747391519; cv=none; d=zohomail.com; s=zohoarc; b=i6Fz2a88uxESJUg7tn+20Zu7NEqbv/LRr7LJiFpcdLWMNsTZ51fnRF/+qB8rZMo9EAZAIVwD/aabgE0cD8GcJ/EQMzJ3Hmtuw+oLI8/g3ihNu5iD+iHxMQ+bh55IVtMbtpOaOCuzLasv495BOo4Z30qg0EL94fwf1EqK8in0K+A= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1747391519; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=dLlEWnEcFnUkrXQUBAwvC2R74dRSbryvP/QYt6wEGyA=; b=dezKSO7Y6iT1X9a/FJeKshueBIDmcXYaV1sUUjEYD70780F8V0FpsAoSer12/Tu/wikTZLRco8IS5AxkOVwKYoXIrpiN8mFOfdyBZuqhB2GR6gyanjM3gflQQZLxhfC3svf32iaMhvXOPeG7NG4/WR1Ai1Tk10zLHxHOXT/YnzM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=teddy.astie@vates.tech; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 174739151954760.27138155670923; Fri, 16 May 2025 03:31:59 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.986871.1372400 (Exim 4.92) (envelope-from ) id 1uFsLz-0005bu-Aa; Fri, 16 May 2025 10:31:47 +0000 Received: by outflank-mailman (output) from mailman id 986871.1372400; Fri, 16 May 2025 10:31: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 1uFsLz-0005bl-65; Fri, 16 May 2025 10:31:47 +0000 Received: by outflank-mailman (input) for mailman id 986871; Fri, 16 May 2025 10:31: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 1uFsEb-0000kS-NA for xen-devel@lists.xenproject.org; Fri, 16 May 2025 10:24:09 +0000 Received: from mail187-4.suw11.mandrillapp.com (mail187-4.suw11.mandrillapp.com [198.2.187.4]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id e61d7bd4-323f-11f0-9ffb-bf95429c2676; Fri, 16 May 2025 12:24:08 +0200 (CEST) Received: from pmta09.mandrill.prod.suw01.rsglab.com (localhost [127.0.0.1]) by mail187-4.suw11.mandrillapp.com (Mailchimp) with ESMTP id 4ZzNTy61lZzlfcNB for ; Fri, 16 May 2025 10:24:06 +0000 (GMT) Received: from [37.26.189.201] by mandrillapp.com id fb66e4ff4694405bb0c5bd8ca9aafaf8; Fri, 16 May 2025 10:24:06 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version 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: e61d7bd4-323f-11f0-9ffb-bf95429c2676 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mandrillapp.com; s=mte1; t=1747391046; x=1747661046; bh=dLlEWnEcFnUkrXQUBAwvC2R74dRSbryvP/QYt6wEGyA=; h=From:Subject:To:Cc:Message-Id:In-Reply-To:References:Feedback-ID: Date:MIME-Version:Content-Type:Content-Transfer-Encoding:CC:Date: Subject:From; b=u6Ro8WmoVEI0JcMvbTJkiCWQSGdMOJBA8OyBM0/x4OHAYd79KxB6YmP5LjRK2Ngoa RZ6LIX+LcPkUO6vfLfOdlqN/g4d0vNMt7z0YWeFsUboW+t3rPoHiLG8cl6y183zDm3 BOvvMzqT9emIuYDGdh5hicDzeL3qQI/iNPff2VuTRmFxfGfB7uYiP5tsbAWRUP33q/ EcanY2vjr+dPFSiEKqlT65eeGaCCFACzddjKm/lRq8EIwY2Tm3J01M65nGsU1V/lnv PyBtqyWUy5cnmUeu4IOHVguSUMljQ+ebqg1Gj6ON91nV6luJ2p0zj26Ri6ay9jiTyk yHAg2RJ2YM+AQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vates.tech; s=mte1; t=1747391046; x=1747651546; i=teddy.astie@vates.tech; bh=dLlEWnEcFnUkrXQUBAwvC2R74dRSbryvP/QYt6wEGyA=; h=From:Subject:To:Cc:Message-Id:In-Reply-To:References:Feedback-ID: Date:MIME-Version:Content-Type:Content-Transfer-Encoding:CC:Date: Subject:From; b=XFcBT+CVLxyD3IZf0ElbSrbidtiRAc30nWLKdndrVtOgFn7Fq00cpEWvR1LgwapmY LKSwV4x11s8/TKDoK4Mb3ICUIXDRGCKRI2HlD0hdYVsDpMDFXAbHhiNQKFwAhidz2c tiNqTzbBfaNDVOwA9FyJ/BUVRt06WUj+zbRxrxltwygr6PEzJNlemf8/iwI2LsSu+8 Cgml+DZ6h2V+YiLIKXjqmz6oufdslIxWwQwmi57ZVoLqmJl6fJ5KHNJlOos+zBqb0M ofzgck2d/h4j7KXM6cWbI0k7tsGMu4g5vchDCP3y2sfHlWLMYtydJn+Zy+OP2ypte8 TNMD+QZvLV0cw== From: "Teddy Astie" Subject: =?utf-8?Q?[RFC=20PATCH=2011/16]=20x86/svm:=20Introduce=20NPCTRL=20VMCB=20bits?= X-Mailer: git-send-email 2.49.0 X-Bm-Disclaimer: Yes X-Bm-Milter-Handled: 4ffbd6c1-ee69-4e1b-aabd-f977039bd3e2 X-Bm-Transport-Timestamp: 1747391045888 To: xen-devel@lists.xenproject.org Cc: "Teddy Astie" , "Jan Beulich" , "Andrew Cooper" , "=?utf-8?Q?Roger=20Pau=20Monn=C3=A9?=" , "Andrei Semenov" Message-Id: In-Reply-To: References: X-Native-Encoded: 1 X-Report-Abuse: =?UTF-8?Q?Please=20forward=20a=20copy=20of=20this=20message,=20including=20all=20headers,=20to=20abuse@mandrill.com.=20You=20can=20also=20report=20abuse=20here:=20https://mandrillapp.com/contact/abuse=3Fid=3D30504962.fb66e4ff4694405bb0c5bd8ca9aafaf8?= X-Mandrill-User: md_30504962 Feedback-ID: 30504962:30504962.20250516:md Date: Fri, 16 May 2025 10:24:06 +0000 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity teddy.astie@vates.tech) (identity @mandrillapp.com) X-ZM-MESSAGEID: 1747391521637116600 Content-Type: text/plain; charset="utf-8" Those bits are used to enable SEV-related features in VMCB. Signed-off-by: Andrei Semenov Signed-off-by: Teddy Astie --- xen/arch/x86/include/asm/hvm/svm/vmcb.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/xen/arch/x86/include/asm/hvm/svm/vmcb.h b/xen/arch/x86/include= /asm/hvm/svm/vmcb.h index 3d871b6135..fd166498f2 100644 --- a/xen/arch/x86/include/asm/hvm/svm/vmcb.h +++ b/xen/arch/x86/include/asm/hvm/svm/vmcb.h @@ -143,6 +143,17 @@ enum DRInterceptBits DR_INTERCEPT_DR15_WRITE =3D 1u << 31, }; =20 +/* Miscellanious controls in _np_ctrl*/ +enum NpCtrlBits +{ + NPCTRL_NP_ENABLE =3D 1 << 0, + NPCTRL_SEV_ENABLE =3D 1 << 1, + NPCTRL_SEVES_ENABLE =3D 1 << 2, + NPCTRL_GMET_ENABLE =3D 1 << 3, + NPCTRL_NPSSS_ENABL =3D 1 << 4, + NPCTRL_VTE_ENABLE =3D 1 << 5, +}; + enum VMEXIT_EXITCODE { /* control register read exitcodes */ --=20 2.49.0 Teddy Astie | Vates XCP-ng Developer XCP-ng & Xen Orchestra - Vates solutions web: https://vates.tech