Lines Matching +full:functional +full:- +full:system +full:- +full:fedora
3 # Functional test that boots a Linux kernel and checks the console
11 # later. See the COPYING file in the top-level directory.
28 See: docs/system/s390x/cpu-topology.rst.
31 - implicitly from the '-smp' argument by completing each topology
34 - explicitly from the '-device' argument on the QEMU command line
35 - explicitly by hotplug of a new CPU using QMP or HMP
36 - it is modified by using QMP 'set-cpu-topology'
51 '/fedora-secondary/releases/35/Server/s390x/os'
57 '/fedora-secondary/releases/35/Server/s390x/os'
63 failure_message='Kernel panic - not syncing',
67 res = self.vm.qmp('query-cpus-fast')
70 core = cpu['props']['core-id']
71 socket = cpu['props']['socket-id']
72 book = cpu['props']['book-id']
73 drawer = cpu['props']['drawer-id']
93 initrd_path = os.path.join(self.workdir, 'initrd-raw.img')
98 self.vm.add_args('-nographic',
99 '-enable-kvm',
100 '-cpu', 'max,ctop=on',
101 '-m', '512',
102 '-kernel', kernel_path,
103 '-initrd', initrd_path,
104 '-append', kernel_command_line)
107 self.log.info("System init")
109 """ mount proc -t proc /proc;
110 mount sys -t sysfs /sys;
111 cat /sys/devices/system/cpu/dispatching """,
118 self.set_machine('s390-ccw-virtio')
128 self.set_machine('s390-ccw-virtio')
130 self.vm.add_args('-smp',
153 self.set_machine('s390-ccw-virtio')
155 self.vm.add_args('-smp',
161 res = self.vm.qmp('set-cpu-topology',
162 {'core-id': 0, 'socket-id': 2, 'entitlement': 'low'})
168 This test verifies that a CPU defined with the '-device'
171 self.set_machine('s390-ccw-virtio')
173 self.vm.add_args('-smp',
175 self.vm.add_args('-device', 'max-s390x-cpu,core-id=10')
176 self.vm.add_args('-device',
177 'max-s390x-cpu,'
178 'core-id=1,socket-id=0,book-id=1,drawer-id=1,entitlement=low')
179 self.vm.add_args('-device',
180 'max-s390x-cpu,'
181 'core-id=2,socket-id=0,book-id=1,drawer-id=1,entitlement=medium')
182 self.vm.add_args('-device',
183 'max-s390x-cpu,'
184 'core-id=3,socket-id=1,book-id=1,drawer-id=1,entitlement=high')
185 self.vm.add_args('-device',
186 'max-s390x-cpu,'
187 'core-id=4,socket-id=1,book-id=1,drawer-id=1')
188 self.vm.add_args('-device',
189 'max-s390x-cpu,'
190 'core-id=5,socket-id=2,book-id=1,drawer-id=1,dedicated=true')
205 f'echo {dispatching} > /sys/devices/system/cpu/dispatching')
208 'cat /sys/devices/system/cpu/dispatching', dispatching)
216 self.set_machine('s390-ccw-virtio')
222 res = self.vm.qmp('query-s390x-cpu-polarization')
227 res = self.vm.qmp('query-s390x-cpu-polarization')
232 res = self.vm.qmp('query-s390x-cpu-polarization')
241 "timeout 1 sh -c 'while true",
243 ' syspath="/sys/devices/system/cpu/cpu0/polarization"',
260 self.set_machine('s390-ccw-virtio')
274 res = self.vm.qmp('set-cpu-topology',
275 {'core-id': 0, 'entitlement': 'low'})
280 res = self.vm.qmp('set-cpu-topology',
281 {'core-id': 0, 'entitlement': 'medium'})
286 res = self.vm.qmp('set-cpu-topology',
287 {'core-id': 0, 'entitlement': 'high'})
304 self.set_machine('s390-ccw-virtio')
313 res = self.vm.qmp('set-cpu-topology',
314 {'core-id': 0, 'dedicated': True})
331 The socket-id 0 on book-id 0 already contains CPUs 0 and 1 and can
332 not accept any new CPU while socket-id 0 on book-id 1 is free.
334 self.set_machine('s390-ccw-virtio')
336 self.vm.add_args('-smp',
343 res = self.vm.qmp('set-cpu-topology',
344 {'core-id': 2, 'socket-id': 0, 'book-id': 0})
347 res = self.vm.qmp('set-cpu-topology',
348 {'core-id': 2, 'socket-id': 0, 'book-id': 1})
356 self.set_machine('s390-ccw-virtio')
363 res = self.vm.qmp('set-cpu-topology',
364 {'core-id': 0, 'dedicated': True})
373 res = self.vm.qmp('set-cpu-topology',
374 {'core-id': 0, 'entitlement': 'low', 'dedicated': True})
377 res = self.vm.qmp('set-cpu-topology',
378 {'core-id': 0, 'entitlement': 'low'})
381 res = self.vm.qmp('set-cpu-topology',
382 {'core-id': 0, 'entitlement': 'medium', 'dedicated': True})
385 res = self.vm.qmp('set-cpu-topology',
386 {'core-id': 0, 'entitlement': 'medium'})
389 res = self.vm.qmp('set-cpu-topology',
390 {'core-id': 0, 'entitlement': 'low', 'dedicated': False})
393 res = self.vm.qmp('set-cpu-topology',
394 {'core-id': 0, 'entitlement': 'medium', 'dedicated': False})
402 self.set_machine('s390-ccw-virtio')
409 res = self.vm.qmp('set-cpu-topology', {'core-id': 0, 'drawer-id': 1})
412 res = self.vm.qmp('set-cpu-topology', {'core-id': 0, 'book-id': 1})
415 res = self.vm.qmp('set-cpu-topology', {'core-id': 0, 'socket-id': 1})