From: Tobin Feldman-Fitzthum <tobin@linux.ibm.com>
To: Eduardo Habkost <ehabkost@redhat.com>
Cc: thomas.lendacky@amd.com, brijesh.singh@amd.com,
jejb@linux.ibm.com, tobin@ibm.com, qemu-devel@nongnu.org,
dgilbert@redhat.com, berrange@redhat.com, pbonzini@redhat.com
Subject: Re: [PATCH v5] sev: add sev-inject-launch-secret
Date: Mon, 19 Oct 2020 17:21:12 -0400 [thread overview]
Message-ID: <336a84f50acf3f8661afd89946da3f50@linux.vnet.ibm.com> (raw)
In-Reply-To: <20201019164730.GN5733@habkost.net>
On 2020-10-19 12:47, Eduardo Habkost wrote:
> On Mon, Oct 19, 2020 at 12:46:08PM -0400, Eduardo Habkost wrote:
>> On Thu, Oct 15, 2020 at 10:37:13AM -0400, tobin@linux.ibm.com wrote:
>> [...]
>> > diff --git a/target/i386/sev-stub.c b/target/i386/sev-stub.c
>> > index 88e3f39a1e..2d2ee54cc6 100644
>> > --- a/target/i386/sev-stub.c
>> > +++ b/target/i386/sev-stub.c
>> > @@ -49,3 +49,8 @@ SevCapability *sev_get_capabilities(Error **errp)
>> > error_setg(errp, "SEV is not available in this QEMU");
>> > return NULL;
>> > }
>> > +int sev_inject_launch_secret(const char *hdr, const char *secret,
>> > + uint64_t gpa)
>> > +{
>> > + return 1;
>> > +}
>>
>> This doesn't match the actual function prototype. I had to apply the
>> following
>> fixup:
>>
>> ---
>> diff --git a/target/i386/sev-stub.c b/target/i386/sev-stub.c
>> index 2d2ee54cc6..62a2587e7b 100644
>> --- a/target/i386/sev-stub.c
>> +++ b/target/i386/sev-stub.c
>> @@ -49,8 +49,10 @@ SevCapability *sev_get_capabilities(Error **errp)
>> error_setg(errp, "SEV is not available in this QEMU");
>> return NULL;
>> }
>> +
>> int sev_inject_launch_secret(const char *hdr, const char *secret,
>> - uint64_t gpa)
>> + uint64_t gpa, Error *errp)
>
> Oops. Fixing up the fixup:
Thanks Eduardo.
-Tobin
>
> ---
> diff --git a/target/i386/sev-stub.c b/target/i386/sev-stub.c
> index 62a2587e7b..e4e60d9a7d 100644
> --- a/target/i386/sev-stub.c
> +++ b/target/i386/sev-stub.c
> @@ -51,7 +51,7 @@ SevCapability *sev_get_capabilities(Error **errp)
> }
>
> int sev_inject_launch_secret(const char *hdr, const char *secret,
> - uint64_t gpa, Error *errp)
> + uint64_t gpa, Error **errp)
> {
> error_setg(errp, "SEV is not available in this QEMU");
> return 1;
next prev parent reply other threads:[~2020-10-19 21:22 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-15 14:37 [PATCH v5] sev: add sev-inject-launch-secret tobin
2020-10-15 14:44 ` Brijesh Singh
2020-10-19 14:56 ` Eduardo Habkost
2020-10-19 16:46 ` Eduardo Habkost
2020-10-19 16:47 ` Eduardo Habkost
2020-10-19 21:21 ` Tobin Feldman-Fitzthum [this message]
2020-10-20 9:03 ` Paolo Bonzini
2020-10-20 13:54 ` Eduardo Habkost
2020-10-20 15:56 ` Paolo Bonzini
2020-10-20 21:33 ` Tobin Feldman-Fitzthum
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=336a84f50acf3f8661afd89946da3f50@linux.vnet.ibm.com \
--to=tobin@linux.ibm.com \
--cc=berrange@redhat.com \
--cc=brijesh.singh@amd.com \
--cc=dgilbert@redhat.com \
--cc=ehabkost@redhat.com \
--cc=jejb@linux.ibm.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=thomas.lendacky@amd.com \
--cc=tobin@ibm.com \
/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).