OSDN Git Service

target/i386: sev: provide proper error reporting for query-sev-capabilities
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 30 Jun 2020 15:35:46 +0000 (11:35 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 10 Jul 2020 22:02:22 +0000 (18:02 -0400)
commite4f6278557148151e77260b872b41bcd7ceb4737
treeb48dc66a8b91ccb5b01d509a82f40cffdd75e6ec
parente1e43813e7908b063938a3d01f172f88f6190c80
target/i386: sev: provide proper error reporting for query-sev-capabilities

The query-sev-capabilities was reporting errors through error_report;
change it to use Error** so that the cause of the failure is clearer.

Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/monitor.c
target/i386/sev-stub.c
target/i386/sev.c
target/i386/sev_i386.h