[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v3 14/22] target/i386/sev: Move qmp_query_sev_attestation_rep
From: |
Philippe Mathieu-Daudé |
Subject: |
Re: [PATCH v3 14/22] target/i386/sev: Move qmp_query_sev_attestation_report() to sev.c |
Date: |
Thu, 7 Oct 2021 11:48:28 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.1.0 |
On 10/4/21 11:57, Dr. David Alan Gilbert wrote:
> * Philippe Mathieu-Daudé (philmd@redhat.com) wrote:
>> Move qmp_query_sev_attestation_report() from monitor.c to sev.c
>> and make sev_get_attestation_report() static. We don't need the
>> stub anymore, remove it.
>>
>> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
>> ---
>> target/i386/sev_i386.h | 2 --
>> target/i386/monitor.c | 6 ------
>> target/i386/sev-sysemu-stub.c | 7 ++++---
>> target/i386/sev.c | 12 ++++++++++--
>> 4 files changed, 14 insertions(+), 13 deletions(-)
>> -SevAttestationReport *sev_get_attestation_report(const char *mnonce,
>> - Error **errp)
>> +SevAttestationReport *qmp_query_sev_attestation_report(const char *mnonce,
>> + Error **errp)
>> {
>> - error_setg(errp, "SEV is not available in this QEMU");
>> + error_setg(errp, QERR_UNSUPPORTED);
>
> I did like that message making it clear the reason it was unsupported
> was this build, rather than lack of host support or not enabling it.
Yep, no reason to change it, besides, QERR_UNSUPPORTED is deprecated
since 2015! (commit 4629ed1e989):
/*
* These macros will go away, please don't use in new code, and do not
* add new ones!
*/
I suppose this is a rebase mistake, thanks for catching it!
Phil.
- Re: [PATCH v3 13/22] target/i386/sev: Remove stubs by using code elision, (continued)
[PATCH v3 12/22] target/i386/sev: Declare system-specific functions in 'sev_i386.h', Philippe Mathieu-Daudé, 2021/10/02
[PATCH v3 11/22] target/i386/sev: Restrict SEV to system emulation, Philippe Mathieu-Daudé, 2021/10/02
[PATCH v3 14/22] target/i386/sev: Move qmp_query_sev_attestation_report() to sev.c, Philippe Mathieu-Daudé, 2021/10/02
[PATCH v3 15/22] target/i386/sev: Move qmp_sev_inject_launch_secret() to sev.c, Philippe Mathieu-Daudé, 2021/10/02
[PATCH v3 16/22] target/i386/sev: Move qmp_query_sev_capabilities() to sev.c, Philippe Mathieu-Daudé, 2021/10/02
[PATCH v3 17/22] target/i386/sev: Move qmp_query_sev_launch_measure() to sev.c, Philippe Mathieu-Daudé, 2021/10/02
[PATCH v3 18/22] target/i386/sev: Move qmp_query_sev() & hmp_info_sev() to sev.c, Philippe Mathieu-Daudé, 2021/10/02
[PATCH v3 19/22] monitor: Restrict 'info sev' to x86 targets, Philippe Mathieu-Daudé, 2021/10/02