1. 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
  2. 17 11月, 2010 1 次提交
    • L
      qemu-char: Introduce Memory driver · 999bd67c
      Luiz Capitulino 提交于
      This driver handles in-memory chardev operations. That's, all writes
      to this driver are stored in an internal buffer and it doesn't talk
      to the external world in any way.
      
      Right now it's very simple: it supports only writes. But it can be
      easily extended to support more operations.
      
      This is going to be used by the monitor's "HMP passthrough via QMP"
      feature, which needs to run monitor handlers without a backing
      device.
      Signed-off-by: NLuiz Capitulino <lcapitulino@redhat.com>
      999bd67c
  3. 04 11月, 2010 1 次提交
  4. 23 8月, 2010 1 次提交
  5. 15 8月, 2010 1 次提交
  6. 11 8月, 2010 1 次提交
    • C
      RESEND: Inter-VM shared memory PCI device · 6cbf4c8c
      Cam Macdonell 提交于
      resend for bug fix related to removal of irqfd
      
      Support an inter-vm shared memory device that maps a shared-memory object as a
      PCI device in the guest.  This patch also supports interrupts between guest by
      communicating over a unix domain socket.  This patch applies to the qemu-kvm
      repository.
      
          -device ivshmem,size=<size in format accepted by -m>[,shm=<shm name>]
      
      Interrupts are supported between multiple VMs by using a shared memory server
      by using a chardev socket.
      
          -device ivshmem,size=<size in format accepted by -m>[,shm=<shm name>]
                 [,chardev=<id>][,msi=on][,ioeventfd=on][,vectors=n][,role=peer|master]
          -chardev socket,path=<path>,id=<id>
      
      The shared memory server, sample programs and init scripts are in a git repo here:
      
          www.gitorious.org/nahanni
      Signed-off-by: NCam Macdonell <cam@cs.ualberta.ca>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      6cbf4c8c
  7. 15 6月, 2010 1 次提交
  8. 04 6月, 2010 1 次提交
  9. 02 6月, 2010 1 次提交
  10. 27 4月, 2010 1 次提交
  11. 10 4月, 2010 1 次提交
    • A
      Always notify consumers of char devices if they're open · 73cdf3f2
      Alexander Graf 提交于
      When using virtio-console on s390, the input doesn't work.
      
      The root of the problem is rather simple. What happens is the following:
      
       1) create character device for stdio
       2) char device is done creating, sends OPENED event
       3) virtio-console adds handlers
       4) no event comes because the char device is open already
       5) virtio-console doesn't accept input because it didn't
          receive an OPENED event
      
      To make that sure virtio-console gets notified that the character device
      is open even when it's been open from the beginning, this patch introduces
      a variable that keeps track of the opened state. If the device is open when
      the event handlers get installed, we just notify the handler.
      
      This fixes input with virtio-console on s390.
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      Acked-by: NAmit Shah <amit.shah@redhat.com>
      Signed-off-by: NAurelien Jarno <aurelien@aurel32.net>
      73cdf3f2
  12. 09 4月, 2010 1 次提交
  13. 01 4月, 2010 1 次提交
  14. 31 3月, 2010 1 次提交
  15. 22 3月, 2010 1 次提交
  16. 20 3月, 2010 2 次提交
  17. 15 3月, 2010 1 次提交
  18. 09 3月, 2010 1 次提交
  19. 28 2月, 2010 1 次提交
  20. 23 2月, 2010 1 次提交
    • D
      add close callback for tty-based char device · 4266a134
      David Ahern 提交于
      v1 -> v2  coding style changes
      
      Add a tty close callback. Right now if a guest device that is connected
      to a tty-based chardev in the host is removed, the tty is not closed.
      With this patch it is closed.
      
      Example use case is connecting an emulated USB serial cable in the guest
      to ttyS0 of the host using the monitor command:
      
      usb_add serial::/dev/ttyS0
      
      and then removing the device with:
      
      usb_del serial::/dev/ttyS0
      Signed-off-by: NDavid Ahern <daahern@cisco.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      4266a134
  21. 11 2月, 2010 1 次提交
  22. 20 1月, 2010 1 次提交
  23. 12 12月, 2009 2 次提交
  24. 04 12月, 2009 1 次提交
  25. 30 11月, 2009 2 次提交
  26. 17 11月, 2009 3 次提交
  27. 30 10月, 2009 1 次提交
  28. 28 10月, 2009 3 次提交
  29. 22 10月, 2009 3 次提交
  30. 12 9月, 2009 1 次提交
    • B
      Fix sys-queue.h conflict for good · 72cf2d4f
      Blue Swirl 提交于
      Problem: Our file sys-queue.h is a copy of the BSD file, but there are
      some additions and it's not entirely compatible. Because of that, there have
      been conflicts with system headers on BSD systems. Some hacks have been
      introduced in the commits 15cc9235,
      f40d7537,
      96555a96 and
      3990d09a but the fixes were fragile.
      
      Solution: Avoid the conflict entirely by renaming the functions and the
      file. Revert the previous hacks.
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      72cf2d4f
  31. 11 9月, 2009 1 次提交