qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH for-7.1 0/4] use dc->vmsd with spapr devices vmstate
@ 2022-03-22 18:38 Daniel Henrique Barboza
  2022-03-22 18:38 ` [PATCH for-7.1 1/4] hw/ppc: use qdev to register logical DRC vmstates Daniel Henrique Barboza
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: Daniel Henrique Barboza @ 2022-03-22 18:38 UTC (permalink / raw)
  To: qemu-devel; +Cc: Daniel Henrique Barboza, qemu-ppc, clg, david

Hi,

This short series converts some spapr devices to use the dc->vmsd
interface to register the vmstate. For most of them it was needed
to use qdev_set_legacy_instance_id() to keep compatibility with the
instance_id being used for awhile.

Although no functional changes were made the resulting code is a bit
shorter and maintainable. After these patches there are only 3 places
where vmstate_register() APIs are being used.

No behavior changes were detected when testing migration scenarios with
hotplug/unplug of devices.

Daniel Henrique Barboza (4):
  hw/ppc: use qdev to register logical DRC vmstates
  hw/ppc: use qdev to register physical DRC vmstates
  hw/ppc: use qdev to register spapr_iommu tcet vmstate
  hw/ppc: use qdev to register spapr_nvdimm vmsd

 hw/ppc/spapr_drc.c    | 13 ++++++-------
 hw/ppc/spapr_iommu.c  |  7 +++----
 hw/ppc/spapr_nvdimm.c | 11 ++---------
 3 files changed, 11 insertions(+), 20 deletions(-)

-- 
2.35.1



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

end of thread, other threads:[~2022-03-23 21:49 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-22 18:38 [PATCH for-7.1 0/4] use dc->vmsd with spapr devices vmstate Daniel Henrique Barboza
2022-03-22 18:38 ` [PATCH for-7.1 1/4] hw/ppc: use qdev to register logical DRC vmstates Daniel Henrique Barboza
2022-03-22 18:38 ` [PATCH for-7.1 2/4] hw/ppc: use qdev to register physical " Daniel Henrique Barboza
2022-03-23  1:48   ` David Gibson
2022-03-23 21:44     ` Daniel Henrique Barboza
2022-03-22 18:38 ` [PATCH for-7.1 3/4] hw/ppc: use qdev to register spapr_iommu tcet vmstate Daniel Henrique Barboza
2022-03-22 18:38 ` [PATCH for-7.1 4/4] hw/ppc: use qdev to register spapr_nvdimm vmsd Daniel Henrique Barboza
2022-03-23  1:49 ` [PATCH for-7.1 0/4] use dc->vmsd with spapr devices vmstate David Gibson
2022-03-23 21:47   ` Daniel Henrique Barboza

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).