]> git.ipfire.org Git - thirdparty/libvirt.git/commit
cpu: Fail when CPU type cannot be detected from XML
authorJiri Denemark <jdenemar@redhat.com>
Mon, 12 Jul 2010 14:08:00 +0000 (16:08 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Mon, 12 Jul 2010 17:45:22 +0000 (19:45 +0200)
commit517aba9fac9040c8c6b25112c9104d2e0f4c5e25
tree61743dde258fe82e4ca046bf560c06ca99ccb0be
parentac3daf0899cced61faeeed3c6e14806d9e846174
cpu: Fail when CPU type cannot be detected from XML

When autodetecting whether XML describes guest or host CPU, the presence
of <arch> element is checked. If it's present, we treat the XML as host
CPU definition. Which is right, since guest CPU definitions do not
contain <arch> element. However, if at the same time the root <cpu>
element contains `match' attribute, we would silently ignore it and
still treat the XML as host CPU. We should rather refuse such invalid
XML.
src/conf/cpu_conf.c