]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Do not format CPU features without a model
authorJán Tomko <jtomko@redhat.com>
Fri, 5 Dec 2014 11:32:18 +0000 (12:32 +0100)
committerJán Tomko <jtomko@redhat.com>
Thu, 11 Dec 2014 11:03:36 +0000 (12:03 +0100)
commitdd324bb2703b9cf619c521b2a04f186cd9734f0a
tree56f783b5f5ba64eb67a8e48618239a7f099de5e8
parent2764977314da9b7bac22f745b9d051533c2f954c
Do not format CPU features without a model

For host-passthrough CPU we don't honor the CPU
features specified in the XML, but we allow
outputting them via the UPDATE_CPU flag for dumpxml,
this gives user a rough idea of what features the CPU
might have.

After restoring a managedsave'd domain, the features
might end up in the live status XML (in /var/run) without
the model. This XML cannot be parsed by the daemon after
restart and the domain might disappear.

This fix skips formatting the features for HOST_PASSTHROUGH
when UPDATE_CPU is not specified, so the newly restored domains
and newly created snapshots won't be affected.

Note: this doesn't fix existing snapshots or already restored
running domains.

https://bugzilla.redhat.com/show_bug.cgi?id=1030793
https://bugzilla.redhat.com/show_bug.cgi?id=1151885
src/conf/cpu_conf.c