You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qemu/include/hw
Philippe Mathieu-Daudé b82e7a2a1d hw/sd/sdbus: Provide buffer size to sdbus_do_command()
We provide to sdbus_do_command() a pointer to a buffer to be
filled with a varying number of bytes. By not providing the
buffer size, the callee can not check the buffer is big enough.
Pass the buffer size as argument to follow good practices.

sdbus_do_command() doesn't return any error, only the size filled
in the buffer. Convert the returned type to unsigned and remove
the few unreachable lines in callers.

This allow to check for possible overflow in sd_do_command().

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20250804133406.17456-4-philmd@linaro.org>
6 days ago
..
acpi hw/arm/virt: Minor code reshuffling in create_acpi_ged 4 weeks ago
adc hw/adc: Remove MAX111X device 10 months ago
arm Accelerators patches 4 weeks ago
audio virtio-snd: rewrite invalid tx/rx message handling 1 year ago
block hw/block: Drop unused nand.c 2 months ago
char MAX78000: UART Implementation 1 month ago
core cpus: Document CPUState::vcpu_dirty field 1 month ago
cpu
cxl hw/cxl: mailbox-utils: 0x5604 - FMAPI Initiate DC Add 4 weeks ago
display Load ramfb vgabios on x86 only. 3 weeks ago
dma include/hw/dma/xlnx_dpdma: Remove dependency on console.h 3 months ago
firmware hw/smbios: Remove 'uuid_encoded' argument from smbios_set_defaults() 1 year ago
fsi include/system: Move exec/memory.h to system/memory.h 4 months ago
gpio hw/gpio/aspeed: Fix definition of AspeedGPIOClass 2 months ago
hyperv hw/hyperv/hyperv.h: header cleanup 3 months ago
i2c include/hw: replace FSF postal address with licenses URL 2 months ago
i386 Accelerators patches 4 weeks ago
ide include/system: Move exec/ioport.h to system/ioport.h 4 months ago
input hw/input: Remove lm832x device 10 months ago
intc target-arm queue: 4 weeks ago
ipack hw/ipack: Remove legacy qemu_allocate_irqs() use 6 months ago
ipmi include/system: Move exec/memory.h to system/memory.h 4 months ago
isa include/system: Move exec/ioport.h to system/ioport.h 4 months ago
loongarch hw/loongarch/virt: Remove global variables about memmap tables 2 months ago
m68k include/system: Move exec/memory.h to system/memory.h 4 months ago
mem include/system: Move exec/memory.h to system/memory.h 4 months ago
mips include/system: Move exec/memory.h to system/memory.h 4 months ago
misc MAX78000: AES implementation 1 month ago
net include/system: Move exec/memory.h to system/memory.h 4 months ago
nubus include/system: Move exec/address-spaces.h to system/address-spaces.h 4 months ago
nvram hw/nvram/fw_cfg: Remove legacy FW_CFG_ORDER_OVERRIDE 2 months ago
openrisc hw/openrisc: Support monitor dumpdtb command 6 months ago
pci pci: Add a memory attribute for pre-translated DMA operations 4 weeks ago
pci-bridge hw/pci-bridge/cxl-upstream: Add properties to control link speed and width 9 months ago
pci-host hw/pci-host/gpex-acpi: Use GED acpi pcihp property 4 weeks ago
ppc ppc/xive2: Implement PHYS ring VP push TIMA op 3 weeks ago
remote include/system: Move exec/memory.h to system/memory.h 4 months ago
riscv hw/riscv: Initial support for BOSC's Xiangshan Kunminghu FPGA prototype 1 month ago
rtc hw/i386: move rtc-reset-reinjection command out of hw/rtc 1 year ago
rx hw/rx/rx62n: Only call qdev_get_gpio_in() when necessary 2 years ago
s390x hw/s390x: add Control-Program Identification to QOM 2 months ago
scsi esp.c: only allow ESP commands permitted in the current asc_mode 4 weeks ago
sd hw/sd/sdbus: Provide buffer size to sdbus_do_command() 6 days ago
sensor hw/sensor: Add IC_DEVICE_ID to ISL voltage regulators 3 years ago
sh4 include/system: Move exec/memory.h to system/memory.h 4 months ago
southbridge include/system: Move exec/memory.h to system/memory.h 4 months ago
sparc hw/sparc/grlib: split out the headers for each peripherals 2 years ago
ssi hw/ssi/pnv_spi: Put a limit to RDR match failures 5 months ago
timer include/hw: replace FSF postal address with licenses URL 2 months ago
tricore include/system: Move exec/address-spaces.h to system/address-spaces.h 4 months ago
uefi hw/uefi: add include/hw/uefi/var-service.h 5 months ago
usb hw/usb/hcd-dwc3: Align global registers size with Linux 6 months ago
vfio vfio/migration: Max in-flight VFIO device state buffers size limit 4 weeks ago
virtio UI-related for 10.1 4 weeks ago
vmapple hw/vmapple/virtio-blk: Add support for apple virtio-blk 5 months ago
watchdog aspeed/wdt: Add AST2700 support 1 year ago
xen hw/xen/arch_hvm: Unify x86 and ARM variants 4 weeks ago
xtensa include/system: Move exec/memory.h to system/memory.h 4 months ago
boards.h acpi: Add machine option to disable SPCR table 4 weeks ago
clock.h clock: clear callback on unparent 8 months ago
elf_ops.h.inc hw/elf_ops: Rename elf_ops.h -> elf_ops.h.inc 1 year ago
fw-path-provider.h
hotplug.h pci: fix 'hotplugglable' property behavior 2 years ago
hw.h meson: Only allow CONFIG_USER_ONLY from certain source sets 4 months ago
irq.h hw/irq: Introduce qemu_init_irqs() helper 6 months ago
loader-fit.h hw/mips/boston: Support dumpdtb monitor commands 6 months ago
loader.h hw/nvram/fw_cfg: Remove legacy FW_CFG_ORDER_OVERRIDE 2 months ago
nmi.h
or-irq.h hw: Replace qemu_or_irq typedef by OrIRQState 2 years ago
platform-bus.h
ptimer.h ptimer: Rename PTIMER_POLICY_DEFAULT to PTIMER_POLICY_LEGACY 3 years ago
qdev-clock.h
qdev-core.h hw/qdev: Factor qdev_hotunplug_allowed() out 7 months ago
qdev-dma.h
qdev-properties-system.h hw/display: Allow injection of virtio-gpu EDID name 4 weeks ago
qdev-properties.h qdev-properties: Add DEFINE_PROP_ON_OFF_AUTO_BIT64() 4 weeks ago
register.h include/system: Move exec/memory.h to system/memory.h 4 months ago
registerfields.h hw/registerfields: Add shared fields macros 3 years ago
resettable.h reset: Add RESET_TYPE_WAKEUP 11 months ago
stream.h
sysbus.h hw/core/sysbus: Introduce sysbus_mmio_map_name() helper 4 weeks ago
usb.h include/system: Move exec/memory.h to system/memory.h 4 months ago
vmstate-if.h