Lines Matching +full:s390 +full:- +full:ccw

3 # Functional test that boots an s390x Linux guest with ccw and PCI devices
12 # later. See the COPYING file in the top-level directory.
29 '20201126T092837Z/dists/buster/main/installer-s390x/'
34 '20201126T092837Z/dists/buster/main/installer-s390x/'
40 '/fedora-secondary/releases/31/Server/s390x/os'
45 '/fedora-secondary/releases/31/Server/s390x/os'
51 failure_message='Kernel panic - not syncing',
56 'while ! (dmesg -c | grep CRW) ; do sleep 1 ; done',
61 exec_command_and_wait_for_pattern(self, 'dmesg -c > /dev/null; '
67 self.set_machine('s390-ccw-virtio')
75 self.vm.add_args('-nographic',
76 '-kernel', kernel_path,
77 '-initrd', initrd_path,
78 '-append', kernel_command_line,
79 '-cpu', 'max,prno-trng=off',
80 '-device', 'virtio-net-ccw,devno=fe.1.1111',
81 '-device',
82 'virtio-rng-ccw,devno=fe.2.0000,max_revision=0,id=rn1',
83 '-device',
84 'virtio-rng-ccw,devno=fe.3.1234,max_revision=2,id=rn2',
85 '-device', 'zpci,uid=5,target=zzz',
86 '-device', 'virtio-net-pci,id=zzz',
87 '-device', 'zpci,uid=0xa,fid=12,target=serial',
88 '-device', 'virtio-serial-pci,id=serial',
89 '-device', 'virtio-balloon-ccw')
99 exec_command_and_wait_for_pattern(self, 'ls /sys/bus/ccw/devices/',
104 # device at 0.3.1234 has the virtio-1 feature bit set
110 'cat /sys/bus/ccw/devices/0.2.0000/virtio?/features',
113 'cat /sys/bus/ccw/devices/0.3.1234/virtio?/features',
115 # check that /dev/hwrng works - and that it's gone after ejecting
128 # verify that we indeed have virtio-net devices (without having the
129 # virtio-net driver handy)
131 'cat /sys/bus/ccw/devices/0.1.1111/cutype',
145 self.vm.cmd('device_add', driver='virtio-net-ccw',
149 'if [ -e /sys/bus/ccw/devices/*4711 ]; then break; fi ;'
150 'sleep 1 ; done ; ls /sys/bus/ccw/devices/',
159 'ls /sys/bus/ccw/devices/0.0.4711',
161 # test the virtio-balloon device
162 exec_command_and_wait_for_pattern(self, 'head -n 1 /proc/meminfo',
164 self.vm.cmd('human-monitor-command', command_line='balloon 96')
165 exec_command_and_wait_for_pattern(self, 'head -n 1 /proc/meminfo',
167 self.vm.cmd('human-monitor-command', command_line='balloon 128')
168 exec_command_and_wait_for_pattern(self, 'head -n 1 /proc/meminfo',
173 self.set_machine('s390-ccw-virtio')
182 self.vm.add_args('-nographic',
183 '-smp', '4',
184 '-m', '512',
185 '-name', 'Some Guest Name',
186 '-uuid', '30de4fd9-b4d5-409e-86a5-09b387f70bfa',
187 '-kernel', kernel_path,
188 '-initrd', initrd_path,
189 '-append', kernel_command_line,
190 '-device', 'zpci,uid=7,target=n',
191 '-device', 'virtio-net-pci,id=n,mac=02:ca:fe:fa:ce:12',
192 '-device', 'virtio-rng-ccw,devno=fe.1.9876',
193 '-device', 'virtio-gpu-ccw,devno=fe.2.5432')
218 '30de4fd9-b4d5-409e-86a5-09b387f70bfa')
221 # QEMU's PPM screendumps contain uncompressed 24-bit values, while the
222 # framebuffer uses 32-bit, so we pad our text with some spaces when
228 self.log.info("Test screendump of virtio-gpu device")
233 r'echo -e "\e[?25l" > /dev/tty0', ':/#')
242 prefix='qemu-scrdump-') as ppmfile:
254 self.log.info("Skipped flaky screendump of virtio-gpu device test")
256 # Hot-plug a virtio-crypto device and see whether it gets accepted
257 self.log.info("Test hot-plug virtio-crypto device")
259 self.vm.cmd('object-add', qom_type='cryptodev-backend-builtin',
261 self.vm.cmd('device_add', driver='virtio-crypto-ccw', id='crypdev0',
264 'while ! (dmesg -c | grep Accelerator.device) ; do'
268 self.vm.cmd('object-del', id='cbe0')
270 'while ! (dmesg -c | grep Start.virtcrypto_remove) ; do'