1. 09 4月, 2013 1 次提交
    • P
      hw: move headers to include/ · 0d09e41a
      Paolo Bonzini 提交于
      Many of these should be cleaned up with proper qdev-/QOM-ification.
      Right now there are many catch-all headers in include/hw/ARCH depending
      on cpu.h, and this makes it necessary to compile these files per-target.
      However, fixing this does not belong in these patches.
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      0d09e41a
  2. 02 2月, 2013 1 次提交
    • J
      vhost: multiqueue support · a9f98bb5
      Jason Wang 提交于
      This patch lets vhost support multiqueue. The idea is simple, just launching
      multiple threads of vhost and let each of vhost thread processing a subset of
      the virtqueues of the device. After this change each emulated device can have
      multiple vhost threads as its backend.
      
      To do this, a virtqueue index were introduced to record to first virtqueue that
      will be handled by this vhost_net device. Based on this and nvqs, vhost could
      calculate its relative index to setup vhost_net device.
      
      Since we may have many vhost/net devices for a virtio-net device. The setting of
      guest notifiers were moved out of the starting/stopping of a specific vhost
      thread. The vhost_net_{start|stop}() were renamed to
      vhost_net_{start|stop}_one(), and a new vhost_net_{start|stop}() were introduced
      to configure the guest notifiers and start/stop all vhost/vhost_net devices.
      Signed-off-by: NJason Wang <jasowang@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      a9f98bb5
  3. 08 1月, 2013 1 次提交
  4. 19 12月, 2012 1 次提交
  5. 07 9月, 2012 1 次提交
  6. 04 1月, 2012 1 次提交
  7. 20 12月, 2011 1 次提交
    • A
      vhost: convert to MemoryListener API · 04097f7c
      Avi Kivity 提交于
      Drop the use of cpu_register_phys_memory_client() in favour of the new
      MemoryListener API.  The new API simplifies the caller, since there is no
      need to deal with splitting and merging slots; however this is not exploited
      in this patch.
      Signed-off-by: NAvi Kivity <avi@redhat.com>
      04097f7c
  8. 26 8月, 2011 1 次提交
    • M
      vhost-net: cleanup host notifiers at last step · b0b3db79
      Michael S. Tsirkin 提交于
      When the vhost notifier is disabled, the userspace handler runs
      immediately: virtio_pci_set_host_notifier_internal might
      call virtio_queue_notify_vq.
      Since the VQ state and the tap backend state aren't
      recovered yet, this causes
      "Guest moved used index from XXX to YYY" assertions.
      
      The solution is to split out host notifier handling
      from vhost VQ setup and disable notifiers as our last step
      when we stop vhost-net. For symmetry enable them first thing
      on start.
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      b0b3db79
  9. 02 2月, 2011 1 次提交
  10. 02 4月, 2010 1 次提交