mirror of
https://github.com/libvirt/libvirt.git
synced 2026-08-13 06:34:42 -05:00
Expose resource control capabilities for caches
Add cache resource control into capabilities for CAT without CDP:
<cache>
<bank id='0' level='3' type='unified' size='15360' unit='KiB' cpus='0-5'>
<control min='768' unit='KiB' scope='both' max_allocation='4'/>
</bank>
</cache>
and with CDP:
<cache>
<bank id='0' level='3' type='unified' size='15360' unit='KiB' cpus='0-5'>
<control min='768' unit='KiB' scope='code' max_allocation='4'/>
<control min='768' unit='KiB' scope='data' max_allocation='4'/>
</bank>
</cache>
Also add new test cases for vircaps2xmltest.
Signed-off-by: Eli Qiao <liyong.qiao@intel.com>
This commit is contained in:
committed by
Martin Kletzander
parent
7b4e9b2c55
commit
0ab409ccc4
@@ -261,13 +261,7 @@
|
||||
<attribute name='level'>
|
||||
<ref name='unsignedInt'/>
|
||||
</attribute>
|
||||
<attribute name='type'>
|
||||
<choice>
|
||||
<value>both</value>
|
||||
<value>code</value>
|
||||
<value>data</value>
|
||||
</choice>
|
||||
</attribute>
|
||||
<ref name='cacheType'/>
|
||||
<attribute name='size'>
|
||||
<ref name='unsignedInt'/>
|
||||
</attribute>
|
||||
@@ -277,11 +271,35 @@
|
||||
<attribute name='cpus'>
|
||||
<ref name='cpuset'/>
|
||||
</attribute>
|
||||
<zeroOrMore>
|
||||
<element name='control'>
|
||||
<attribute name='min'>
|
||||
<ref name='unsignedInt'/>
|
||||
</attribute>
|
||||
<attribute name='unit'>
|
||||
<ref name='unit'/>
|
||||
</attribute>
|
||||
<ref name='cacheType'/>
|
||||
<attribute name='maxAllocs'>
|
||||
<ref name='unsignedInt'/>
|
||||
</attribute>
|
||||
</element>
|
||||
</zeroOrMore>
|
||||
</element>
|
||||
</oneOrMore>
|
||||
</element>
|
||||
</define>
|
||||
|
||||
<define name='cacheType'>
|
||||
<attribute name='type'>
|
||||
<choice>
|
||||
<value>both</value>
|
||||
<value>code</value>
|
||||
<value>data</value>
|
||||
</choice>
|
||||
</attribute>
|
||||
</define>
|
||||
|
||||
<define name='guestcaps'>
|
||||
<element name='guest'>
|
||||
<ref name='ostype'/>
|
||||
|
||||
Reference in New Issue
Block a user