Revision | 0665410dcf3d3fa8758545668998dd16d3abbaa9 (tree) |
---|---|
Time | 2022-01-22 06:01:31 |
Author | John Snow <jsnow@redh...> |
Commiter | John Snow |
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>
@@ -6,7 +6,7 @@ | ||
6 | 6 | # compatibility levels for each CPU model. |
7 | 7 | # |
8 | 8 | |
9 | -from qemu import qmp | |
9 | +from qemu.aqmp.legacy import QEMUMonitorProtocol | |
10 | 10 | import sys |
11 | 11 | |
12 | 12 | if len(sys.argv) != 2: |
@@ -66,7 +66,7 @@ levels = [ | ||
66 | 66 | |
67 | 67 | |
68 | 68 | sock = sys.argv[1] |
69 | -shell = qmp.QEMUMonitorProtocol(sock) | |
69 | +shell = QEMUMonitorProtocol(sock) | |
70 | 70 | shell.connect() |
71 | 71 | |
72 | 72 | models = shell.cmd("query-cpu-definitions") |