Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp217068lqh; Thu, 30 May 2024 21:32:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV5cp14Hoide/Y1O6PoCDo65B+bfE87usl81JTTjmnNlJhpr4xPPU9D0/XOMST9mHEw3Xqx3N3MSA6L8kbTWQd4kifBUXbe7+N9XisnGQ== X-Google-Smtp-Source: AGHT+IFtADlq7HnGHJRvObmfYv4PaUfAW6+HfbG0OnCYquC+/d5Pmjoefi8biaLdIDOzCALRRvME X-Received: by 2002:a05:6e02:174b:b0:36a:2a57:9393 with SMTP id e9e14a558f8ab-3748b971340mr10770215ab.3.1717129928672; Thu, 30 May 2024 21:32:08 -0700 (PDT) Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-6c355157be2si880826a12.225.2024.05.30.21.32.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 May 2024 21:32:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-196250-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=HxPmpN49; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-196250-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-196250-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 46D0928634D for ; Fri, 31 May 2024 04:32:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2E6A57E0F2; Fri, 31 May 2024 04:31:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="HxPmpN49" Received: from NAM04-MW2-obe.outbound.protection.outlook.com (mail-mw2nam04on2088.outbound.protection.outlook.com [40.107.101.88]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A6F132135B; Fri, 31 May 2024 04:31:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.101.88 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717129894; cv=fail; b=X/JWnMtGVt22WRa4rv+QKiIQ+73LSPZCuindtdUO8qoOZBx/T6C1VmeOSYY8dQ7WUSKxLv3A8+NNHO9/8myNMZJIKCfQpOI2JqAGZcry1ZrZjMJG8vDC5YKYCCIwp9ZDgI44bRg8KIU+cWNKulN4iFi/K1SFPEK0aF6XsssIAw4= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717129894; c=relaxed/simple; bh=SNLYlOC5DNyzJwqEwdYfz5p/eK7UMeIhQt4EQDMoiIk=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Dg5S42xLKitzAd48/OaGxmtIkveWrEomxm7MGUMnjpywJgf/ITiL5sLdOCJe36xakgnMISoeTtGYiOULY213mSQqDcW2vmhxtpfEbdkSxTy/fODsun8gSkHnMWyyKSYbuWXveSiP+nqcBC0EBFJv+d6faih4z+Pq3xWThmaM0kE= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b=HxPmpN49; arc=fail smtp.client-ip=40.107.101.88 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=amd.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=i1Dwsmm6w0W7Ax5D1YrGdA7QH3UXDzrb941jgjdbjoyQVxIzy3F9Aghi0fd/pw9uSSE/GYtdYdWLlNlrdKOIW6gisS1Lhp7DRMQBoWPRpeUXAfNbP3fo/Mo2Two2cI8dYDcjE/0u29AnHr1nShw73nKQ2x1IKbYO2AWNVeIuPoE8MiLo4t1aOCSDk2XhLxDUiLGbKX2isTTJpQtSYNKdUVrGzxnH6w8pG/HnDbW1dmHVpfwWQZfUeUOm1PQZclqpdq3r7hEVSg+VX+AtX2GTDxNu6KVZsjXs7+zoKXuvP8eHXcn+tiFrHHbjthcLSWBDMLxe7ugqB5UL8HvT3JV0Yw== 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=zFn4XLYAV1hqTrSmZJytKYJYyzmtJMlpElBMk/DoxG0=; b=JsobFe60JiCHs9GjD+vgbfU+xZRJImM/5dI1UBhMz/A/esWxsmUzvYpKXICe1J9VxZubxVtViTzALSzRSu05/eOWqvGDLCYR3k9pmaq3lAb//hm8MX0w1mP03MsTkhl4IEHAQIHdj1aows1CMQoIfItdXw3c4jFlXS3Cm5GiFpcbBu5CKgNSQVY9YSAUlfDBp2+z6hmheD5OPydjo8wj9Da8ldB+AsByqYVH16bIOmP+qzeuqOBucBbbhA0rdXN1vsAdbP+KbWQqo0rQ7hMNpjRvajGQsj9YZgV4ZlGL6FyUYT2/mDjC4P6xk7z4meAQT0oIE30o56OGK3F/cu5hFw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=vger.kernel.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=zFn4XLYAV1hqTrSmZJytKYJYyzmtJMlpElBMk/DoxG0=; b=HxPmpN49fnQM49HPKciY6coM9iGUT23npoVv9bntYrVPjl3jKLZLZIj2+P1V4+ufA7g6dPAmSaF2WT7FR0e5FgrLz22ADkkAOmqitEj9KVmxnWQi1jb7n6TV77Vx9OcE/QdPGtxtJ3c9L7dUAgqBwV28IZjg85RbVnB+8udRTvo= Received: from SJ0PR03CA0138.namprd03.prod.outlook.com (2603:10b6:a03:33c::23) by DM6PR12MB4313.namprd12.prod.outlook.com (2603:10b6:5:21e::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7611.22; Fri, 31 May 2024 04:31:28 +0000 Received: from SJ1PEPF00002327.namprd03.prod.outlook.com (2603:10b6:a03:33c:cafe::79) by SJ0PR03CA0138.outlook.office365.com (2603:10b6:a03:33c::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7611.30 via Frontend Transport; Fri, 31 May 2024 04:31:28 +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 SJ1PEPF00002327.mail.protection.outlook.com (10.167.242.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7633.15 via Frontend Transport; Fri, 31 May 2024 04:31:28 +0000 Received: from gomati.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.2507.35; Thu, 30 May 2024 23:31:24 -0500 From: Nikunj A Dadhania To: , , , , CC: , , , , , , Subject: [PATCH v9 02/24] virt: sev-guest: Replace dev_dbg with pr_debug Date: Fri, 31 May 2024 10:00:16 +0530 Message-ID: <20240531043038.3370793-3-nikunj@amd.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240531043038.3370793-1-nikunj@amd.com> References: <20240531043038.3370793-1-nikunj@amd.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain 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: SJ1PEPF00002327:EE_|DM6PR12MB4313:EE_ X-MS-Office365-Filtering-Correlation-Id: cdc11012-60a5-4ffd-d82a-08dc812a8a0e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|7416005|1800799015|82310400017|376005|36860700004; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?52UTv/rrcE4KkVeKDYZqxfTGgd+6LXrgrvExjEDbnbDDc2Y1NcmZCqUT5rSB?= =?us-ascii?Q?7gFn/AJwPLooZRXC/zB679TYGo37pl37lQeXKe/IjQCPwbFdVkN6kRq/YdEB?= =?us-ascii?Q?ckCnczl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= =?us-ascii?Q?TJ+rpWefFlsSdLTE+4+yzOMYV10KZtfykTf0eSNj51prxvDkW30IGT7PxNUl?= =?us-ascii?Q?VCo9OEeIWbzK/A/s7NeJRVwiKggusv6rgdg2uendMBFxHV5VG/e0bWZxzHoq?= =?us-ascii?Q?9/YeORaPzz3RbFha6xwzoZLgdeg+YFh6r5TAVBckAyrHl0w41Czy1q8O++sT?= =?us-ascii?Q?gA8+l7fXoTWhMbmFoCbKgVMQxB2PTCfjWxsCS4N7uPMqMVN2bUegD/2o8/nA?= =?us-ascii?Q?Qlls76XZj3fL3pQ8TN/y7Jsz7wsmIO4S8bfVkH4bmZG/dRETCoC/QReYVMU3?= =?us-ascii?Q?9ZGs0YCwxksykH/Bf177l/pHcpVtmsaDAR2CaY/qqwyX2xrutP4EI85SQQjW?= =?us-ascii?Q?Tp7c8oI=3D?= 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:(13230031)(7416005)(1800799015)(82310400017)(376005)(36860700004);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 May 2024 04:31:28.3355 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: cdc11012-60a5-4ffd-d82a-08dc812a8a0e 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: SJ1PEPF00002327.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB4313 In preparation of moving code to arch/x86/kernel/sev.c, replace dev_dbg with pr_debug. Signed-off-by: Nikunj A Dadhania Reviewed-by: Tom Lendacky Tested-by: Peter Gonda Reviewed-by: Borislav Petkov (AMD) --- drivers/virt/coco/sev-guest/sev-guest.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/virt/coco/sev-guest/sev-guest.c b/drivers/virt/coco/sev-guest/sev-guest.c index 0768c6692483..7e1bf2056b47 100644 --- a/drivers/virt/coco/sev-guest/sev-guest.c +++ b/drivers/virt/coco/sev-guest/sev-guest.c @@ -178,8 +178,9 @@ static int verify_and_dec_payload(struct snp_guest_dev *snp_dev, void *payload, struct aesgcm_ctx *ctx = snp_dev->ctx; u8 iv[GCM_AES_IV_SIZE] = {}; - dev_dbg(snp_dev->dev, "response [seqno %lld type %d version %d sz %d]\n", - resp_hdr->msg_seqno, resp_hdr->msg_type, resp_hdr->msg_version, resp_hdr->msg_sz); + pr_debug("response [seqno %lld type %d version %d sz %d]\n", + resp_hdr->msg_seqno, resp_hdr->msg_type, resp_hdr->msg_version, + resp_hdr->msg_sz); /* Copy response from shared memory to encrypted memory. */ memcpy(resp, snp_dev->response, sizeof(*resp)); @@ -232,8 +233,8 @@ static int enc_payload(struct snp_guest_dev *snp_dev, u64 seqno, int version, u8 if (!hdr->msg_seqno) return -ENOSR; - dev_dbg(snp_dev->dev, "request [seqno %lld type %d version %d sz %d]\n", - hdr->msg_seqno, hdr->msg_type, hdr->msg_version, hdr->msg_sz); + pr_debug("request [seqno %lld type %d version %d sz %d]\n", + hdr->msg_seqno, hdr->msg_type, hdr->msg_version, hdr->msg_sz); if (WARN_ON((sz + ctx->authsize) > sizeof(req->payload))) return -EBADMSG; -- 2.34.1