qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/3] virtio: Convert feature properties to OnOffAuto
@ 2024-10-22  4:50 Akihiko Odaki
  2024-10-22  4:50 ` [PATCH v2 1/3] qdev-properties: Accept bool for OnOffAuto Akihiko Odaki
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Akihiko Odaki @ 2024-10-22  4:50 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
  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 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 (3):
      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 ++-
 6 files changed, 138 insertions(+), 23 deletions(-)
---
base-commit: 7e3b6d8063f245d27eecce5aabe624b5785f2a77
change-id: 20241013-virtio-164ea3f295c3

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



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

end of thread, other threads:[~2024-11-09 10:42 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-22  4:50 [PATCH v2 0/3] virtio: Convert feature properties to OnOffAuto Akihiko Odaki
2024-10-22  4:50 ` [PATCH v2 1/3] qdev-properties: Accept bool for OnOffAuto Akihiko Odaki
2024-10-28 16:49   ` Daniel P. Berrangé
2024-10-31  7:21     ` Akihiko Odaki
2024-11-01 11:41       ` Daniel P. Berrangé
2024-11-06  7:59         ` Akihiko Odaki
2024-10-22  4:50 ` [PATCH v2 2/3] qdev-properties: Add DEFINE_PROP_ON_OFF_AUTO_BIT64() Akihiko Odaki
2024-10-28 16:50   ` Daniel P. Berrangé
2024-10-31  7:21     ` Akihiko Odaki
2024-11-01 11:44       ` Daniel P. Berrangé
2024-11-09 10:41         ` Akihiko Odaki
2024-10-22  4:50 ` [PATCH v2 3/3] virtio: Convert feature properties to OnOffAuto 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).