1. 07 5月, 2013 1 次提交
    • J
      virtio-net: properly check the vhost status during status set · d7108d90
      Jason Wang 提交于
      Commit 32993698 (vhost: disable on tap link down) tries to disable the vhost
      also when the peer's link is down. But the check was not done properly, the
      vhost were only started when:
      
      1) peer's link is not down
      2) virtio-net has already been started.
      
      Since == have a higher precedence than &&, place a brace to make sure both the
      conditions were met then does the check. This fixes the crash when doing a savem
      after set the link off which let qemu crash and complains:
      
      virtio_net_save: Assertion `!n->vhost_started' failed.
      
      Cc: Michael S. Tsirkin <mst@redhat.com>
      Signed-off-by: NJason Wang <jasowang@redhat.com>
      Message-id: 1366972060-21606-1-git-send-email-jasowang@redhat.com
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      d7108d90
  2. 01 5月, 2013 1 次提交
  3. 29 4月, 2013 1 次提交
  4. 25 4月, 2013 2 次提交
  5. 17 4月, 2013 3 次提交
  6. 09 4月, 2013 2 次提交
  7. 27 3月, 2013 1 次提交
  8. 19 3月, 2013 1 次提交
  9. 01 3月, 2013 1 次提交
    • P
      hw: include hw header files with full paths · 83c9f4ca
      Paolo Bonzini 提交于
      Done with this script:
      
      cd hw
      for i in `find . -name '*.h' | sed 's/^..//'`; do
        echo '\,^#.*include.*["<]'$i'[">], s,'$i',hw/&,'
      done | sed -i -f - `find . -type f`
      
      This is so that paths remain valid as files are moved.
      
      Instead, files in hw/dataplane are referenced with the relative path.
      We know they are not going to move to include/, and they are the only
      include files that are in subdirectories _and_ move.
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      83c9f4ca
  10. 27 2月, 2013 1 次提交
    • J
      net: reduce the unnecessary memory allocation of multiqueue · f6b26cf2
      Jason Wang 提交于
      Edivaldo reports a problem that the array of NetClientState in NICState is too
      large - MAX_QUEUE_NUM(1024) which will wastes memory even if multiqueue is not
      used.
      
      Instead of static arrays, solving this issue by allocating the queues on demand
      for both the NetClientState array in NICState and VirtIONetQueue array in
      VirtIONet.
      
      Tested by myself, with single virtio-net-pci device. The memory allocation is
      almost the same as when multiqueue is not merged.
      
      Cc: Edivaldo de Araujo Pereira <edivaldoapereira@yahoo.com.br>
      Cc: qemu-stable@nongnu.org
      Signed-off-by: NJason Wang <jasowang@redhat.com>
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      f6b26cf2
  11. 09 2月, 2013 1 次提交
  12. 08 2月, 2013 1 次提交
  13. 02 2月, 2013 8 次提交
  14. 30 1月, 2013 4 次提交
  15. 08 1月, 2013 2 次提交
  16. 19 12月, 2012 2 次提交
  17. 30 10月, 2012 8 次提交