migrate.py: enable kvm

I LOVE KVM
(or Make the guest run faster)

Signed-off-by: Uri Lublin <uril@redhat.com>
This commit is contained in:
Uri Lublin 2020-01-01 15:03:21 +02:00
parent 77ae94a214
commit 5d82ed42d0

View File

@ -96,8 +96,9 @@ def start_qemu(qemu_exec, image, spice_port, qmp_filename, incoming_port=None, w
"-spice", "disable-ticketing,port=%s" % spice_port]
+ incoming_args + extra_args)
if os.path.exists(image):
args += ["-m", "512", "-drive",
args += ["-m", "512", "-enable-kvm", "-drive",
"file=%s,index=0,media=disk,cache=unsafe" % image, "-snapshot"]
proc = Popen(args, executable=qemu_exec, stdin=PIPE, stdout=PIPE)
while not os.path.exists(qmp_filename):
time.sleep(0.1)