qemu-e2k/softmmu
Peter Maydell 1518562b49 qdev: Support marking individual buses as 'full'
By default, QEMU will allow devices to be plugged into a bus up to
the bus class's device count limit.  If the user creates a device on
the command line or via the monitor and doesn't explicitly specify
the bus to plug it in, QEMU will plug it into the first non-full bus
that it finds.

This is fine in most cases, but some machines have multiple buses of
a given type, some of which are dedicated to on-board devices and
some of which have an externally exposed connector for user-pluggable
devices. One example is I2C buses.

Provide a new function qbus_mark_full() so that a machine model can
mark this kind of "internal only" bus as 'full' after it has created
all the devices that should be plugged into that bus. The "find a
non-full bus" algorithm will then skip the internal-only bus when
looking for a place to plug in user-created devices.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20210903151435.22379-2-peter.maydell@linaro.org
2021-09-13 21:01:08 +01:00
..
arch_init.c meson.build: Define QEMU_ARCH in config-target.h 2021-08-26 17:02:00 +01:00
balloon.c
bootdevice.c
cpu-throttle.c
cpu-timers.c
cpus.c misc: Remove redundant new line in perror() 2021-07-09 18:42:46 +02:00
datadir.c
device_tree.c
dma-helpers.c
globals.c
icount.c
ioport.c
main.c
memory_mapping.c
memory.c Trivial patches pull request 20210709 2021-07-11 18:49:25 +01:00
meson.build
physmem.c softmmu/physmem.c: Check return value from realpath() 2021-08-26 17:02:00 +01:00
qdev-monitor.c qdev: Support marking individual buses as 'full' 2021-09-13 21:01:08 +01:00
qemu-seccomp.c seccomp: don't block getters for resource control syscalls 2021-07-14 14:15:52 +01:00
qtest.c
rtc.c
runstate-action.c
runstate.c runstate: Initialize Error * to NULL 2021-06-15 17:17:09 +02:00
timers-state.h qemu/atomic: Add aligned_{int64,uint64}_t types 2021-07-21 07:45:38 -10:00
tpm.c
trace-events memory: Display MemoryRegion name in read/write ops trace events 2021-07-09 18:42:46 +02:00
trace.h
vl.c softmmu/vl: Deprecate the -sdl and -curses option 2021-09-06 10:00:14 +02:00