qemu-e2k/hw
Eric Blake a73049b2a1 numa: Check for qemu_strtosz_MiB error
As shown in the previous commit, qemu_strtosz_MiB sometimes leaves the
result value untouched (we have to audit further to learn that in that
case, the QAPI generator says that visit_type_NumaOptions() will have
zero-initialized it), and sometimes leaves it with the value of a
partial parse before -EINVAL occurs because of trailing garbage.
Rather than blindly treating any string the user may throw at us as
valid, we should check for parse failures.

Fixes: cc001888 ("numa: fixup parsed NumaNodeOptions earlier", v2.11.0)
Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Hanna Czenczek <hreitz@redhat.com>
Message-Id: <20230522190441.64278-14-eblake@redhat.com>
2023-06-02 12:29:27 -05:00
..
9pfs hw/9pfs: use qemu_xxhash4 2023-06-01 11:05:05 -04:00
acpi
adc
alpha hw/alpha: Use MachineClass->default_nic in the alpha machine 2023-05-26 09:10:49 +02:00
arm hw/arm/sbsa-ref: add GIC node into DT 2023-05-30 15:50:17 +01:00
audio
avr
block block: add blk_io_plug_call() API 2023-06-01 07:34:03 -04:00
char hw/char/parallel: Move TYPE_ISA_PARALLEL to the header file 2023-05-22 09:44:48 +02:00
core numa: Check for qemu_strtosz_MiB error 2023-06-02 12:29:27 -05:00
cpu
cris
cxl hw/cxl: Introduce cxl_device_get_timestamp() utility function 2023-05-19 10:30:46 -04:00
display virtio-gpu: add a FIXME for virtio_gpu_load() 2023-05-28 13:08:25 +04:00
dma hw/dma/xilinx_axidma: Check DMASR.HALTED to prevent infinite loop. 2023-05-30 15:50:16 +01:00
gpio
hppa hw/hppa: Use MachineClass->default_nic in the hppa machine 2023-05-26 09:10:49 +02:00
hyperv
i2c
i386 aio: remove aio_disable_external() API 2023-05-30 17:37:26 +02:00
ide
input virtio-input: add a virtio-mulitouch device 2023-05-28 13:08:25 +04:00
intc
ipack
ipmi
isa hw/char/parallel: Move TYPE_ISA_PARALLEL to the header file 2023-05-22 09:44:48 +02:00
loongarch hw/loongarch64: Use MachineClass->default_nic in the virt machine 2023-05-26 09:10:49 +02:00
m68k
mem hw/cxl: Multi-Region CXL Type-3 Devices (Volatile and Persistent) 2023-05-19 01:36:09 -04:00
microblaze
mips hw/mips: Use MachineClass->default_nic in the virt machine 2023-05-26 09:10:49 +02:00
misc
net rtl8139: fix large_send_mss divide-by-zero 2023-05-23 15:20:15 +08:00
nios2
nubus
nvme
nvram
openrisc
pci hw/pci: Disable PCI_ERR_UNCOR_MASK register for machine type < 8.0 2023-05-19 10:30:46 -04:00
pci-bridge hw/pci-bridge: make building pcie-to-pci bridge configurable 2023-05-19 10:30:46 -04:00
pci-host hw/pci-host/pam: Make init_pam() usage more readable 2023-05-19 10:30:46 -04:00
pcmcia
ppc ppc/pegasos2: Change default CPU to 7457 2023-05-28 13:25:45 -03:00
rdma
remote
riscv
rtc
rx
s390x hw/s390x: Use MachineClass->default_nic in the s390x machine 2023-05-22 09:44:48 +02:00
scsi block: add blk_io_plug_call() API 2023-06-01 07:34:03 -04:00
sd
sensor
sh4 hw/sh4: Use MachineClass->default_nic in the sh4 r2d machine 2023-05-22 09:44:48 +02:00
smbios
sparc
sparc64 hw/sparc64/sun4u: Use MachineClass->default_nic and MachineClass->no_parallel 2023-05-22 09:44:48 +02:00
ssi
timer
tpm
tricore
usb usb/ohci: Set pad to 0 after frame update 2023-05-25 10:18:33 +02:00
vfio vfio/pci: Fix a use-after-free issue 2023-05-24 09:21:22 +02:00
virtio aio: remove aio_disable_external() API 2023-05-30 17:37:26 +02:00
watchdog
xen aio: remove aio_disable_external() API 2023-05-30 17:37:26 +02:00
xenpv
xtensa hw/xtensa: Use MachineClass->default_nic in the virt machine 2023-05-26 09:10:49 +02:00
Kconfig
meson.build