[libvirt] [PATCH 4/4] qemu: caps: Format SEV platform data into qemuCaps cache

Peter Krempa pkrempa at redhat.com
Wed Aug 15 16:23:28 UTC 2018


On Wed, Aug 15, 2018 at 17:02:08 +0200, Erik Skultety wrote:
> Since we're not saving the platform-specific data into a cache, we're
> not going to populate the structure, which in turn will cause a crash
> upon calling virNodeGetSEVInfo because of a NULL pointer dereference.
> Ultimately, we should start caching this data along with host-specific
> capabilities like NUMA and SELinux stuff into a separate cache, but for
> the time being, this is a semi-proper fix for a potential crash.
> 
> Backtrace (requires libvirtd restart to load qemu caps from cache):
> 
> https://bugzilla.redhat.com/show_bug.cgi?id=1612009
> Signed-off-by: Erik Skultety <eskultet at redhat.com>
> ---
>  src/qemu/qemu_capabilities.c                      | 100 ++++++++++++++++++++++
>  tests/domaincapsschemadata/qemu_2.12.0.x86_64.xml |   5 +-
>  tests/qemucapabilitiesdata/caps_2.12.0.x86_64.xml |   6 ++
>  3 files changed, 110 insertions(+), 1 deletion(-)

ACK. I could not find any place where the data would be used by any code
which would get it from the local copy from the @vm object, since that
is not serialized in the domain status XML.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20180815/1a3c8f28/attachment-0001.sig>


More information about the libvir-list mailing list