Kconfig vs. default devices
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest10 patches 14 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/10 | vl.c: Do not add isa-parallel if it's not presentsoftmmu/ | +2 | 2 replies | |
| 2/10 | hw/i386: Select E1000E for q35hw/ | +1 | 1 reply | |
| 3/10 | hw/i386: Select VGA_PCI in Kconfighw/ | +1 | 2 replies | |
| 4/10 | hw/i386: Select E1000_PCI for i440fxhw/ | +1 | 1 reply | |
| 5/10 | hw/arm: Select VIRTIO_NET for virt machinehw/ | +2 | 1 reply | |
| 6/10 | hw/arm: Select VIRTIO_BLK for virt machinehw/ | +1 | 2 replies | |
| 7/10 | hw/arm: Select XLNX_USB_SUBSYS for xlnx-zcu102 machinehw/ | +1 | 1 reply | |
| 8/10 | hw/arm: Select GICV3_TCG for sbsa-ref machinehw/ | +1 | 1 reply | |
| 9/10 | hw/arm: Select e1000e for sbsa-ref machinehw/ | +1 | 0 replies | |
| 10/10 | hw/arm: Select VGA_PCI for sbsa-ref machinehw/ | +1 | 1 reply |
Reviews trailers per patch
5 of 10 patches have a Reviewed-by or Acked-by.
| Patch | Peter Maydell | Thomas Huth |
|---|---|---|
| 1/10 | ||
| 2/10 | R-b | |
| 3/10 | ||
| 4/10 | R-b | |
| 5/10 | R-b | |
| 6/10 | ||
| 7/10 | ||
| 8/10 | R-b | |
| 9/10 | ||
| 10/10 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 00/10] Kconfig vs. default devices
We currently have a situation where disabling a Kconfig might result in a runtime error when QEMU selects the corresponding device as a default value for an option. But first a disambiguation:
Kconfig default::
a device "Foo" for which there's "config FOO default y" or "config X imply FOO" in Kconfig.
QEMU hardcoded default::
a fallback; a device "Foo" that is chosen in case no corresponding option is given in the command line.
The issue I'm trying to solve is that there is no link between the two "defaults" above, which means that when the user at build time de-selects a Kconfig default, either via configs/devices/*/*.mak or --without-default-devices, the subsequent invocation at runtime might continue to try to create the missing device due to QEMU defaults.
Even a experienced user that tweaks the build via .mak files is not required to know about what QEMU developers chose to use as fallbacks in the code. Moreover, the person/entity that builds the code might not be the same that runs it, which makes it even more confusing.
We do have -nodefaults in the command line, but that doesn't include all types of fallbacks that might be set in the code. It also does not cover individual CONFIGs and their respective use as a fallback in the code.
So my proposal here is actually simple: Let's make sure every fallback device creation *without* a validation check gets a hard dependency in Kconfig. A validation check being something like:
if (has_defaults && object_get_class("foo") {
create_foo();
}
Fabiano Rosas (10):
vl.c: Do not add isa-parallel if it's not present hw/i386: Select E1000E for q35
hw/i386: Select VGA_PCI in Kconfig
hw/i386: Select E1000_PCI for i440fx
hw/arm: Select VIRTIO_NET for virt machine hw/arm: Select VIRTIO_BLK for virt machine hw/arm: Select XLNX_USB_SUBSYS for xlnx-zcu102 machine hw/arm: Select GICV3_TCG for sbsa-ref machine hw/arm: Select e1000e for sbsa-ref machine hw/arm: Select VGA_PCI for sbsa-ref machine
hw/arm/Kconfig | 7 +++++++ hw/i386/Kconfig | 6 +++--- softmmu/vl.c | 3 ++- 3 files changed, 12 insertions(+), 4 deletions(-)
Signature · 1 line
2.35.3