qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH for-8.0 0/9] reset: Remove some deprecated APIs
@ 2022-11-04 16:15 Peter Maydell
  2022-11-04 16:15 ` [PATCH for-8.0 1/9] hw/s390x/s390-pci-inst.c: Use device_cold_reset() to reset PCI devices Peter Maydell
                   ` (8 more replies)
  0 siblings, 9 replies; 19+ messages in thread
From: Peter Maydell @ 2022-11-04 16:15 UTC (permalink / raw)
  To: qemu-devel
  Cc: Maciej S. Szmigiero, Gerd Hoffmann, Paolo Bonzini,
	Daniel P. Berrangé, Stefano Stabellini, Anthony Perard,
	Paul Durrant, Mark Cave-Ayland, Matthew Rosato, Halil Pasic,
	Christian Borntraeger, qemu-s390x, qemu-ppc

This patchset removes the remaining uses of some deprecated
reset-related APIs:
 * device_legacy_reset() -- replaced with device_cold_reset()
   (conversions require some thought)
 * qdev_reset_all() -- replaced with device_cold_reset()
   (mechanical no-behaviour-change conversion)
 * qbus_reset_all() -- replaced with bus_cold_reset()
   (mechanical no-behaviour-change conversion)

The first four patches have been on the list already; the
first three have been reviewed.

Mostly just tested with 'make check' and 'make check-avocado'.

This is of course all for-8.0 material, but I figured I
might as well push it out on list for review, especially
since I have some followup stuff that depends on this.

thanks
-- PMM

Peter Maydell (9):
  hw/s390x/s390-pci-inst.c: Use device_cold_reset() to reset PCI devices
  hw/audio/intel-hda: don't reset codecs twice
  hw/audio/intel-hda: Drop unnecessary prototype
  hw/usb/hcd-xhci: Reset the XHCIState with device_cold_reset()
  pci: Use device_cold_reset() and bus_cold_reset()
  hw/hyperv/vmbus: Use device_cold_reset() and bus_cold_reset()
  Replace use of qdev_reset_all() with device_cold_reset()
  qdev: Remove qdev_reset_all() and qbus_reset_all()
  hw: Remove device_legacy_reset()

 include/hw/qdev-core.h     | 35 ---------------------
 hw/audio/intel-hda.c       |  6 +---
 hw/core/qdev.c             | 64 --------------------------------------
 hw/hyperv/vmbus.c          |  4 +--
 hw/i386/xen/xen_platform.c |  2 +-
 hw/input/adb.c             |  2 +-
 hw/pci/pci.c               |  6 ++--
 hw/pci/pci_bridge.c        |  2 +-
 hw/remote/vfio-user-obj.c  |  2 +-
 hw/s390x/s390-pci-inst.c   |  2 +-
 hw/s390x/s390-virtio-ccw.c |  2 +-
 hw/usb/dev-uas.c           |  2 +-
 hw/usb/hcd-xhci-pci.c      |  2 +-
 hw/usb/hcd-xhci-sysbus.c   |  2 +-
 hw/core/trace-events       |  4 ---
 15 files changed, 15 insertions(+), 122 deletions(-)

-- 
2.25.1



^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2022-11-30 10:15 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-04 16:15 [PATCH for-8.0 0/9] reset: Remove some deprecated APIs Peter Maydell
2022-11-04 16:15 ` [PATCH for-8.0 1/9] hw/s390x/s390-pci-inst.c: Use device_cold_reset() to reset PCI devices Peter Maydell
2022-11-30 10:07   ` Philippe Mathieu-Daudé
2022-11-04 16:15 ` [PATCH for-8.0 2/9] hw/audio/intel-hda: don't reset codecs twice Peter Maydell
2022-11-04 16:15 ` [PATCH for-8.0 3/9] hw/audio/intel-hda: Drop unnecessary prototype Peter Maydell
2022-11-04 16:15 ` [PATCH for-8.0 4/9] hw/usb/hcd-xhci: Reset the XHCIState with device_cold_reset() Peter Maydell
2022-11-30 10:11   ` Philippe Mathieu-Daudé
2022-11-04 16:15 ` [PATCH for-8.0 5/9] pci: Use device_cold_reset() and bus_cold_reset() Peter Maydell
2022-11-04 17:39   ` Philippe Mathieu-Daudé
2022-11-04 16:15 ` [PATCH for-8.0 6/9] hw/hyperv/vmbus: " Peter Maydell
2022-11-10 20:33   ` Maciej S. Szmigiero
2022-11-30 10:12   ` Philippe Mathieu-Daudé
2022-11-04 16:15 ` [PATCH for-8.0 7/9] Replace use of qdev_reset_all() with device_cold_reset() Peter Maydell
2022-11-04 17:39   ` Paul Durrant
2022-11-30 10:14   ` Philippe Mathieu-Daudé
2022-11-04 16:15 ` [PATCH for-8.0 8/9] qdev: Remove qdev_reset_all() and qbus_reset_all() Peter Maydell
2022-11-04 17:46   ` Philippe Mathieu-Daudé
2022-11-04 16:15 ` [PATCH for-8.0 9/9] hw: Remove device_legacy_reset() Peter Maydell
2022-11-04 17:43   ` Philippe Mathieu-Daudé

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).