Revision 7589346f lib/hypervisor/hv_kvm.py
b/lib/hypervisor/hv_kvm.py | ||
---|---|---|
537 | 537 |
constants.HV_CPU_SOCKETS: hv_base.OPT_NONNEGATIVE_INT_CHECK, |
538 | 538 |
constants.HV_SOUNDHW: hv_base.NO_CHECK, |
539 | 539 |
constants.HV_USB_DEVICES: hv_base.NO_CHECK, |
540 |
constants.HV_VGA: hv_base.NO_CHECK, |
|
540 | 541 |
constants.HV_KVM_EXTRA: hv_base.NO_CHECK, |
541 | 542 |
} |
542 | 543 |
|
... | ... | |
1321 | 1322 |
logging.info("KVM: SPICE will listen on port %s", instance.network_port) |
1322 | 1323 |
kvm_cmd.extend(["-spice", spice_arg]) |
1323 | 1324 |
|
1324 |
# Tell kvm to use the paravirtualized graphic card, optimized for SPICE |
|
1325 |
kvm_cmd.extend(["-vga", "qxl"]) |
|
1326 |
|
|
1327 | 1325 |
else: |
1328 | 1326 |
kvm_cmd.extend(["-nographic"]) |
1329 | 1327 |
|
... | ... | |
1341 | 1339 |
if hvp[constants.HV_SOUNDHW]: |
1342 | 1340 |
kvm_cmd.extend(["-soundhw", hvp[constants.HV_SOUNDHW]]) |
1343 | 1341 |
|
1342 |
# Pass a -vga option if requested, or if spice is used, for backwards |
|
1343 |
# compatibility. |
|
1344 |
if hvp[constants.HV_VGA]: |
|
1345 |
kvm_cmd.extend(["-vga", hvp[constants.HV_VGA]]) |
|
1346 |
elif spice_bind: |
|
1347 |
kvm_cmd.extend(["-vga", "qxl"]) |
|
1348 |
|
|
1344 | 1349 |
# Various types of usb devices, comma separated |
1345 | 1350 |
if hvp[constants.HV_USB_DEVICES]: |
1346 | 1351 |
for dev in hvp[constants.HV_USB_DEVICES].split(","): |
Also available in: Unified diff