aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Snow <jsnow@redhat.com>2022-01-10 18:28:58 -0500
committerJohn Snow <jsnow@redhat.com>2022-01-21 16:01:31 -0500
commit0665410dcf3d3fa8758545668998dd16d3abbaa9 (patch)
tree23ecfd2c6116e7ae920ee4fec8c7b531283c7328
parent99221256151845f5eb4cedac750b08e7ab14d92d (diff)
downloadqemu-0665410dcf3d3fa8758545668998dd16d3abbaa9.zip
qemu-0665410dcf3d3fa8758545668998dd16d3abbaa9.tar.gz
qemu-0665410dcf3d3fa8758545668998dd16d3abbaa9.tar.bz2
scripts/cpu-x86-uarch-abi: switch to AQMP
Signed-off-by: John Snow <jsnow@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> Reviewed-by: Beraldo Leal <bleal@redhat.com>
-rw-r--r--scripts/cpu-x86-uarch-abi.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/cpu-x86-uarch-abi.py b/scripts/cpu-x86-uarch-abi.py
index 8963d90..c262d2f 100644
--- a/scripts/cpu-x86-uarch-abi.py
+++ b/scripts/cpu-x86-uarch-abi.py
@@ -6,7 +6,7 @@
# compatibility levels for each CPU model.
#
-from qemu import qmp
+from qemu.aqmp.legacy import QEMUMonitorProtocol
import sys
if len(sys.argv) != 2:
@@ -66,7 +66,7 @@ levels = [
sock = sys.argv[1]
-shell = qmp.QEMUMonitorProtocol(sock)
+shell = QEMUMonitorProtocol(sock)
shell.connect()
models = shell.cmd("query-cpu-definitions")