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>
This commit is contained in:
John Snow 2022-01-10 18:28:58 -05:00
parent 9922125615
commit 0665410dcf

View 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")