mirror of
https://github.com/libvirt/libvirt.git
synced 2026-08-12 06:04:46 -05:00
Report more correct information for cache control
On some platforms the number of bits in the cbm_mask might not be divisible by 4 (and not even by 2), so we need to properly count the bits. Similar file, min_cbm_bits, is properly parsed and used, but if the number is greater than one, we lose the information about granularity when reporting the data in capabilities. For that matter always report granularity, but if it is not the same as the minimum, add that information in there as well. Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
@@ -0,0 +1 @@
|
||||
7ff
|
||||
@@ -0,0 +1 @@
|
||||
1
|
||||
@@ -0,0 +1 @@
|
||||
16
|
||||
@@ -0,0 +1 @@
|
||||
L3:0=7ff;1=7ff
|
||||
@@ -0,0 +1 @@
|
||||
0
|
||||
@@ -0,0 +1 @@
|
||||
3
|
||||
+1
@@ -0,0 +1 @@
|
||||
0
|
||||
+1
@@ -0,0 +1 @@
|
||||
001
|
||||
@@ -0,0 +1 @@
|
||||
33M
|
||||
@@ -0,0 +1 @@
|
||||
Unified
|
||||
@@ -0,0 +1 @@
|
||||
1
|
||||
@@ -0,0 +1 @@
|
||||
0
|
||||
@@ -0,0 +1 @@
|
||||
001
|
||||
@@ -0,0 +1 @@
|
||||
0
|
||||
@@ -0,0 +1 @@
|
||||
0
|
||||
@@ -0,0 +1 @@
|
||||
001
|
||||
@@ -0,0 +1 @@
|
||||
0
|
||||
@@ -0,0 +1 @@
|
||||
0
|
||||
@@ -0,0 +1 @@
|
||||
0
|
||||
@@ -0,0 +1 @@
|
||||
../../cpu/cpu0
|
||||
@@ -0,0 +1 @@
|
||||
0
|
||||
@@ -0,0 +1 @@
|
||||
001
|
||||
@@ -0,0 +1 @@
|
||||
10
|
||||
@@ -0,0 +1 @@
|
||||
0
|
||||
@@ -42,12 +42,12 @@
|
||||
</topology>
|
||||
<cache>
|
||||
<bank id='0' level='3' type='both' size='15360' unit='KiB' cpus='0-5'>
|
||||
<control min='768' unit='KiB' type='code' maxAllocs='8'/>
|
||||
<control min='768' unit='KiB' type='data' maxAllocs='8'/>
|
||||
<control granularity='768' unit='KiB' type='code' maxAllocs='8'/>
|
||||
<control granularity='768' unit='KiB' type='data' maxAllocs='8'/>
|
||||
</bank>
|
||||
<bank id='1' level='3' type='both' size='15360' unit='KiB' cpus='6-11'>
|
||||
<control min='768' unit='KiB' type='code' maxAllocs='8'/>
|
||||
<control min='768' unit='KiB' type='data' maxAllocs='8'/>
|
||||
<control granularity='768' unit='KiB' type='code' maxAllocs='8'/>
|
||||
<control granularity='768' unit='KiB' type='data' maxAllocs='8'/>
|
||||
</bank>
|
||||
</cache>
|
||||
</host>
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
<capabilities>
|
||||
|
||||
<host>
|
||||
<cpu>
|
||||
<arch>x86_64</arch>
|
||||
</cpu>
|
||||
<power_management/>
|
||||
<migration_features>
|
||||
<live/>
|
||||
</migration_features>
|
||||
<topology>
|
||||
<cells num='1'>
|
||||
<cell id='0'>
|
||||
<memory unit='KiB'>1048576</memory>
|
||||
<pages unit='KiB' size='4'>2048</pages>
|
||||
<pages unit='KiB' size='2048'>4096</pages>
|
||||
<pages unit='KiB' size='1048576'>6144</pages>
|
||||
<cpus num='1'>
|
||||
<cpu id='0' socket_id='0' core_id='0' siblings='0'/>
|
||||
</cpus>
|
||||
</cell>
|
||||
</cells>
|
||||
</topology>
|
||||
<cache>
|
||||
<bank id='0' level='3' type='both' size='33792' unit='KiB' cpus='0'>
|
||||
<control granularity='3072' unit='KiB' type='both' maxAllocs='16'/>
|
||||
</bank>
|
||||
</cache>
|
||||
</host>
|
||||
|
||||
</capabilities>
|
||||
@@ -42,10 +42,10 @@
|
||||
</topology>
|
||||
<cache>
|
||||
<bank id='0' level='3' type='both' size='15360' unit='KiB' cpus='0-5'>
|
||||
<control min='1536' unit='KiB' type='both' maxAllocs='4'/>
|
||||
<control granularity='768' min='1536' unit='KiB' type='both' maxAllocs='4'/>
|
||||
</bank>
|
||||
<bank id='1' level='3' type='both' size='15360' unit='KiB' cpus='6-11'>
|
||||
<control min='1536' unit='KiB' type='both' maxAllocs='4'/>
|
||||
<control granularity='768' min='1536' unit='KiB' type='both' maxAllocs='4'/>
|
||||
</bank>
|
||||
</cache>
|
||||
</host>
|
||||
|
||||
Reference in New Issue
Block a user