]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemu: capabilities: Parse 'cpu0Id' from capability cache XML
authorPeter Krempa <pkrempa@redhat.com>
Mon, 3 Mar 2025 17:17:46 +0000 (18:17 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 6 Mar 2025 12:04:25 +0000 (13:04 +0100)
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>
src/qemu/qemu_capabilities.c

index 23b466c36ef1e75199804cf26277956f5e8408a9..62a2002b4e11c66c36b6b733f8e2c8f7357a3aff 100644 (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