Skip to content

Commit 4412d71

Browse files
pbo-linarorth7680
authored andcommitted
tests/functional/test_aarch64_rme_virt: fix sporadic failure
This test was randomly failing on our CI, and on dev machines, especially with QEMU debug builds. >From the information collected, it's related to an implementation choice in edk2 QEMU virt support. The workaround is to disable KASLR, to avoid accessing protected memory. Note: this is *not* needed for the similar test_aarch64_rme_sbsaref. More information is available on the associated GitLab issue. Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2823 Signed-off-by: Pierrick Bouvier <[email protected]> Reviewed-by: Alex Bennée <[email protected]> Reviewed-by: Richard Henderson <[email protected]> Message-ID: <[email protected]> Signed-off-by: Philippe Mathieu-Daudé <[email protected]> Acked-by: Michael S. Tsirkin <[email protected]> Signed-off-by: Richard Henderson <[email protected]> Message-ID: <[email protected]>
1 parent e139bc4 commit 4412d71

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/functional/test_aarch64_rme_virt.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,9 @@ def test_aarch64_rme_virt(self):
8787
self.vm.add_args('-fsdev', f'local,security_model=none,path={rme_stack},id=shr0')
8888
self.vm.add_args('-device', 'virtio-net-pci,netdev=net0')
8989
self.vm.add_args('-netdev', 'user,id=net0')
90-
self.vm.add_args('-append', 'root=/dev/vda')
90+
# We need to add nokaslr to avoid triggering this sporadic bug:
91+
# https://gitlab.com/qemu-project/qemu/-/issues/2823
92+
self.vm.add_args('-append', 'root=/dev/vda nokaslr')
9193

9294
self.vm.launch()
9395
# Wait for host VM boot to complete.

0 commit comments

Comments
 (0)