[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 3/4] python/qemu/machine: add method to retrieve QEMUMachine::bina
From: |
Maksim Davydov |
Subject: |
[PULL 3/4] python/qemu/machine: add method to retrieve QEMUMachine::binary field |
Date: |
Mon, 4 Mar 2024 16:51:44 +0300 |
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>
---
python/qemu/machine/machine.py | 5 +++++
1 file changed, 5 insertions(+)
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 @@ def args(self) -> List[str]:
"""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:
--
2.34.1
- [PULL 0/4] machine development tool, Maksim Davydov, 2024/03/04
- [PULL 2/4] qmp: add dump machine type compatibility properties, Maksim Davydov, 2024/03/04
- [PULL 1/4] qom: add default value, Maksim Davydov, 2024/03/04
- [PULL 3/4] python/qemu/machine: add method to retrieve QEMUMachine::binary field,
Maksim Davydov <=
- [PULL 4/4] scripts: add script to compare compatibility properties, Maksim Davydov, 2024/03/04
- Re: [PULL 0/4] machine development tool, Peter Maydell, 2024/03/05
- Re: [PULL 0/4] machine development tool, Markus Armbruster, 2024/03/05
- Re: [PULL 0/4] machine development tool, Peter Xu, 2024/03/05
- Re: [PULL 0/4] machine development tool, Maksim Davydov, 2024/03/07
- Re: [PULL 0/4] machine development tool, Peter Xu, 2024/03/07
- Re: [PULL 0/4] machine development tool, Vladimir Sementsov-Ogievskiy, 2024/03/18
- Re: [PULL 0/4] machine development tool, Peter Xu, 2024/03/18
- Re: [PULL 0/4] machine development tool, Maksim Davydov, 2024/03/18