1. 20 1月, 2017 1 次提交
  2. 16 12月, 2016 1 次提交
  3. 15 11月, 2016 1 次提交
  4. 31 10月, 2016 4 次提交
  5. 19 9月, 2016 1 次提交
  6. 15 9月, 2016 1 次提交
    • M
      virtio-bus: Plug devices after features are negotiated · d1b4259f
      Maxime Coquelin 提交于
      Currently, devices are plugged before features are negotiated.
      If the backend doesn't support VIRTIO_F_VERSION_1, the transport
      needs to rewind some settings.
      
      This is the case for CCW, for which a post_plugged callback had
      been introduced, where max_rev field is just updated if
      VIRTIO_F_VERSION_1 is not supported by the backend.
      For PCI, implementing post_plugged would be much more
      complicated, so it needs to know whether the backend supports
      VIRTIO_F_VERSION_1 at plug time.
      
      Currently, nothing is done for PCI. Modern capabilities get
      exposed to the guest even if VIRTIO_F_VERSION_1 is not supported
      by the backend, which confuses the guest.
      
      This patch replaces existing post_plugged solution with an
      approach that fits with both transports.
      Features negotiation is performed before ->device_plugged() call.
      A pre_plugged callback is introduced so that the transports can
      set their supported features.
      
      Cc: Michael S. Tsirkin <mst@redhat.com>
      Cc: qemu-stable@nongnu.org
      Tested-by: Cornelia Huck <cornelia.huck@de.ibm.com> [ccw]
      Reviewed-by: NCornelia Huck <cornelia.huck@de.ibm.com>
      Reviewed-by: NMarcel Apfelbaum <marcel@redhat.com>
      Signed-off-by: NMaxime Coquelin <maxime.coquelin@redhat.com>
      d1b4259f
  7. 10 9月, 2016 1 次提交
  8. 11 7月, 2016 4 次提交
  9. 24 6月, 2016 1 次提交
  10. 20 6月, 2016 2 次提交
  11. 14 6月, 2016 2 次提交
  12. 07 6月, 2016 1 次提交
  13. 19 5月, 2016 1 次提交
  14. 23 3月, 2016 1 次提交
    • M
      include/qemu/osdep.h: Don't include qapi/error.h · da34e65c
      Markus Armbruster 提交于
      Commit 57cb38b3 included qapi/error.h into qemu/osdep.h to get the
      Error typedef.  Since then, we've moved to include qemu/osdep.h
      everywhere.  Its file comment explains: "To avoid getting into
      possible circular include dependencies, this file should not include
      any other QEMU headers, with the exceptions of config-host.h,
      compiler.h, os-posix.h and os-win32.h, all of which are doing a
      similar job to this file and are under similar constraints."
      qapi/error.h doesn't do a similar job, and it doesn't adhere to
      similar constraints: it includes qapi-types.h.  That's in excess of
      100KiB of crap most .c files don't actually need.
      
      Add the typedef to qemu/typedefs.h, and include that instead of
      qapi/error.h.  Include qapi/error.h in .c files that need it and don't
      get it now.  Include qapi-types.h in qom/object.h for uint16List.
      
      Update scripts/clean-includes accordingly.  Update it further to match
      reality: replace config.h by config-target.h, add sysemu/os-posix.h,
      sysemu/os-win32.h.  Update the list of includes in the qemu/osdep.h
      comment quoted above similarly.
      
      This reduces the number of objects depending on qapi/error.h from "all
      of them" to less than a third.  Unfortunately, the number depending on
      qapi-types.h shrinks only a little.  More work is needed for that one.
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      [Fix compilation without the spice devel packages. - Paolo]
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      da34e65c
  15. 01 3月, 2016 1 次提交
  16. 29 1月, 2016 1 次提交
  17. 13 1月, 2016 1 次提交
  18. 03 12月, 2015 1 次提交
    • C
      virtio: handle non-virtio-1-capable backend for ccw · 11380b36
      Cornelia Huck 提交于
      If you run a qemu advertising VERSION_1 with an old kernel where
      vhost did not yet support VERSION_1, you'll end up with a device
      that is {modern pci|ccw revision 1} but does not advertise VERSION_1.
      This is not a sensible configuration and is rejected by the Linux
      guest drivers.
      
      To fix this, add a ->post_plugged() callback invoked after features
      have been queried that can handle the VERSION_1 bit being withdrawn
      and change ccw to fall back to revision 0 if VERSION_1 is gone.
      
      Note that pci is _not_ fixed; we'll need to rethink the approach
      for the next release but at least for pci it's not a regression.
      Signed-off-by: NCornelia Huck <cornelia.huck@de.ibm.com>
      Reviewed-by: NMichael S. Tsirkin <mst@redhat.com>
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      11380b36
  19. 24 9月, 2015 3 次提交
  20. 15 7月, 2015 1 次提交
  21. 07 7月, 2015 1 次提交
  22. 02 7月, 2015 3 次提交
  23. 30 6月, 2015 1 次提交
  24. 23 6月, 2015 2 次提交
  25. 17 6月, 2015 1 次提交
  26. 11 6月, 2015 1 次提交
  27. 04 6月, 2015 1 次提交
    • J
      virtio-ccw/migration: Migrate config vector for virtio devices · 2a72ea5f
      Jason J. Herne 提交于
      virtio_ccw_{save|load}_config are missing code to save and restore a vdev's
      config_vector value. This causes some virtio devices to become disabled
      following a migration.
      
      This patch fixes a bug whereby the qmp/hmp balloon command (virsh setmem)
      silently fails to update the guest's available memory because the device was not
      properly migrated.
      
      This will break compatibility, but vmstate_s390_cpu was bumped from
      version 2 to version 4 between v2.3.0 and v2.4.0 without a compat
      handler. Furthermore, there is no production environment yet so
      migration is fenced anyway between any relevant version of 2.3 and 2.4.
      Signed-off-by: NJason J. Herne <jjherne@linux.vnet.ibm.com>
      Message-Id: <1433343843-803-1-git-send-email-jjherne@linux.vnet.ibm.com>
      Reviewed-by: NMichael S. Tsirkin <mst@redhat.com>
      Signed-off-by: NChristian Borntraeger <borntraeger@de.ibm.com>
      2a72ea5f