1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-03-20 06:50:22 +03:00

qemu: capabilities: Parse 'cpu0Id' from capability cache XML

The 'cpu0Id' field is formatted into the caps cache XML but not parsed
back; thus restart of the daemon will make it vanish.

Fixes: 0236e6154c46603bc443eda2f05c8ce511c55b08
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
Peter Krempa 2025-03-03 18:17:46 +01:00
parent 25270737d3
commit 107cf9992f

View File

@ -4438,6 +4438,7 @@ virQEMUCapsParseSEVInfo(virQEMUCaps *qemuCaps, xmlXPathContextPtr ctxt)
return -1;
}
sev->cpu0_id = virXPathString("string(./sev/cpu0Id)", ctxt);
/* We probe this every time because the values
* can change on every reboot via firmware