1. 24 7月, 2011 1 次提交
  2. 06 6月, 2011 1 次提交
    • H
      spice-qemu-char: Fix flow control in client -> guest direction · 35106c2d
      Hans de Goede 提交于
      In the old spice-vmc device we used to have:
      last_out = virtio_serial_write(&svc->port, p, MIN(len, VMC_MAX_HOST_WRITE));
      if (last_out > 0)
         ...
      
      Now in the chardev backend we have:
      last_out = MIN(len, VMC_MAX_HOST_WRITE);
      qemu_chr_read(scd->chr, p, last_out);
      if (last_out > 0) {
         ...
      
      Which causes us to no longer detect if the virtio port is not ready
      to receive data from us. chardev actually has a mechanism to detect this,
      but it requires a separate call to qemu_chr_can_read, before calling
      qemu_chr_read (which return void).
      
      This patch uses qemu_chr_can_read to fix the flow control from client to
      guest.
      Signed-off-by: NHans de Goede <hdegoede@redhat.com>
      35106c2d
  3. 28 4月, 2011 1 次提交
  4. 24 1月, 2011 1 次提交
    • A
      spice: add chardev (v5) · cbcc6336
      Alon Levy 提交于
      Adding a chardev backend for spice, where spice determines what
      to do with it based on the name attribute given during chardev creation.
      For usage by spice vdagent in conjunction with a properly named
      virtio-serial device, and future smartcard channel usage.
      
      Example usage:
       qemu -device virtio-serial -chardev spicevmc,name=vdagent,id=vdagent \
       -device virtserialport,chardev=vdagent,name=com.redhat.spice.0
      
      v4->v5:
       * add tracing events
       * fix missing comma
       * fix help string to show debug is optional
      
      v3->v4:
       * updated commit message
      
      v1->v3 changes: (v2 had a wrong commit message)
       * removed spice-qemu-char.h, folded into ui/qemu-spice.h
       * removed dead IOCTL code
       * removed comment
       * removed ifdef CONFIG_SPICE from qemu-config.c and qemu-options.hx help.
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      cbcc6336