i386/sev: Fix error message in sev_get_capabilities()
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 24 Jun 2024 08:52:48 +0000 (10:52 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 3 Jul 2024 16:41:26 +0000 (18:41 +0200)
commitab5f4edf721fc0403d40a4db7e96808175157def
tree48b080c35e4a21f1436f99ac68503601a49c03c2
parent29a51b2bb55c6b2e0224d82c154d82498ccece35
i386/sev: Fix error message in sev_get_capabilities()

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>
target/i386/sev.c