1. 26 3月, 2013 1 次提交
  2. 19 3月, 2013 1 次提交
  3. 30 1月, 2013 1 次提交
  4. 22 1月, 2013 2 次提交
  5. 19 12月, 2012 1 次提交
  6. 16 11月, 2012 1 次提交
  7. 18 6月, 2012 1 次提交
  8. 22 5月, 2012 1 次提交
  9. 02 5月, 2012 1 次提交
  10. 22 2月, 2012 1 次提交
  11. 04 2月, 2012 1 次提交
    • A
      qdev: register all types natively through QEMU Object Model · 39bffca2
      Anthony Liguori 提交于
      This was done in a mostly automated fashion.  I did it in three steps and then
      rebased it into a single step which avoids repeatedly touching every file in
      the tree.
      
      The first step was a sed-based addition of the parent type to the subclass
      registration functions.
      
      The second step was another sed-based removal of subclass registration functions
      while also adding virtual functions from the base class into a class_init
      function as appropriate.
      
      Finally, a python script was used to convert the DeviceInfo structures and
      qdev_register_subclass functions to TypeInfo structures, class_init functions,
      and type_register_static calls.
      
      We are almost fully converted to QOM after this commit.
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      39bffca2
  12. 04 1月, 2012 1 次提交
    • A
      [S390] Add hotplug support · 7fa41e53
      Alexander Graf 提交于
      I just submitted a few patches that enable the s390 virtio bus to receive
      a hotplug add event. This patch implements the qemu side of it, so that new
      hotplug events can be submitted to the guest.
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      
      ---
      
      v1 -> v2:
      
        - make s390 virtio hoplug code emulate-capable
      7fa41e53
  13. 05 7月, 2011 1 次提交
  14. 20 5月, 2011 1 次提交
    • A
      s390x: keep hint on virtio managing size · d1ff903c
      Alexander Graf 提交于
      The s390x virtio bus keeps management information on virtio after the top
      of the guest's RAM. We need to be able to tell the guest the size of its
      RAM (without virtio stuff), but also be able to trap when the guest accesses
      RAM outside of its scope (including virtio stuff).
      
      So we need a variable telling us the size of the virtio stuff, so we can
      calculate the highest available RAM address from that.
      
      While at it, also increase the maximum number of virtio pages, so we play
      along well with more recent kernels that spawn a ridiculous number of virtio
      console adapters.
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      d1ff903c
  15. 04 4月, 2011 1 次提交
  16. 24 1月, 2011 1 次提交
  17. 26 12月, 2010 1 次提交
  18. 08 9月, 2010 1 次提交
  19. 10 4月, 2010 1 次提交
  20. 11 2月, 2010 1 次提交
    • C
      block: add topology qdev properties · 428c149b
      Christoph Hellwig 提交于
      Add three new qdev properties to export block topology information to
      the guest.  This is needed to get optimal I/O alignment for RAID arrays
      or SSDs.
      
      The options are:
      
       - physical_block_size to specify the physical block size of the device,
         this is going to increase from 512 bytes to 4096 kilobytes for many
         modern storage devices
       - min_io_size to specify the minimal I/O size without performance impact,
         this is typically set to the RAID chunk size for arrays.
       - opt_io_size to specify the optimal sustained I/O size, this is
         typically the RAID stripe width for arrays.
      
      I decided to not auto-probe these values from blkid which might easily
      be possible as I don't know how to deal with these issues on migration.
      
      Note that we specificly only set the physical_block_size, and not the
      logial one which is the unit all I/O is described in.  The reason for
      that is that IDE does not support increasing the logical block size and
      at last for now I want to stick to one meachnisms in queue and allow
      for easy switching of transports for a given backing image which would
      not be possible if scsi and virtio use real 4k sectors, while ide only
      uses the physical block exponent.
      
      To make this more common for the different block drivers introduce a
      new BlockConf structure holding all common block properties and a
      DEFINE_BLOCK_PROPERTIES macro to add them all together, mirroring
      what is done for network drivers.  Also switch over all block drivers
      to use it, except for the floppy driver which has weird driveA/driveB
      properties and probably won't require any advanced block options ever.
      
      Example usage for a virtio device with 4k physical block size and
      8k optimal I/O size:
      
        -drive file=scratch.img,media=disk,cache=none,id=scratch \
        -device virtio-blk-pci,drive=scratch,physical_block_size=4096,opt_io_size=8192
      
      aliguori: updated patch to take into account BLOCK events
      Signed-off-by: NChristoph Hellwig <hch@lst.de>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      428c149b
  21. 20 1月, 2010 1 次提交
    • A
      virtio-console: qdev conversion, new virtio-serial-bus · 98b19252
      Amit Shah 提交于
      This commit converts the virtio-console device to create a new
      virtio-serial bus that can host console and generic serial ports. The
      file hosting this code is now called virtio-serial-bus.c.
      
      The virtio console is now a very simple qdev device that sits on the
      virtio-serial-bus and communicates between the bus and qemu's chardevs.
      
      This commit also includes a few changes to the virtio backing code for
      pci and s390 to spawn the virtio-serial bus.
      
      As a result of the qdev conversion, we get rid of a lot of legacy code.
      The old-style way of instantiating a virtio console using
      
          -virtioconsole ...
      
      is maintained, but the new, preferred way is to use
      
          -device virtio-serial -device virtconsole,chardev=...
      
      With this commit, multiple devices as well as multiple ports with a
      single device can be supported.
      
      For multiple ports support, each port gets an IO vq pair. Since the
      guest needs to know in advance how many vqs a particular device will
      need, we have to set this number as a property of the virtio-serial
      device and also as a config option.
      
      In addition, we also spawn a pair of control IO vqs. This is an internal
      channel meant for guest-host communication for things like port
      open/close, sending port properties over to the guest, etc.
      
      This commit is a part of a series of other commits to get the full
      implementation of multiport support. Future commits will add other
      support as well as ride on the savevm version that we bump up here.
      Signed-off-by: NAmit Shah <amit.shah@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      98b19252
  22. 12 1月, 2010 1 次提交
  23. 06 12月, 2009 1 次提交