From patchwork Mon Mar 11 12:40:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vaishali Thakkar X-Patchwork-Id: 13588747 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 5A740C54E67 for ; Mon, 11 Mar 2024 12:40:39 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.691468.1077445 (Exim 4.92) (envelope-from ) id 1rjex2-0001De-AL; Mon, 11 Mar 2024 12:40:20 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 691468.1077445; Mon, 11 Mar 2024 12:40:20 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1rjex2-0001DX-6z; Mon, 11 Mar 2024 12:40:20 +0000 Received: by outflank-mailman (input) for mailman id 691468; Mon, 11 Mar 2024 12:40:18 +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 1rjex0-0001DQ-Du for xen-devel@lists.xenproject.org; Mon, 11 Mar 2024 12:40:18 +0000 Received: from mail137-23.atl71.mandrillapp.com (mail137-23.atl71.mandrillapp.com [198.2.137.23]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id 8247e937-dfa4-11ee-a1ee-f123f15fe8a2; Mon, 11 Mar 2024 13:40:15 +0100 (CET) Received: from pmta07.mandrill.prod.atl01.rsglab.com (localhost [127.0.0.1]) by mail137-23.atl71.mandrillapp.com (Mailchimp) with ESMTP id 4Ttbvx4Gbzz1XLHZS for ; Mon, 11 Mar 2024 12:40:13 +0000 (GMT) Received: from [37.26.189.201] by mandrillapp.com id 0d202f572a42476ba738db1285fab61f; Mon, 11 Mar 2024 12:40:13 +0000 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: 8247e937-dfa4-11ee-a1ee-f123f15fe8a2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mandrillapp.com; s=mte1; t=1710160813; x=1710421313; bh=hIyJ/wVgm7EM796HLFHzmm1TJtjO8KPO/CkfRPlI9cc=; h=From:Subject:To:Cc:Message-Id:Feedback-ID:Date:MIME-Version: Content-Type:Content-Transfer-Encoding:CC:Date:Subject:From; b=rUvnEDs4joSaTUHjhf33Bl2CJa2m5Me/SxoJhoJgJyheLxVops/7MoLtxLRuvt0jV eo8F21LPR3yEabvNvvxPVwzB4yx1lccn1PQPtV20ITOWZZ/cI3h6QGctu1ROwuHPz+ x8DZ3kXd5yYayRm3ZDbcg4uco3PYhjsz0x972hqT8FZWLB6ajLKmdkSrC/mE2RmZAA jCsQNDlRDMGLw3sW5kL+S29pO33II2X2HhtoaGx1ROIuqsn4zcc0znw2Qu3yYDtoAR PYz6qVpbDpD+UJxJzLPekiFaSvPVCygGAZLJJbc0sCu5hnHLSLexRO9mj/ni2BxJHl QMVOowBaibSZA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vates.tech; s=mte1; t=1710160813; x=1710421313; i=vaishali.thakkar@vates.tech; bh=hIyJ/wVgm7EM796HLFHzmm1TJtjO8KPO/CkfRPlI9cc=; h=From:Subject:To:Cc:Message-Id:Feedback-ID:Date:MIME-Version: Content-Type:Content-Transfer-Encoding:CC:Date:Subject:From; b=TQ2tzfAzGtI/UYIDPJoKKZe057H44t07FxBkSpBGMKx+rd9n8rk5dw4nDSQF0FSd1 OOCDx2cMOBNflpcG+nKPMicJB8LZhIagbwtivE8L8Mp3SAu/gNmR/H8v3wDpA98cSO +9HNoBt9tQf2AC9XhcPLTQBpYF9803Y6EwJV/pvkcZ5AAEQEz6hFFP1APoeOKzxaiU scFd2Hx+/DZUA6fYxizssye0y05rXlgdAyFZkKZnCCi8NxLwpoq6Ek6pIplRy20qfN +kUnY5z+o+QZNhYchkNXjXxLplAaINAy3ZcYhO5PdZD/RgJfCYBc4a9DF3RGPvqJte 9YnmuDuGAnrdA== From: Vaishali Thakkar Subject: =?utf-8?q?=5BPATCH_v2_0/3=5D_x86/svm_=3A_Misc_changes_for_few_vmcb_?= =?utf-8?q?bits?= X-Mailer: git-send-email 2.44.0 X-Bm-Milter-Handled: 4ffbd6c1-ee69-4e1b-aabd-f977039bd3e2 X-Bm-Transport-Timestamp: 1710160812371 To: xen-devel@lists.xenproject.org Cc: jbeulich@suse.com, andrew.cooper3@citrix.com, roger.pau@citrix.com, wl@xen.org, Vaishali Thakkar Message-Id: X-Native-Encoded: 1 X-Report-Abuse: =?utf-8?q?Please_forward_a_copy_of_this_message=2C_including?= =?utf-8?q?_all_headers=2C_to_abuse=40mandrill=2Ecom=2E_You_can_also_report_?= =?utf-8?q?abuse_here=3A_https=3A//mandrillapp=2Ecom/contact/abuse=3Fid=3D30?= =?utf-8?q?504962=2E0d202f572a42476ba738db1285fab61f?= X-Mandrill-User: md_30504962 Feedback-ID: 30504962:30504962.20240311:md Date: Mon, 11 Mar 2024 12:40:13 +0000 MIME-Version: 1.0 Hi, In this patchset, first & second patch removes the unnecessary suffix from a bunch of vmcb bits. Third patch is about printing the status of sev and sev-es bits while dumping VMCB. Changes since v1: - Address comments from Andrew and Jan - Add extrapatch to drop the suffix _guest as per Andrew's suggestion in one of the reviews - Address Andrew's comment with respect to pretty printing Vaishali Thakkar (3): x86/svm: Drop the _enabled suffix from vmcb bits x86/svm: Drop the suffix _guest from vmcb bit x86/svmdebug: Print sev and sev_es vmcb bits xen/arch/x86/hvm/svm/asid.c | 6 ++--- xen/arch/x86/hvm/svm/nestedsvm.c | 22 +++++++++--------- xen/arch/x86/hvm/svm/svm.c | 2 +- xen/arch/x86/hvm/svm/svmdebug.c | 7 ++++-- xen/arch/x86/hvm/svm/vmcb.c | 2 +- xen/arch/x86/include/asm/hvm/svm/nestedsvm.h | 2 +- xen/arch/x86/include/asm/hvm/svm/vmcb.h | 24 ++++++++++---------- 7 files changed, 34 insertions(+), 31 deletions(-)