You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.8 KiB
49 lines
1.8 KiB
From b672cdf8c10a530b5bcf6dd4489632891eb2c731 Mon Sep 17 00:00:00 2001
|
|
From: Michal Privoznik <mprivozn@redhat.com>
|
|
Date: Mon, 24 Jun 2024 10:52:48 +0200
|
|
Subject: [PATCH 088/100] i386/sev: Fix error message in sev_get_capabilities()
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
RH-Author: Paolo Bonzini <pbonzini@redhat.com>
|
|
RH-MergeRequest: 245: SEV-SNP support
|
|
RH-Jira: RHEL-39544
|
|
RH-Acked-by: Thomas Huth <thuth@redhat.com>
|
|
RH-Acked-by: Bandan Das <bdas@redhat.com>
|
|
RH-Acked-by: Vitaly Kuznetsov <vkuznets@redhat.com>
|
|
RH-Commit: [88/91] ff8a8b27af02e565172ffe39d0571c234317713d (bonzini/rhel-qemu-kvm)
|
|
|
|
When a custom path is provided to sev-guest object and opening
|
|
the path fails an error message is reported. But the error
|
|
message still mentions DEFAULT_SEV_DEVICE ("/dev/sev") instead of
|
|
the custom path.
|
|
|
|
Fixes: 16dcf200dc951c1cde3e5b442457db5f690b8cf0
|
|
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
|
|
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
|
|
Link: https://lore.kernel.org/r/b4648905d399780063dc70851d3d6a3cd28719a5.1719218926.git.mprivozn@redhat.com
|
|
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
|
|
(cherry picked from commit e306ae87e0ef04bc7a5dec6db693f6ea09d64d45)
|
|
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
|
|
---
|
|
target/i386/sev.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/target/i386/sev.c b/target/i386/sev.c
|
|
index 37de80adc7..53b7f7315b 100644
|
|
--- a/target/i386/sev.c
|
|
+++ b/target/i386/sev.c
|
|
@@ -595,7 +595,7 @@ static SevCapability *sev_get_capabilities(Error **errp)
|
|
fd = open(sev_device, O_RDWR);
|
|
if (fd < 0) {
|
|
error_setg_errno(errp, errno, "SEV: Failed to open %s",
|
|
- DEFAULT_SEV_DEVICE);
|
|
+ sev_device);
|
|
g_free(sev_device);
|
|
return NULL;
|
|
}
|
|
--
|
|
2.39.3
|
|
|