Huaqiang 1d0c3c3a62 cachetune schema: a looser check for the order of <cache> and <monitor> element
Originally, inside <cputune/cachetune>, it requires the <cache> element to
be in the position before <monitor>, and following configuration is not
permitted by schema, but it is better to let it be valid.

  <cputune>
    <cachetune vcpus='0-1'>
      <monitor level='3' vcpus='0-1'/>
            ^
            |__ Not permitted originally because it is in the place
                before <cache> element.

      <cache id='0' level='3' type='both' size='3' unit='MiB'/>
      <cache id='1' level='3' type='both' size='3' unit='MiB'/>
    </cachetune>
    ...
  </cputune>

And, let schema do more strict check by identifying following configuration to
be invalid, due to <cachetune> should contain at least one <cache> or <monitor>
element.

  <cputune>
    <cachetune vcpus='0-1'>
        ^
        |__ a <cachetune> SHOULD contain at least one <cache> or <monitor>

    </cachetune>
    ...
  </cputune>

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Huaqiang <huaqiang.wang@intel.com>
2019-12-13 15:31:26 +00:00
..
2016-11-21 13:15:12 +01:00
2019-11-05 12:12:14 +01:00
2019-06-20 17:01:44 +02:00
2019-08-29 12:46:33 +01:00
2017-10-16 10:22:34 +01:00
2018-05-03 12:40:37 +01:00
2019-04-09 16:59:49 +02:00
2019-09-03 15:37:54 -06:00
2019-08-28 13:39:26 +02:00
2018-12-17 17:52:46 +01:00
2018-12-17 17:52:46 +01:00
2019-12-04 15:48:28 +00:00
2017-08-02 15:00:28 -04:00
2019-07-09 10:42:39 -05:00
2019-12-06 15:55:30 +00:00