qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 0/4] virtio: Convert feature properties to OnOffAuto
@ 2025-01-08  6:17 Akihiko Odaki
  2025-01-08  6:17 ` [PATCH v4 1/4] qapi: Do not consume a value if failed Akihiko Odaki
                   ` (4 more replies)
  0 siblings, 5 replies; 31+ messages in thread
From: Akihiko Odaki @ 2025-01-08  6:17 UTC (permalink / raw)
  To: Jason Wang, Dmitry Fleytman, Sriram Yagnaraman,
	Michael S. Tsirkin, Luigi Rizzo, Giuseppe Lettieri,
	Vincenzo Maffione, Andrew Melnychenko, Yuri Benditovich,
	Paolo Bonzini, Daniel P. Berrangé, Eduardo Habkost,
	Markus Armbruster, Michael Roth, Marcel Apfelbaum,
	Philippe Mathieu-Daudé, Yanan Wang, Zhao Liu, Lei Yang
  Cc: qemu-devel, Akihiko Odaki

This series was spun off from:
"[PATCH 0/3] virtio-net: Convert feature properties to OnOffAuto"
(https://patchew.org/QEMU/20240714-auto-v3-0-e27401aabab3@daynix.com/)

Some features are not always available with vhost. Legacy features are
not available with vp_vdpa in particular. virtio devices used to disable
them when not available even if the corresponding properties were
explicitly set to "on".

QEMU already has OnOffAuto type, which includes the "auto" value to let
it automatically decide the effective value. Convert feature properties
to OnOffAuto and set them "auto" by default to utilize it. This allows
QEMU to report an error if they are set "on" and the corresponding
features are not available.

Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
---
Changes in v4:
- Added patch "qapi: Do not consume a value if failed".
- Link to v3: https://lore.kernel.org/r/20250104-virtio-v3-0-63ef70e9ddf3@daynix.com

Changes in v3:
- Rebased.
- Link to v2: https://lore.kernel.org/r/20241022-virtio-v2-0-b2394236e053@daynix.com

Changes in v2:
- Expanded the message of patch "qdev-properties: Accept bool for
  OnOffAuto".
- Link to v1: https://lore.kernel.org/r/20241014-virtio-v1-0-e9ddf7a81891@daynix.com

---
Akihiko Odaki (4):
      qapi: Do not consume a value if failed
      qdev-properties: Accept bool for OnOffAuto
      qdev-properties: Add DEFINE_PROP_ON_OFF_AUTO_BIT64()
      virtio: Convert feature properties to OnOffAuto

 include/hw/qdev-properties.h |  18 ++++++++
 include/hw/virtio/virtio.h   |  38 +++++++++-------
 hw/core/machine.c            |   4 +-
 hw/core/qdev-properties.c    |  83 +++++++++++++++++++++++++++++++++-
 hw/virtio/virtio-bus.c       |  14 +++++-
 hw/virtio/virtio.c           |   4 +-
 qapi/qobject-input-visitor.c | 103 +++++++++++++++++++++++++++++--------------
 7 files changed, 207 insertions(+), 57 deletions(-)
---
base-commit: 38d0939b86e2eef6f6a622c6f1f7befda0146595
change-id: 20241013-virtio-164ea3f295c3

Best regards,
-- 
Akihiko Odaki <akihiko.odaki@daynix.com>



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

end of thread, other threads:[~2025-05-08  7:11 UTC | newest]

Thread overview: 31+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-08  6:17 [PATCH v4 0/4] virtio: Convert feature properties to OnOffAuto Akihiko Odaki
2025-01-08  6:17 ` [PATCH v4 1/4] qapi: Do not consume a value if failed Akihiko Odaki
2025-01-08  6:17 ` [PATCH v4 2/4] qdev-properties: Accept bool for OnOffAuto Akihiko Odaki
2025-01-10 11:09   ` Daniel P. Berrangé
2025-01-10 11:31     ` Akihiko Odaki
2025-01-10 12:16       ` Daniel P. Berrangé
2025-01-10 12:32         ` Akihiko Odaki
2025-02-06  9:43     ` Markus Armbruster
2025-02-05 15:29   ` Markus Armbruster
2025-02-06  6:01     ` Akihiko Odaki
2025-02-06  9:48       ` Markus Armbruster
2025-02-06 10:16         ` Akihiko Odaki
2025-02-06 13:23           ` BALATON Zoltan
2025-02-07  5:59             ` Akihiko Odaki
2025-02-07 12:31               ` Markus Armbruster
2025-02-07 12:46                 ` Daniel P. Berrangé
2025-05-05  6:42                   ` Akihiko Odaki
2025-02-07 12:15             ` Markus Armbruster
2025-05-06 15:37           ` Markus Armbruster
2025-05-06 16:25             ` BALATON Zoltan
2025-05-08  7:09             ` Akihiko Odaki
2025-01-08  6:17 ` [PATCH v4 3/4] qdev-properties: Add DEFINE_PROP_ON_OFF_AUTO_BIT64() Akihiko Odaki
2025-01-08  6:17 ` [PATCH v4 4/4] virtio: Convert feature properties to OnOffAuto Akihiko Odaki
2025-01-09 10:06   ` Lei Yang
2025-01-09 10:56   ` Philippe Mathieu-Daudé
2025-01-09 11:08     ` Akihiko Odaki
2025-01-09 11:13       ` Philippe Mathieu-Daudé
2025-01-10 11:23   ` Daniel P. Berrangé
2025-01-10 11:39     ` Akihiko Odaki
2025-01-09 12:53 ` [PATCH v4 0/4] " Markus Armbruster
2025-01-10  4:42   ` Akihiko Odaki

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