[PATCH 1/8] qemu: capabilities: Parse 'cpu0Id' from capability cache XML

Peter Krempa posted 8 patches 1 week, 1 day ago
[PATCH 1/8] qemu: capabilities: Parse 'cpu0Id' from capability cache XML
Posted by Peter Krempa 1 week, 1 day ago
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>
---
 src/qemu/qemu_capabilities.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c
index 23b466c36e..62a2002b4e 100644
--- a/src/qemu/qemu_capabilities.c
+++ b/src/qemu/qemu_capabilities.c
@@ -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
-- 
2.48.1