diff options
author | David Gibson | 2020-06-04 06:18:52 +0200 |
---|---|---|
committer | David Gibson | 2021-02-08 06:57:38 +0100 |
commit | c9f5aaa6bce819c1863c2a56b187cb9eb521fc92 (patch) | |
tree | 63ec7cac1c3fe0d9a45aa044134e00bc36878655 /include/sysemu | |
parent | confidential guest support: Rework the "memory-encryption" property (diff) | |
download | qemu-c9f5aaa6bce819c1863c2a56b187cb9eb521fc92.tar.gz qemu-c9f5aaa6bce819c1863c2a56b187cb9eb521fc92.tar.xz qemu-c9f5aaa6bce819c1863c2a56b187cb9eb521fc92.zip |
sev: Add Error ** to sev_kvm_init()
This allows failures to be reported richly and idiomatically.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Diffstat (limited to 'include/sysemu')
-rw-r--r-- | include/sysemu/sev.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sysemu/sev.h b/include/sysemu/sev.h index 3b5b1aacf1..5c5a13c6ca 100644 --- a/include/sysemu/sev.h +++ b/include/sysemu/sev.h @@ -16,7 +16,7 @@ #include "sysemu/kvm.h" -int sev_kvm_init(ConfidentialGuestSupport *cgs); +int sev_kvm_init(ConfidentialGuestSupport *cgs, Error **errp); int sev_encrypt_flash(uint8_t *ptr, uint64_t len, Error **errp); int sev_inject_launch_secret(const char *hdr, const char *secret, uint64_t gpa, Error **errp); |