diff mbox series

[v10,11/24] x86/sev: Replace dev_[err,alert] with pr_[err,alert]

Message ID 20240621123903.2411843-12-nikunj@amd.com (mailing list archive)
State New, archived
Headers show
Series Add Secure TSC support for SNP guests | expand

Commit Message

Nikunj A. Dadhania June 21, 2024, 12:38 p.m. UTC
Replace the dev_err/alert with pr_err/alert after the sev-guest driver
movement.

No functional change.

Signed-off-by: Nikunj A Dadhania <nikunj@amd.com>
---
 arch/x86/coco/sev/core.c | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)
diff mbox series

Patch

diff --git a/arch/x86/coco/sev/core.c b/arch/x86/coco/sev/core.c
index 7cb7a7c41a3b..0112e4c5dbcd 100644
--- a/arch/x86/coco/sev/core.c
+++ b/arch/x86/coco/sev/core.c
@@ -2657,8 +2657,7 @@  static void snp_disable_vmpck(struct snp_guest_dev *snp_dev)
 	if (is_vmpck_empty(snp_dev))
 		return;
 
-	dev_alert(snp_dev->dev, "Disabling VMPCK%u communication key to prevent IV reuse.\n",
-		  snp_dev->vmpck_id);
+	pr_alert("Disabling VMPCK%u communication key to prevent IV reuse.\n", snp_dev->vmpck_id);
 	memzero_explicit(key, VMPCK_KEY_LEN);
 }
 
@@ -2678,7 +2677,7 @@  static u64 snp_get_msg_seqno(struct snp_guest_dev *snp_dev)
 	 * invalid number and will fail the  message request.
 	 */
 	if (count >= UINT_MAX) {
-		dev_err(snp_dev->dev, "request message sequence counter overflow\n");
+		pr_err("request message sequence counter overflow\n");
 		return 0;
 	}
 
@@ -2914,8 +2913,7 @@  static int __maybe_unused snp_send_guest_request(struct snp_guest_dev *snp_dev,
 		    rio->exitinfo2 == SNP_GUEST_VMM_ERR(SNP_GUEST_VMM_ERR_INVALID_LEN))
 			return rc;
 
-		dev_alert(snp_dev->dev,
-			  "Detected error from ASP request. rc: %d, exitinfo2: 0x%llx\n",
+		pr_alert("Detected error from ASP request. rc: %d, exitinfo2: 0x%llx\n",
 			  rc, rio->exitinfo2);
 		snp_disable_vmpck(snp_dev);
 		return rc;
@@ -2923,8 +2921,7 @@  static int __maybe_unused snp_send_guest_request(struct snp_guest_dev *snp_dev,
 
 	rc = verify_and_dec_payload(snp_dev, req);
 	if (rc) {
-		dev_alert(snp_dev->dev, "Detected unexpected decode failure from ASP. rc: %d\n",
-			  rc);
+		pr_alert("Detected unexpected decode failure from ASP. rc: %d\n", rc);
 		snp_disable_vmpck(snp_dev);
 		return rc;
 	}