]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
scripts/cpu-x86-uarch-abi: switch to AQMP
authorJohn Snow <jsnow@redhat.com>
Mon, 10 Jan 2022 23:28:58 +0000 (18:28 -0500)
committerJohn Snow <jsnow@redhat.com>
Fri, 21 Jan 2022 21:01:31 +0000 (16:01 -0500)
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>
scripts/cpu-x86-uarch-abi.py

index 8963d90f0bb8c5d7c92e7749113323525f14a4e5..c262d2f02778480a05fe19ef546d05fd05e07b81 100644 (file)
@@ -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")