Skip to contentSkip to conversation

tests/functional: Require TCG to run reverse debugging tests

PATCH Applied Philippe Mathieu-Daudé 3 participants 4 messages Jan 15

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests/functional: Require TCG to run reverse debugging tests

Record/replay is specific to TCG. Require it to avoid failure when using a HVF-only build on Darwin:

qemu-system-aarch64: -icount shift=7,rr=record,rrfile=/scratch/replay.bin,rrsnapshot=init: cannot configure icount, TCG support not available

---
 tests/functional/reverse_debugging.py | 2 ++
 1 file changed, 2 insertions(+)
tests/functional/reverse_debugging.py +2 -0
index 8b9507674a0..8e6f0b0e923 100644
@@ -67,6 +67,8 @@ def vm_get_icount(vm):
     def reverse_debugging(self, gdb_arch, shift=7, args=None, big_endian=False):
         from qemu_test import GDB
 
+        self.require_accelerator("tcg")
+
         # create qcow2 for snapshots
         self.log.info('creating qcow2 image for VM snapshots')
         image_path = os.path.join(self.workdir, 'disk.qcow2')
Signature · 1 line
2.52.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 9 lines · Philippe Mathieu-Daudé

Record/replay is specific to TCG. Require it to avoid failure when using a HVF-only build on Darwin:

qemu-system-aarch64: -icount shift=7,rr=record,rrfile=/scratch/replay.bin,rrsnapshot=init: cannot configure icount, TCG support not available

---
 tests/functional/reverse_debugging.py | 2 ++
 1 file changed, 2 insertions(+)

With regards,
Daniel

Signature · 3 lines
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|
Reviewed-by on v1 1/1
#2 lore raw
In reply to Philippe Mathieu-Daudé
Quoted 6 lines · Philippe Mathieu-Daudé

Record/replay is specific to TCG. Require it to avoid failure when using a HVF-only build on Darwin:

qemu-system-aarch64: -icount shift=7,rr=record,rrfile=/scratch/replay.bin,rrsnapshot=init: cannot configure icount, TCG support not available

Signature · 2 lines
Alex Bennée
Virtualisation Tech Lead @ Linaro
#3 lore raw
In reply to Philippe Mathieu-Daudé
Quoted 9 lines · Philippe Mathieu-Daudé

Record/replay is specific to TCG. Require it to avoid failure when using a HVF-only build on Darwin:

qemu-system-aarch64: -icount shift=7,rr=record,rrfile=/scratch/replay.bin,rrsnapshot=init: cannot configure icount, TCG support not available

---
  tests/functional/reverse_debugging.py | 2 ++
  1 file changed, 2 insertions(+)

Queued via accel-next tree, thanks.