1. 13 10月, 2010 2 次提交
    • M
      virtio: invoke set_status callback on reset · 8006040d
      Michael S. Tsirkin 提交于
      As status is set to 0 on reset, invoke the relevant callback. This makes
      for a cleaner code in devices as they don't need to duplicate the code
      in their reset routine, as well as excercises this path a little more.
      
      In particular this makes it possible to unify
      vhost-net handling code with the following patch.
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      (cherry picked from commit e0c472d8)
      8006040d
    • M
      net: delay freeing peer host device · 456496e2
      Michael S. Tsirkin 提交于
      With -netdev, virtio devices present offload
      features to guest, depending on the backend used.
      Thus, removing host netdev peer while guest is
      active leads to guest-visible inconsistency and/or crashes.
      
      As a solution, while guest (NIC) peer device exists,
      we prevent the host peer from being deleted.
      This patch does this by adding peer_deleted flag in nic state:
      if host device is going away while guest device
      is around, set this flag and keep a shell of
      the host device around for as long as guest device exists.
      
      The link is put down so all packets will get discarded.
      
      At the moment, management can detect that device deletion
      is delayed by doing info net. As a next step, we shall add
      commands that control hotplug/unplug without
      removing the device, and an event to report that
      guest has responded to the hotplug event.
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      Acked-by: NAlex Williamson <alex.williamson@redhat.com>
      (cherry picked from commit a083a89d)
      456496e2
  2. 12 10月, 2010 28 次提交
  3. 13 9月, 2010 10 次提交