From patchwork Fri Sep 30 15:14:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Lendacky X-Patchwork-Id: 12995641 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.gnu.org (lists.gnu.org [209.51.188.17]) (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 4543CC433F5 for ; Fri, 30 Sep 2022 15:17:32 +0000 (UTC) Received: from localhost ([::1]:54270 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oeHlb-0001xK-4d for qemu-devel@archiver.kernel.org; Fri, 30 Sep 2022 11:17:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37428) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oeHjA-0000HC-7V for qemu-devel@nongnu.org; Fri, 30 Sep 2022 11:15:00 -0400 Received: from mail-dm6nam10on2050.outbound.protection.outlook.com ([40.107.93.50]:11520 helo=NAM10-DM6-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oeHj5-0006j5-U6 for qemu-devel@nongnu.org; Fri, 30 Sep 2022 11:14:59 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EgzLG5n5+O8vHgLpBUPf63jDwWCq61JVP3gZcHf/VWkX1RjuoQWkEuQAfuM+DO6dWS3QAxko5Y01KiobyzhpJuIJKjSlKucq/87E/YFXh7NifSxS6hjP+O9Sshmi+FcnzCdZh1mlGlfJlhX7jnTJKCfaYOast2W4PE2vC5RBn7LeYMXd3wB/1fPjRjUPAwcOrykrAz9vbj6mHWtOFfo9jCdw7Vb0HBDQg5g9X/laaQ42F+Qiy0tjeqFR/BCG4jpF5zOk30qAQwlfWdjjs1PxUnwU76AMsZXf7FBMzwO7GrfzyxFVqzjMYuUM2xmG3thFwpt71pUsJop/3GsyzEfY3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Ob/NQf5+m8reU3ape58u0Hb3iCVgbA1GXB2+QQJ/DJI=; b=ebmuXtabKIaW2ckEqKjWbRzLXXZ2b6yR7i1O5nJ8Krr53mXCOKHQDg1V/Bv9iGc1oVItMxOnwFcyLW01AVz0QjpXpNpZJSTvvBrR+htSaCs2iiiaYTG7gRUE4mA4kFhZ7bAo4yA8jvUtUVA390emUBOYbFMN4t+DxttphNxShnDjs5Z9ehtmFQ6irlChAIHRDjEfDHqvVGZYLIVIZNPpXPazp8uZ3DY3K/1ER2q+00bpCXc6ENcxXVnVG0eRu1B4IR245YSG2Sni3WUDAHvACxXgxQ0M3CfTXW6w5Ah3Ow+jbPMst43Dda8DN3BkgDewqV+tvkkw7Ae5YEoDB7gjCg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=nongnu.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Ob/NQf5+m8reU3ape58u0Hb3iCVgbA1GXB2+QQJ/DJI=; b=0Z8HnISkUiOyrwsob4ZLAGwKpc2lN2/VZdYYH9TOQeGaCJaAEa6MPWj5Z/Bm7f/xckf3T8akKId5LI/5AXVGGzpy/SwOCtiFLvx0wAHJQgRIF/JE+zTpEe4tJXqd6IpJ8ojCgBfTE+lmCSUoUZ1Cl9QZ+vTh2C2tPvjNegY9ZCM= Received: from DM6PR13CA0017.namprd13.prod.outlook.com (2603:10b6:5:bc::30) by PH8PR12MB6962.namprd12.prod.outlook.com (2603:10b6:510:1bd::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5676.23; Fri, 30 Sep 2022 15:14:52 +0000 Received: from DM6NAM11FT071.eop-nam11.prod.protection.outlook.com (2603:10b6:5:bc:cafe::f4) by DM6PR13CA0017.outlook.office365.com (2603:10b6:5:bc::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5676.23 via Frontend Transport; Fri, 30 Sep 2022 15:14:52 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by DM6NAM11FT071.mail.protection.outlook.com (10.13.173.48) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5676.17 via Frontend Transport; Fri, 30 Sep 2022 15:14:52 +0000 Received: from tlendack-t1.amd.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.28; Fri, 30 Sep 2022 10:14:51 -0500 From: Tom Lendacky To: , CC: Eric Blake , Markus Armbruster , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , =?utf-8?q?Phil?= =?utf-8?q?ippe_Mathieu-Daud=C3=A9?= , Paolo Bonzini , Marcelo Tosatti , Michael Roth Subject: [PATCH 1/4] qapi, i386/sev: Change the reduced-phys-bits value from 5 to 1 Date: Fri, 30 Sep 2022 10:14:27 -0500 Message-ID: X-Mailer: git-send-email 2.37.3 In-Reply-To: References: MIME-Version: 1.0 X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB04.amd.com (10.181.40.145) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6NAM11FT071:EE_|PH8PR12MB6962:EE_ X-MS-Office365-Filtering-Correlation-Id: 653afce4-19aa-4afd-9fa2-08daa2f6861b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: kv/qhqGNg05tL7Tg+xzc5IEpYXI5oM3d7gcyyhoZYrBKxaktIVf28FXOtczivBctWf8B/FspM+kcix0odpyNLgpC9Q4qV9D7DCCJ7xOSoJ57ZoQyPX/440ZAjtFubdesw8zAYEhV/YGqUBIQ5Rhz7LkS1imqFC6Hb78TmamV8F5mXpLL37NP/6uI+KE3gZuNZqI9N5ldr4zErgKHI68NwviurUPWTMAvyyWvpyPkFUCPEVJQw6sWExFcK/hhyCVOpq7GdjpFYs2Srl0eS43rvQkARBDnxYp/i97K++WWsYoDCsvS09AqNUwbaKbG3kjnnuI3kemF1IRDy81/T4tZ1SV8IXm5An/ruPiX/cQF6hI+Arvd4Z/ugdzU1zAQINlVCAzs6TZnTr15LvTW8qHpt0FrJ8wWT8XBHD38n9GsJWgMs7f3720MKbBj08s3ZtKWifopkErWKSWuPUbr21UeaFddqarbk9NrqzylCPvSsGhQa2LribPQVBOB9BrYwITd2oq57EmA/r7bBK3Ypxo4Zg3AIiGb4UsR5dXfTwROJDfBWQVmJleNZ/WxvLDAAoKm7CxjTeQ8WV9CuBCm065yVI40La/ZUBypKUkA9qwng6l5sLNRHiOWuQcbj194N56DCz6ZDaWyhaVGn42De0un+3rINmCpzbzTnJ4TAuCGf23LI+tSg061E7cBmre3emlqKdMUSdZkyl0VhzdOy94CiySaQbfFGo4uaYaijb7ZlvdbadkSzNaWUE5Vie9kIqYsIWZnq0ySxTEn7enw/aLQbCvaR62jPOCDMWvk4TMn4+vgRJz+OghOBLibUzgZ4erF X-Forefront-Antispam-Report: CIP:165.204.84.17; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:SATLEXMB04.amd.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230022)(4636009)(39860400002)(396003)(346002)(376002)(136003)(451199015)(36840700001)(40470700004)(46966006)(81166007)(2616005)(356005)(82310400005)(2906002)(110136005)(54906003)(478600001)(316002)(5660300002)(40480700001)(336012)(86362001)(8936002)(26005)(40460700003)(47076005)(7696005)(4744005)(6666004)(83380400001)(186003)(82740400003)(41300700001)(16526019)(36756003)(36860700001)(70586007)(70206006)(8676002)(426003)(4326008)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Sep 2022 15:14:52.0864 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 653afce4-19aa-4afd-9fa2-08daa2f6861b X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17]; Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT071.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH8PR12MB6962 Received-SPF: softfail client-ip=40.107.93.50; envelope-from=Thomas.Lendacky@amd.com; helo=NAM10-DM6-obe.outbound.protection.outlook.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" A guest only ever experiences, at most, 1 bit of reduced physical addressing. Change the query-sev-capabilities json comment to use 1. Fixes: 31dd67f684 ("sev/i386: qmp: add query-sev-capabilities command") Signed-off-by: Tom Lendacky Reviewed-by: Dr. David Alan Gilbert --- qapi/misc-target.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qapi/misc-target.json b/qapi/misc-target.json index 4944c0528f..398fd09f25 100644 --- a/qapi/misc-target.json +++ b/qapi/misc-target.json @@ -172,7 +172,7 @@ # -> { "execute": "query-sev-capabilities" } # <- { "return": { "pdh": "8CCDD8DDD", "cert-chain": "888CCCDDDEE", # "cpu0-id": "2lvmGwo+...61iEinw==", -# "cbitpos": 47, "reduced-phys-bits": 5}} +# "cbitpos": 47, "reduced-phys-bits": 1}} # ## { 'command': 'query-sev-capabilities', 'returns': 'SevCapability',