]> xenbits.xensource.com Git - libvirt.git/commit
Fix <cpu> element in domain XML schema
authorJiri Denemark <jdenemar@redhat.com>
Tue, 9 Feb 2010 14:53:03 +0000 (15:53 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Thu, 11 Feb 2010 15:46:20 +0000 (16:46 +0100)
commit2073ed6f2064fc65a7f58256268eb70ec21cdcf3
tree57ba4563784a3787d821f88dd1bcd42900080e10
parent6daa19da9a3fc7281b70858e32fecf0ae868ab93
Fix <cpu> element in domain XML schema

The current schema is more permissive than the XML parsing code in
libvirt. Precisely, 'match' attribute is optional in schema while in
reality its use is bound to <model> element:

- <cpu> element without 'match' attribute is allowed only if <topology>
  element is the only child element of <cpu>

- <cpu> element with 'match' attribute requires <model> element to be
  present; <topology> and <feature> elements are optional

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
docs/schemas/domain.rng