]> git.ipfire.org Git - thirdparty/libvirt.git/commit
schema: Allow counter element in host cpu definition
authorTim Wiederhake <twiederh@redhat.com>
Tue, 15 Dec 2020 12:16:48 +0000 (13:16 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 18 Dec 2020 16:50:49 +0000 (17:50 +0100)
commit37ffe24968e52819a2a057fb07a8445146fa5ee8
tree4054330056b1335e1e7fe6d661f5d1d625676687
parent07cc8b007f80e3e0241014359df9238424224dd8
schema: Allow counter element in host cpu definition

If the capabilities include a counter element, e.g.
  <counter name='tsc' frequency='2591999000' scaling='no'/>
the XML could not be validated:
  $ virsh capabilities > cap.xml
  $ virsh [hypervisor-]cpu-compare cap.xml --validate
  error: Failed to compare hypervisor CPU with cap.txt
  error: XML document failed to validate against schema: Unable to validate doc against /usr/share/libvirt/schemas/cpu.rng
  Did not expect element counter there

Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
docs/schemas/cputypes.rng