From: John Ferlan Date: Sat, 19 May 2018 11:02:47 +0000 (-0400) Subject: schema: Fix capability grammar for pagesElem X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=c1a0601debfe2c84160234cf6269606f4198faa0;p=libvirt.git schema: Fix capability grammar for pagesElem https://bugzilla.redhat.com/show_bug.cgi?id=1572491 Commit id '02129b7c0' added a single pagesElem for slightly different purposes. One usage was an output for host page size listing and the other for NUMA supported page sizes. For the former, only the pages unit and size are formatted, while for the latter the pages unit, size, and availability data is formatted. The virt-xml-validate would fail because it expected something extra in the host page size output. So split up pagesElem a bit and create pagesHost and pagesNuma for the differences. Modify some capabilityschemadata output to have the output - even though the results may not be realistic with respect to the original incarnation of the data. Signed-off-by: John Ferlan ACKed-by Michal Privoznik --- diff --git a/docs/schemas/capability.rng b/docs/schemas/capability.rng index e1b7858540..66c5de62e5 100644 --- a/docs/schemas/capability.rng +++ b/docs/schemas/capability.rng @@ -129,7 +129,7 @@ - + @@ -203,7 +203,7 @@ - + @@ -484,17 +484,25 @@ - + - - - - - - - - + + + + + + + + + + + + + + + + diff --git a/tests/capabilityschemadata/caps-test2.xml b/tests/capabilityschemadata/caps-test2.xml index 652fc71e0b..125a322998 100644 --- a/tests/capabilityschemadata/caps-test2.xml +++ b/tests/capabilityschemadata/caps-test2.xml @@ -24,6 +24,9 @@ + + + diff --git a/tests/capabilityschemadata/caps-test3.xml b/tests/capabilityschemadata/caps-test3.xml index 479db30612..8294f44425 100644 --- a/tests/capabilityschemadata/caps-test3.xml +++ b/tests/capabilityschemadata/caps-test3.xml @@ -28,6 +28,9 @@ + + + @@ -42,6 +45,9 @@ 12572412 + 4011249 + 0 + 0