1. 02 4月, 2010 2 次提交
  2. 01 4月, 2010 1 次提交
    • A
      Don't check for bus master for old guests · c81131db
      Alexander Graf 提交于
      Older Linux guests don't activate the bus master enable bit. So for those we
      can just try to be clever and track if they set the DEVICE_OK bit even though
      bus mastering is still disabled.
      
      Under that condition we can disable the windows safety check. With that logic
      in place both guests should work just fine. Without PCI hotplug breaks
      virtio-net in Linux < 2.6.34 guests.
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      CC: Michael S. Tsirkin <mst@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      c81131db
  3. 16 3月, 2010 2 次提交
  4. 09 3月, 2010 1 次提交
  5. 20 2月, 2010 1 次提交
  6. 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
  7. 20 1月, 2010 2 次提交
    • A
      virtio-serial: Use MSI vectors for port virtqueues · a1829205
      Amit Shah 提交于
      This commit enables the use of MSI interrupts for virtqueue
      notifications for ports. We use nr_ports + 1 (for control channel) msi
      entries for the ports, as only the in_vq operations need an interrupt on
      the guest.
      Signed-off-by: NAmit Shah <amit.shah@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      a1829205
    • 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
  8. 12 1月, 2010 3 次提交
  9. 19 12月, 2009 2 次提交
  10. 12 12月, 2009 1 次提交
  11. 01 12月, 2009 1 次提交
  12. 09 11月, 2009 2 次提交
  13. 28 10月, 2009 1 次提交
  14. 07 10月, 2009 1 次提交
  15. 05 10月, 2009 6 次提交
  16. 02 10月, 2009 2 次提交
  17. 20 9月, 2009 1 次提交
  18. 11 9月, 2009 1 次提交
    • Y
      VirtIO: Fix QEMU crash during Windows PNP tests · ed757e14
      Yan Vugenfirer 提交于
      Hello,
      
      In some cases bus driver can deassert "bus master" bit in PCI command
      register. The driver will no longer be able to update related registers in
      the device. Eventually it will cause QEMU to exit in "virtqueue_num_heads"
      function.
      
      Attached path that fixes the described issue.
      
      Best regards,
      Yan Vugenfirer.
      
      >From 3fdafbdfad676ec8479dc073cff70bf356868bfe Mon Sep 17 00:00:00 2001
      From: Yan Vugenfirer <yvugenfi@redhat.com>
      Date: Tue, 8 Sep 2009 10:08:14 -0400
      Subject: [PATCH] VirtIO: Fix QEMU crash during Windows PNP tests
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      ed757e14
  19. 28 8月, 2009 2 次提交
  20. 24 8月, 2009 1 次提交
  21. 11 8月, 2009 2 次提交
    • G
      qdev/prop: convert virtio-pci.c to helper macros. · 72c61d0b
      Gerd Hoffmann 提交于
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      Message-Id: 
      72c61d0b
    • G
      qdev-ify virtio-blk. · d176c495
      Gerd Hoffmann 提交于
      First user of the new drive property.  With this patch applied host
      and guest config can be specified separately, like this:
      
        -drive if=none,id=disk1,file=/path/to/disk.img
        -device virtio-blk-pci,drive=disk1
      
      You can set any property for virtio-blk-pci now.  You can set the pci
      address via addr=.  You can switch the device into 0.10 compat mode
      using class=0x0180.  As this is per device you can have one 0.10 and one
      0.11 virtio block device in a single virtual machine.
      
      Old syntax continues to work.  Internally it does the same as the two
      lines above though.  One side effect this has is a different
      initialization order, which might result in a different pci address
      being assigned by default.
      
      Long term plan here is to have this working for all block devices, i.e.
      once all scsi is properly qdev-ified you will be able to do something
      like this:
      
        -drive if=none,id=sda,file=/path/to/disk.img
        -device lsi,id=lsi,addr=<pciaddr>
        -device scsi-disk,drive=sda,bus=lsi.0,lun=<n>
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      Message-Id: 
      d176c495
  22. 30 7月, 2009 1 次提交
  23. 17 7月, 2009 3 次提交