Revision 447af814

b/lib/hypervisor/hv_kvm.py
1223 1223
        spice_arg = "%s,playback-compression=off" % spice_arg
1224 1224
      if not hvp[constants.HV_KVM_SPICE_USE_VDAGENT]:
1225 1225
        spice_arg = "%s,agent-mouse=off" % spice_arg
1226
      else:
1227
        # Enable the spice agent communication channel between the host and the
1228
        # agent.
1229
        kvm_cmd.extend(["-device", "virtio-serial-pci"])
1230
        kvm_cmd.extend(["-device", "virtserialport,chardev=spicechannel0,"
1231
                                                   "name=com.redhat.spice.0"])
1232
        kvm_cmd.extend(["-chardev", "spicevmc,id=spicechannel0,name=vdagent"])
1226 1233

  
1227 1234
      logging.info("KVM: SPICE will listen on port %s", instance.network_port)
1228 1235
      kvm_cmd.extend(["-spice", spice_arg])

Also available in: Unified diff