diff options
| author | Pankaj Gupta <pankaj.gupta@amd.com> | 2024-05-30 06:16:13 -0500 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2024-06-05 11:01:06 +0200 |
| commit | 18c453409a3a84cf7b2c764c5a03fb429a73bbeb (patch) | |
| tree | b5524df8914b683fe1d753d2a5283a6248a9a8f2 | |
| parent | dc0d28ca46c0e7ee3c055ad4da24022995bd3765 (diff) | |
| download | focaccia-qemu-18c453409a3a84cf7b2c764c5a03fb429a73bbeb.tar.gz focaccia-qemu-18c453409a3a84cf7b2c764c5a03fb429a73bbeb.zip | |
i386/sev: Replace error_report with error_setg
Signed-off-by: Pankaj Gupta <pankaj.gupta@amd.com> Message-ID: <20240530111643.1091816-2-pankaj.gupta@amd.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
| -rw-r--r-- | target/i386/sev.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/target/i386/sev.c b/target/i386/sev.c index d30b68c11e..67ed32e5ea 100644 --- a/target/i386/sev.c +++ b/target/i386/sev.c @@ -952,13 +952,13 @@ static int sev_kvm_init(ConfidentialGuestSupport *cgs, Error **errp) if (sev_es_enabled()) { if (!kvm_kernel_irqchip_allowed()) { - error_report("%s: SEV-ES guests require in-kernel irqchip support", - __func__); + error_setg(errp, "%s: SEV-ES guests require in-kernel irqchip" + "support", __func__); goto err; } if (!(status.flags & SEV_STATUS_FLAGS_CONFIG_ES)) { - error_report("%s: guest policy requires SEV-ES, but " + error_setg(errp, "%s: guest policy requires SEV-ES, but " "host SEV-ES support unavailable", __func__); goto err; |