From: Peter Maydell <peter.maydell@linaro.org>
To: qemu-devel@nongnu.org
Cc: "Maciej S. Szmigiero" <maciej.szmigiero@oracle.com>,
"Gerd Hoffmann" <kraxel@redhat.com>,
"Paolo Bonzini" <pbonzini@redhat.com>,
"Daniel P. Berrangé" <berrange@redhat.com>,
"Stefano Stabellini" <sstabellini@kernel.org>,
"Anthony Perard" <anthony.perard@citrix.com>,
"Paul Durrant" <paul@xen.org>,
"Mark Cave-Ayland" <mark.cave-ayland@ilande.co.uk>,
"Matthew Rosato" <mjrosato@linux.ibm.com>,
"Halil Pasic" <pasic@linux.ibm.com>,
"Christian Borntraeger" <borntraeger@linux.ibm.com>,
qemu-s390x@nongnu.org, qemu-ppc@nongnu.org
Subject: [PATCH for-8.0 0/9] reset: Remove some deprecated APIs
Date: Fri, 4 Nov 2022 16:15:04 +0000 [thread overview]
Message-ID: <20221104161513.2455862-1-peter.maydell@linaro.org> (raw)
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
next reply other threads:[~2022-11-04 16:16 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-04 16:15 Peter Maydell [this message]
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é
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20221104161513.2455862-1-peter.maydell@linaro.org \
--to=peter.maydell@linaro.org \
--cc=anthony.perard@citrix.com \
--cc=berrange@redhat.com \
--cc=borntraeger@linux.ibm.com \
--cc=kraxel@redhat.com \
--cc=maciej.szmigiero@oracle.com \
--cc=mark.cave-ayland@ilande.co.uk \
--cc=mjrosato@linux.ibm.com \
--cc=pasic@linux.ibm.com \
--cc=paul@xen.org \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.org \
--cc=qemu-s390x@nongnu.org \
--cc=sstabellini@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).