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:
parent
9922125615
commit
0665410dcf
@ -6,7 +6,7 @@
|
|||||||
# compatibility levels for each CPU model.
|
# compatibility levels for each CPU model.
|
||||||
#
|
#
|
||||||
|
|
||||||
from qemu import qmp
|
from qemu.aqmp.legacy import QEMUMonitorProtocol
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
if len(sys.argv) != 2:
|
if len(sys.argv) != 2:
|
||||||
@ -66,7 +66,7 @@ levels = [
|
|||||||
|
|
||||||
|
|
||||||
sock = sys.argv[1]
|
sock = sys.argv[1]
|
||||||
shell = qmp.QEMUMonitorProtocol(sock)
|
shell = QEMUMonitorProtocol(sock)
|
||||||
shell.connect()
|
shell.connect()
|
||||||
|
|
||||||
models = shell.cmd("query-cpu-definitions")
|
models = shell.cmd("query-cpu-definitions")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user