From nobody Mon Nov 25 04:53:05 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; arc=pass (i=1 dmarc=pass fromdomain=amd.com); dmarc=pass(p=quarantine dis=none) header.from=amd.com ARC-Seal: i=2; a=rsa-sha256; t=1717804320; cv=pass; d=zohomail.com; s=zohoarc; b=jd4TXH4nKUp3VKSkiC5X+w/kOLYTVhKYnTygag9rX2PVtA+8WYaXKIdDoKcRILr76+PoWZhFag1O8U2T4w5z0/4mak1MnSycG4v1+8OC4wpFPpDfCVtc1f+FSDcc2JDf3mFeQ6wnpmE4fIAzctY8wIh0Yq8Q0R9feeGWjAEe+Ws= ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1717804320; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=I8F0oGA8VEPZYg934kR/lZOH1mCEaW9Eu2/EEHu3xmE=; b=XGimhlDH6MLrgbupzDGXfyx/+lSJg0Qw3F9zJjx/uW9J6lGLL4YTiq9Ldv8RJF46nOGBDatK1mzgIj5AxSP2y/qTFnuu2iW4tcT+1vFhda7Z08W770HYhdcekreoG2qBDUx76Hr2FB6jeI+SxYZg/VZOV4Q93BegL1zxXcBGQlg= ARC-Authentication-Results: i=2; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; arc=pass (i=1 dmarc=pass fromdomain=amd.com); dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 171780432018626.499854611916817; Fri, 7 Jun 2024 16:52:00 -0700 (PDT) Received: from [::1] (helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sFeWj-0001JZ-Hn; Fri, 07 Jun 2024 14:41:25 -0400 Received: from [2001:470:142:3::10] (helo=eggs.gnu.org) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sFeWi-0001It-98 for qemu-devel@nongnu.org; Fri, 07 Jun 2024 14:41:24 -0400 Received: from mail-bn8nam12on2080.outbound.protection.outlook.com ([40.107.237.80] helo=NAM12-BN8-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 1sFeWg-0004zZ-Jq for qemu-devel@nongnu.org; Fri, 07 Jun 2024 14:41:24 -0400 Received: from MW2PR2101CA0003.namprd21.prod.outlook.com (2603:10b6:302:1::16) by SA3PR12MB9131.namprd12.prod.outlook.com (2603:10b6:806:395::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.34; Fri, 7 Jun 2024 18:36:17 +0000 Received: from CO1PEPF000044F6.namprd21.prod.outlook.com (2603:10b6:302:1:cafe::8d) by MW2PR2101CA0003.outlook.office365.com (2603:10b6:302:1::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.7 via Frontend Transport; Fri, 7 Jun 2024 18:36:13 +0000 Received: from SATLEXMB04.amd.com (165.204.84.17) by CO1PEPF000044F6.mail.protection.outlook.com (10.167.241.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7677.0 via Frontend Transport; Fri, 7 Jun 2024 18:36:17 +0000 Received: from SATLEXMB04.amd.com (10.181.40.145) 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.2507.35; Fri, 7 Jun 2024 13:36:13 -0500 Received: from pankaj-M75q.amd.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server id 15.1.2507.35 via Frontend Transport; Fri, 7 Jun 2024 13:36:12 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PCVnwW2Z91GLQSc0i5IXdgUigj4rUx1NCX+X/287F4MN0mJupRWFsF5x975+hlMA7jhtFBazu6pXovwG6UL19gpyCUgwZi8z+ORm53JXl06X/ZrGbZR3vUZCHutdUCGC98zWinPoWnCbkdXFQndSDChPn7fk3RjEeI5re0UojcKBruNrj3W2Aat9eEYntihhm3lXGddAQwvEDdGK5oYMPIxu3eHOCKtcnZOnnEZefFkIWrq0vNDfP1R55bBXIAX9kiHMq5BeEvnHF3M68p+e+T7X2mU83z/WmY8sXh2v2rs4VqB8sMUn8kHWyStqKXB12iXXAVy4OJFgq48ApHJgHA== 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=I8F0oGA8VEPZYg934kR/lZOH1mCEaW9Eu2/EEHu3xmE=; b=cZMgzNpJnDy7Tq7kQsmJcF1XjtlHAySjF7R6lEArE75Z4RX0OTTfNraOy+z/8w8sW5O8iwcNJYCjcX2kQBO6ZZeV68lCL6PkT/lfddFwx933nWU93AEWKP9XKQchzl6z7UqhQlb6E7PmSCbO3aNWv/FFjdApc8Cb8oVryQp4s93q5hdc+DmVRPl9dysBrBvaxnzdbcIC5Z3UYTRfisnJ93cF7dxNDUuKmvI8gMcmgPfSFfYQKBgyrh+6QrgFDaJx7q96xlihTthZpNL3tOp2+j+Y/hrdZY6tehT7lM3yO1l5N6E+m3w0LcdcAghDTn8H6GXWBk4uGRdtHtxa7d1rOQ== 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 (0) 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=I8F0oGA8VEPZYg934kR/lZOH1mCEaW9Eu2/EEHu3xmE=; b=MQfprpVeuiGEDIjGwqPXS4nHPj25xvTyRcPsCTZs1chK0RV1RRvftsHDn9OOGuJ7jdBJDQEgpSDeH6lnd9+DMliTf+34wPTfUvC2YUUoODBzanWUPpMqMwow1+FWJHm8porkee5WpsAJ5DlwXoO1u4GyS1bpcThMPZQk9TZJ0pE= 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 (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; 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 From: Pankaj Gupta To: CC: , , , , , , , Subject: [PATCH 3/3] i386/sev: Return when sev_common is null Date: Fri, 7 Jun 2024 13:36:11 -0500 Message-ID: <20240607183611.1111100-4-pankaj.gupta@amd.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240607183611.1111100-1-pankaj.gupta@amd.com> References: <20240607183611.1111100-1-pankaj.gupta@amd.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: None (SATLEXMB04.amd.com: pankaj.gupta@amd.com does not designate permitted sender hosts) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1PEPF000044F6:EE_|SA3PR12MB9131:EE_ X-MS-Office365-Filtering-Correlation-Id: fabf66d4-c2e6-4134-f99d-08dc8720b7dd X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230031|36860700004|1800799015|82310400017|376005; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?JYxGin/nz8BHfusDsL/mgmbK/ufRgqf2skRKoESXwqyC/EpXClp2QxPpFnmK?= =?us-ascii?Q?HrY1D/d6D0aChX90zLX1mf5H3QlAvF4/ijnCXpHVrh7ZCb8uMuXAmCg852LA?= =?us-ascii?Q?NLRO1dkuv0O66i4NUCe0pPFqKdP0lXM10diFWnBMbYADyWLG2/r3uqpd8+6/?= =?us-ascii?Q?Cu/Nb02lpxEa2YPOH0IeEC3XOi6FPJ98r6QP2lpb4ebnvsI7p5qYUaJHQ8Ic?= =?us-ascii?Q?Lg5EoTUjVgt9J/VQ4oQgHSvCfOS1CJNXgyX7GdcnivZk3pLnaYJd5D9x9EDX?= =?us-ascii?Q?59lz8R5LqnTubrAGnjM1UaUgP5eY2BomLd6SUobyYRDVrk7/x4MgBYS0VEbK?= =?us-ascii?Q?u2u5zsLyue1UUNYShIv7UyUTmb7WuPNQBzeQKobIQblteesJ7zO1KZutOA2A?= =?us-ascii?Q?URi3ZHXuq8nlxXC+3ZyhVnjlJSSUwzR3h++lfGooZvBK72peEwPTKCremiUG?= =?us-ascii?Q?f+lcHrb3xe983vc1oS6gRARHOFIQDzyaA+oq25s12yG/ghMXmy27b1H5zPpS?= =?us-ascii?Q?53Tk8t2Qhlu8OGxh6BKHp2S7DNoD4e8mNQgNViB4bWYfntmKOm/FOij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TRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:SATLEXMB04.amd.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230031)(36860700004)(1800799015)(82310400017)(376005); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jun 2024 18:36:17.1686 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: fabf66d4-c2e6-4134-f99d-08dc8720b7dd 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: CO1PEPF000044F6.namprd21.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA3PR12MB9131 Received-SPF: permerror client-ip=40.107.237.80; envelope-from=Pankaj.Gupta@amd.com; helo=NAM12-BN8-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, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @amd.com) X-ZM-MESSAGEID: 1717804322267100003 Content-Type: text/plain; charset="utf-8" coverity #1546885 fixes: 16dcf200dc ("i386/sev: Introduce "sev-common" type to encapsulate co= mmon SEV state") Signed-off-by: Pankaj Gupta --- target/i386/sev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/target/i386/sev.c b/target/i386/sev.c index f18432f58e..c40562dce3 100644 --- a/target/i386/sev.c +++ b/target/i386/sev.c @@ -587,6 +587,7 @@ static SevCapability *sev_get_capabilities(Error **errp) sev_common =3D SEV_COMMON(MACHINE(qdev_get_machine())->cgs); if (!sev_common) { error_setg(errp, "SEV is not configured"); + return NULL; } =20 sev_device =3D object_property_get_str(OBJECT(sev_common), "sev-device= ", --=20 2.34.1