summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorMaksim Davydov <davydov-max@yandex-team.ru>2024-03-19 00:35:49 +0300
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2024-04-25 10:12:43 +0200
commit33956e476802a6ae9b9a8e047f6a78e09e9ae180 (patch)
treee86b143959f27cd583d50dd67eb285a7ff2c9b8f
parent236e9397b320518372a67c55777193c032b93d89 (diff)
downloadfocaccia-qemu-33956e476802a6ae9b9a8e047f6a78e09e9ae180.tar.gz
focaccia-qemu-33956e476802a6ae9b9a8e047f6a78e09e9ae180.zip
python/qemu/machine: add method to retrieve QEMUMachine::binary field
Add a supportive property to access the path to the QEMU binary

Signed-off-by: Maksim Davydov <davydov-max@yandex-team.ru>
Reviewed-by: John Snow <jsnow@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20240318213550.155573-4-davydov-max@yandex-team.ru>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
-rw-r--r--python/qemu/machine/machine.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/python/qemu/machine/machine.py b/python/qemu/machine/machine.py
index 31cb9d617d..f648f6af45 100644
--- a/python/qemu/machine/machine.py
+++ b/python/qemu/machine/machine.py
@@ -328,6 +328,11 @@ class QEMUMachine:
         """Returns the list of arguments given to the QEMU binary."""
         return self._args
 
+    @property
+    def binary(self) -> str:
+        """Returns path to the QEMU binary"""
+        return self._binary
+
     def _pre_launch(self) -> None:
         if self._qmp_set:
             if self._monitor_address is None: