Received: by 2002:a05:7412:d024:b0:f9:90c9:de9f with SMTP id bd36csp98670rdb; Wed, 20 Dec 2023 07:15:48 -0800 (PST) X-Google-Smtp-Source: AGHT+IG0Q/uYGyF31G0nPgAmQ1EGcwsu0zk1YWMMtfFbjC3Ix00bu4LMw0cxcpk+u6JmHA4e+hkZ X-Received: by 2002:a17:906:b4b:b0:a23:633a:79c2 with SMTP id v11-20020a1709060b4b00b00a23633a79c2mr2780595ejg.94.1703085347520; Wed, 20 Dec 2023 07:15:47 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1703085347; cv=pass; d=google.com; s=arc-20160816; b=EYfNKOcu880y8yVwyqo8NxRlfXu/dGRtfVZSRRCKu7nYa3RvNgjcMEN4e9rzkC3bxl 7+iAGl4GqIy24GYMegrVPSriXU5ynXRn1/ckhRxg1wCECHnSW3QAxo7594rIw7heOO5k YEL7PXRMXNp8LjqGbw/T0ulYYkX4WE03pkcgBYEJ5Ed2mhNGZ1hUDKjT1MpZBpeQl4LB ml8Pk52YQaTs6jBpgAraws7J7TgBKr8ubz5I1Brn+LJhg6p/DBbrocsVL4s17v3Xs96q Jg34osnEuVRuUvWGNvO0LF6ZWsJW21ujX0q+pdlncZxGecr1S88kbMfEtrfhgqGmSFGo PjJw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=CRm9mK5LBrsBCeWxI4dAFR5WzTvfk4AbwNC7EEU84Zg=; fh=GrBYTfaCmKSBoJ0OQBiloTDpWB/NcGHvBdTqN4MlWVs=; b=rlzLM4J2Lf6hX1iIJxpzdwZ3pW2U3EQiLbXV68URfuLCGUFQMRzXvD1nQXWkoq6CkS XnhPyJIKRhJWZoB/N7yszJqIuSqlKRqtrljrVqzIlSIJ5yPyE48/ltoeowhKW0V9upHE s3nqc/+P2pecOSVyXVM6t0Fq6iGigiWk3K3owtVPHpoL9A+svi0Kkc26JZgqrEAHT0nU 2e9IB4eXcBJoeIA8OwsfH7dau+OiHsVR46eVuUoxo5VxYXxuVH7aQZoUYXxUUuZl37cu rfLaZn829h32cPa25pmy4YKOmbbdcZoZXMoQPgeO2GhFXoeBTPrdwnwKPaUoD0XrNMmu ynNw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=vFukg1oZ; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel+bounces-7126-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-7126-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id o10-20020a17090637ca00b00a23700b2f89si1798446ejc.250.2023.12.20.07.15.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 07:15:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-7126-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=vFukg1oZ; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel+bounces-7126-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-7126-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 1C8181F24299 for ; Wed, 20 Dec 2023 15:15:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3085541212; Wed, 20 Dec 2023 15:14:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="vFukg1oZ" X-Original-To: linux-kernel@vger.kernel.org Received: from NAM04-MW2-obe.outbound.protection.outlook.com (mail-mw2nam04on2068.outbound.protection.outlook.com [40.107.101.68]) (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 0112340C00; Wed, 20 Dec 2023 15:14:56 +0000 (UTC) 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=OPsiGpAiZ0gSHKGWBfoXIeKRNRZAVATUO2hX92EKSOCmd2t4wZIt1aSmm+mdd1fXm+fLFR1pmmqiIkc8jKlwY7tkD0Fy2Y0BLbIjtf+Hpg2h+QnXijDqiTVNc2VkMJjk+ZWHoQXZ71NU5dKDn6mcM1GB2VFZR7Zl6FxoNtKNErEA4RqZvEFDz0fSDqH6anfWu+SbwNgDN2UGCKIki/jtr5bmaLpAt3K1iL742uTKUIWp/ZeOBuHoYpBEwTvQHXOXZvLevlXcplGzTV2rlw61MdXAaJy9XjRA62IZJd86KxpVZEixXK6WE5rJIa30BfXD3fNdqz6cCh1r6KFXXERZxQ== 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=CRm9mK5LBrsBCeWxI4dAFR5WzTvfk4AbwNC7EEU84Zg=; b=RcrUYSQPst9RJAKXwJ9LMmg2z9Gd/k31bYlQ2Vblbp48wXCNEaLyXKrSFxok8YwfOq3rUELGt85AVLDy3RphDq7Z7SSnbNQa2gon3BJyFhTNEDPe/+eDvDJYYKSSk3p50wJXmLAPnU42wPYTgOmfLu/QPdpKhrxLfYA5f0bdmR3uQs/MVjml7xsloCHr9KMvWb+trLYGUeTW8o9k9jtjkCpnIhFYUaKHSHc0bXwzcpm5xcGIAMoElrxsE8Wne1t7QTz5FLtk4eUoImYhR1qNW/6dyCRT9eUNdK8esdRzxtsklWkg9ldiB8Mi3hIVEFxPidF8TgfYtQQ9RohDGRjTcQ== 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=CRm9mK5LBrsBCeWxI4dAFR5WzTvfk4AbwNC7EEU84Zg=; b=vFukg1oZEHRIZTbtNdKlcapQdquAwfUAQZEnKUGFt0OrLb6AbrDv+Cr5PUfA3/j3eBlpjmr84LpC5qZuRasGg82NuaFOQdiYl44ERKIrbTWsPsulP04oL+4qHV6NtAE1R0ebC+9+zxiaz9G5hdI71p8lAEMJFJ/pbn4ndzDvj8w= Received: from DS7PR03CA0226.namprd03.prod.outlook.com (2603:10b6:5:3ba::21) by PH7PR12MB8123.namprd12.prod.outlook.com (2603:10b6:510:2bb::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7091.38; Wed, 20 Dec 2023 15:14:54 +0000 Received: from DS2PEPF0000343C.namprd02.prod.outlook.com (2603:10b6:5:3ba:cafe::c) by DS7PR03CA0226.outlook.office365.com (2603:10b6:5:3ba::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7113.18 via Frontend Transport; Wed, 20 Dec 2023 15:14:54 +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 DS2PEPF0000343C.mail.protection.outlook.com (10.167.18.39) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7113.14 via Frontend Transport; Wed, 20 Dec 2023 15:14:54 +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.34; Wed, 20 Dec 2023 09:14:50 -0600 From: Nikunj A Dadhania To: , , , CC: , , , , , , , , Subject: [PATCH v7 02/16] virt: sev-guest: Replace dev_dbg with pr_debug Date: Wed, 20 Dec 2023 20:43:44 +0530 Message-ID: <20231220151358.2147066-3-nikunj@amd.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231220151358.2147066-1-nikunj@amd.com> References: <20231220151358.2147066-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: DS2PEPF0000343C:EE_|PH7PR12MB8123:EE_ X-MS-Office365-Filtering-Correlation-Id: 9169b17f-92b8-4470-96a6-08dc016e6ba8 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 8C+CZHNHwilPdYGgEOkw05hkIix/dufHc8kMPxWmig2itsM5dpm8qcRsJq9TYte1M2/RB6LH9eTrNtrJ27j+NmdRzuWiYTgBnU7SysXUCrPvkbj0XCkzRJcethUZ7fMLDKPXhEyf+V5Xtow1dhvvvpn64Q6WdXyUb0fzZj4L97FBBTibs495U3GpwAkSlaCNmTcUg/EB7mWW42ScPC2GyKUAhzJ1zlQXbgN7azXzewVhiAMbntJEJA8phkfzDj9QcAkEgqDqGYWYH39j2lSDSjY+R998SBxCDoyXEhE1PxfwLzGNQxlV4PvJzG+H6sjGbc5s6/R0DvCFky+Y10j3t3DTcXYq82dB1gYEMpyFN/7Lf8HIlAysSNnhLhE6mhIYVbMkZsq8HDFcW96rzkCayRAPwaChKN7l2rocydeIGwPTAV+LOhrmgLMd6KZBvgKgzdLHsq4EYqAAqd36NLaieCk2IXEPSJHh6kb9AHysyxep8GRTs/x2UVSHWDOSjnXB4TV5yS6Mvy9cnkdCk7tSYz8jKreF0mdusew4BUqYCV8DCCU4qSq1bP/wevnbp+gobYsBkShAoxjBWcas7JH1qgd8KQ9K1+Xr9kEY3wb2EpZrauER7xBg5yKgIl294KHEYCXsfxZiakpUnOApzkZJFs8ys+X1tA1Ppcyl0TNAGJ+q5I50bsSQ4qjslEIPWuC5G+97iaqv45n6jvJKqOpo9+7e2VnPuSemxrSdF56Il08i3N2I8e7y6YXHVQ7QS6VQGiOg2G2LqEVzqzhXHhk6Ow== 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)(4636009)(396003)(346002)(136003)(39860400002)(376002)(230922051799003)(1800799012)(451199024)(64100799003)(82310400011)(186009)(46966006)(36840700001)(40470700004)(36756003)(8676002)(316002)(83380400001)(2906002)(426003)(336012)(70206006)(110136005)(54906003)(40480700001)(70586007)(4326008)(47076005)(5660300002)(8936002)(36860700001)(7696005)(6666004)(7416002)(16526019)(1076003)(2616005)(478600001)(82740400003)(41300700001)(356005)(81166007)(26005)(40460700003)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Dec 2023 15:14:54.3227 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9169b17f-92b8-4470-96a6-08dc016e6ba8 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: DS2PEPF0000343C.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR12MB8123 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 --- 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 aedc842781b6..469e10d9bf35 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