qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 0/8] QOM: container_get() removal
@ 2025-01-02 21:17 Philippe Mathieu-Daudé
  2025-01-02 21:17 ` [PATCH v4 1/8] qdev: Implement qdev_create_fake_machine() for user emulation Philippe Mathieu-Daudé
                   ` (8 more replies)
  0 siblings, 9 replies; 20+ messages in thread
From: Philippe Mathieu-Daudé @ 2025-01-02 21:17 UTC (permalink / raw)
  To: qemu-devel
  Cc: qemu-block, Daniel P. Berrangé, Michael S. Tsirkin,
	Richard Henderson, Paolo Bonzini, David Hildenbrand, Zhenwei Pi,
	Marcel Apfelbaum, Gonglei (Arei), Philippe Mathieu-Daudé,
	Peter Xu, Marc-André Lureau, Fam Zheng, Eduardo Habkost

Respin of Peter's v2:
https://lore.kernel.org/qemu-devel/20241121192202.4155849-1-peterx@redhat.com/

'The series is about container_get() and its removal.'
(See v2's cover).

Since v3:
- Implement qdev_create_fake_machine() in single patch (peterx)

Since v2:
- Create fake machine container for user emulation to avoid:

  $ ./qemu-x86_64 /bin/echo foo
  qemu-x86_64: ../../hw/core/qdev.c:825: qdev_get_machine: Assertion `dev' failed.
  Aborted (core dumped)

Peter Xu (6):
  qdev: Make qdev_get_machine() not use container_get()
  qdev: Add machine_get_container()
  qdev: Use machine_get_container()
  qom: Add object_get_container()
  qom: Use object_get_container()
  qom: Remove container_get()

Philippe Mathieu-Daudé (2):
  qdev: Implement qdev_create_fake_machine() for user emulation
  system: Inline machine_containers[] in
    qemu_create_machine_containers()

 include/hw/qdev-core.h | 20 ++++++++++++++++++++
 include/qom/object.h   | 21 ++++++++++-----------
 accel/tcg/tcg-all.c    |  8 +++++++-
 backends/cryptodev.c   |  4 ++--
 chardev/char.c         |  2 +-
 hw/core/gpio.c         |  3 +--
 hw/core/qdev-user.c    | 21 +++++++++++++++++++++
 hw/core/qdev.c         | 21 ++++++++++++++++++---
 hw/core/sysbus.c       |  4 ++--
 hw/i386/pc.c           |  4 ++--
 qom/container.c        | 23 -----------------------
 qom/object.c           | 12 +++++++++++-
 scsi/pr-manager.c      |  4 ++--
 system/ioport.c        |  2 +-
 system/memory.c        |  2 +-
 system/qdev-monitor.c  |  6 +++---
 system/vl.c            | 19 ++++++++-----------
 ui/console.c           |  2 +-
 ui/dbus-chardev.c      |  2 +-
 hw/core/meson.build    |  1 +
 20 files changed, 113 insertions(+), 68 deletions(-)
 create mode 100644 hw/core/qdev-user.c

-- 
2.47.1



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

end of thread, other threads:[~2025-01-09 14:41 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-02 21:17 [PATCH v4 0/8] QOM: container_get() removal Philippe Mathieu-Daudé
2025-01-02 21:17 ` [PATCH v4 1/8] qdev: Implement qdev_create_fake_machine() for user emulation Philippe Mathieu-Daudé
2025-01-02 22:05   ` Peter Xu
2025-01-03 14:24   ` Richard Henderson
2025-01-03 14:37     ` Philippe Mathieu-Daudé
2025-01-02 21:17 ` [PATCH v4 2/8] qdev: Make qdev_get_machine() not use container_get() Philippe Mathieu-Daudé
2025-01-03 14:26   ` Richard Henderson
2025-01-02 21:17 ` [PATCH v4 3/8] qdev: Add machine_get_container() Philippe Mathieu-Daudé
2025-01-03 14:27   ` Richard Henderson
2025-01-02 21:17 ` [PATCH v4 4/8] qdev: Use machine_get_container() Philippe Mathieu-Daudé
2025-01-03 14:29   ` Richard Henderson
2025-01-02 21:17 ` [PATCH v4 5/8] qom: Add object_get_container() Philippe Mathieu-Daudé
2025-01-03 14:29   ` Richard Henderson
2025-01-02 21:17 ` [PATCH v4 6/8] qom: Use object_get_container() Philippe Mathieu-Daudé
2025-01-03 14:30   ` Richard Henderson
2025-01-02 21:17 ` [PATCH v4 7/8] qom: Remove container_get() Philippe Mathieu-Daudé
2025-01-03 14:31   ` Richard Henderson
2025-01-02 21:18 ` [PATCH v4 8/8] system: Inline machine_containers[] in qemu_create_machine_containers() Philippe Mathieu-Daudé
2025-01-03 14:32   ` Richard Henderson
2025-01-09 14:40 ` [PATCH v4 0/8] QOM: container_get() removal 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).