linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Dionna Glaze <dionnaglaze@google.com>
To: linux-kernel@vger.kernel.org, x86@kernel.org
Cc: Dionna Glaze <dionnaglaze@google.com>,
	Borislav Petkov <Borislav.Petkov@amd.com>,
	Peter Gonda <pgonda@google.com>,
	Thomas Lendacky <Thomas.Lendacky@amd.com>
Subject: [PATCH v11 6/7] virt/coco/sev-guest: Remove dependence on sev_guestreq_t
Date: Wed, 11 Jan 2023 19:40:00 +0000	[thread overview]
Message-ID: <20230111194001.1947849-7-dionnaglaze@google.com> (raw)
In-Reply-To: <20230111194001.1947849-1-dionnaglaze@google.com>

Next step in changing the cross-module signature change is to remove
this dependency in sev-guest in favor of the concrete type, u64.

Cc: Borislav Petkov <Borislav.Petkov@amd.com>
Cc: Peter Gonda <pgonda@google.com>
Cc: Thomas Lendacky <Thomas.Lendacky@amd.com>

Signed-off-by: Dionna Glaze <dionnaglaze@google.com>
---
 drivers/virt/coco/sev-guest/sev-guest.c | 2 +-
 include/uapi/linux/sev-guest.h          | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/virt/coco/sev-guest/sev-guest.c b/drivers/virt/coco/sev-guest/sev-guest.c
index 04c30e4da642..1204939d4f2b 100644
--- a/drivers/virt/coco/sev-guest/sev-guest.c
+++ b/drivers/virt/coco/sev-guest/sev-guest.c
@@ -412,7 +412,7 @@ static int handle_guest_request(struct snp_guest_dev *snp_dev, u64 exit_code,
 	if (rc) {
 		dev_alert(snp_dev->dev,
 			  "Detected error from ASP request. rc: %d, exitinfo2: %llu\n",
-			rc, (u64)arg->exitinfo2);
+			  rc, arg->exitinfo2);
 		goto disable_vmpck;
 	}
 
diff --git a/include/uapi/linux/sev-guest.h b/include/uapi/linux/sev-guest.h
index 49fc4341ac93..ef910e605ef0 100644
--- a/include/uapi/linux/sev-guest.h
+++ b/include/uapi/linux/sev-guest.h
@@ -56,7 +56,7 @@ struct snp_guest_request_ioctl {
 
         union {
                 __u64 fw_err; /* Name deprecated in favor of others */
-		sev_guestreq_err_t exitinfo2;
+		__u64 exitinfo2;
 		struct {
 			__u32 fw_error;
 			__u32 vmm_error;
-- 
2.39.0.314.g84b9a713c41-goog


  parent reply	other threads:[~2023-01-11 19:41 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-11 19:39 [PATCH v11 0/7] Add throttling detection to sev-guest Dionna Glaze
2023-01-11 19:39 ` [PATCH v11 1/7] crypto: ccp - Name -1 return value as SEV_RET_NO_FW_CALL Dionna Glaze
2023-01-11 19:39 ` [PATCH v11 2/7] x86/sev: Change snp_guest_issue_request's fw_err Dionna Glaze
2023-01-20 14:09   ` Borislav Petkov
2023-01-20 18:03     ` Dionna Amalie Glaze
2023-01-20 18:50       ` Borislav Petkov
2023-01-11 19:39 ` [PATCH v11 3/7] virt: sev-guest: Remove err in handle_guest_request Dionna Glaze
2023-01-11 19:39 ` [PATCH v11 4/7] virt: sev-guest: interpret VMM errors from guest request Dionna Glaze
2023-01-11 19:39 ` [PATCH v11 5/7] x86/sev: Change sev_guestreq_err_t to u64 Dionna Glaze
2023-01-11 19:40 ` Dionna Glaze [this message]
2023-01-11 19:40 ` [PATCH v11 7/7] x86/sev: Remove temporary typedef Dionna Glaze

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230111194001.1947849-7-dionnaglaze@google.com \
    --to=dionnaglaze@google.com \
    --cc=Borislav.Petkov@amd.com \
    --cc=Thomas.Lendacky@amd.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pgonda@google.com \
    --cc=x86@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).