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/hw/core
Daniel P. Berrangé 235560b3a7 hw/core/machine: diagnose wrapping of maxmem
The 'maxmem' parameter parsed on the command line is held in uint64_t
and then assigned to the MachineState field that is 'ram_addr_t'. This
assignment will wrap on 32-bit hosts, silently changing the user's
config request if it were over-sized.

Improve the existing diagnositics for validating 'size', and add the
same diagnostics for 'maxmem'

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Tested-by: Ani Sinha <anisinha@redhat.com>
Reviewed-by: Ani Sinha <anisinha@redhat.com>
Message-ID: <20241127114057.255995-1-berrange@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
1 day ago
..
Kconfig hw/core: Add Enclave Image Format (EIF) related helpers 1 month ago
bus.c hw/core: Remove transitional infrastructure from BusClass 10 months ago
clock-vmstate.c hw/core: Constify VMState 11 months ago
clock.c hw/clock: Expose 'qtest-clock-period' QOM property for QTests 2 months ago
cpu-common.c include: Move QemuLockCnt APIs to their own header 2 months ago
cpu-sysemu.c exec: Declare target_words_bigendian() in 'exec/tswap.h' 7 months ago
eif.c eif: cope with huge section sizes 4 weeks ago
eif.h hw/core: Add Enclave Image Format (EIF) related helpers 1 month ago
fw-path-provider.c Include qemu/module.h where needed, drop it from qemu-common.h 6 years ago
generic-loader.c exec: Declare target_words_bigendian() in 'exec/tswap.h' 7 months ago
gpio.c hw/qdev: Rename qdev_connect_gpio_out*() 'input_pin' parameter 3 years ago
guest-loader.c Mark remaining global TypeInfo instances as const 3 years ago
guest-loader.h hw/core: implement a guest-loader to support static hypervisor guests 4 years ago
hotplug.c call HotplugHandler->plug() as the last step in device realization 6 years ago
irq.c hw: fix memory leak in IRQState allocation 2 months ago
loader-fit.c hw/core: ensure kernel_end never gets used undefined 5 months ago
loader.c loader: remove load_image_gzipped function as its not used anywhere 5 months ago
machine-hmp-cmds.c hw/core: Introduce module-id as the topology subindex 7 months ago
machine-qmp-cmds.c hw/intc: Introduce x-query-interrupt-controllers QMP command 6 months ago
machine-smp.c hw/core/machine-smp: Fix error message parameter 2 weeks ago
machine.c hw/core/machine: diagnose wrapping of maxmem 1 day ago
meson.build hw/core: Add Enclave Image Format (EIF) related helpers 1 month ago
nmi.c hw/core: Improve error message when machine doesn't provide NMIs 2 years ago
null-machine.c Do not include sysemu/sysemu.h if it's not really necessary 4 years ago
numa.c hw/core: replace assert(0) with g_assert_not_reached() 3 months ago
or-irq.c hw: Use device_class_set_legacy_reset() instead of opencoding 3 months ago
platform-bus.c platform-bus: fix refcount leak 3 months ago
ptimer.c hw/core/ptimer: fix timer zero period condition for freq > 1GHz 4 months ago
qdev-clock.c Drop more useless casts from void * to pointer 2 years ago
qdev-fw.c Include hw/qdev-properties.h less 5 years ago
qdev-hotplug.c hw/core: Extract hotplug-related functions to qdev-hotplug.c 3 years ago
qdev-prop-internal.h qdev: Make qdev_propinfo_get_uint16() static 4 years ago
qdev-properties-system.c qdev: Fix set_pci_devfn() to visit option only once 1 week ago
qdev-properties.c qdev: make properties array "const" 4 weeks ago
qdev.c qom: let object_new use a module if the type is not present 1 month ago
register.c hw/core/register: Add more 64-bit utilities 3 years ago
reset.c reset: Use ResetType for qemu_devices_reset() and MachineClass::reset() 2 months ago
resetcontainer.c hw/core: Add ResetContainer which holds objects implementing Resettable 9 months ago
resettable.c hw/core/resettable: Remove transitional_function machinery 3 months ago
split-irq.c qdev: set properties with device_class_set_props() 5 years ago
stream.c hw/core/stream: Rename StreamSlave as StreamSink 4 years ago
sysbus-fdt.c hw/core: Tidy up unnecessary casting away of const 2 years ago
sysbus.c hw/sysbus: Remove unused sysbus_mmio_unmap 3 months ago
trace-events trace-events: remove the remaining vcpu trace events 2 years ago
trace.h trace: switch position of headers to what Meson requires 4 years ago
uboot_image.h license: Update deprecated SPDX tag GPL-2.0+ to GPL-2.0-or-later 3 months ago
vm-change-state-handler.c qdev: Add qdev_add_vm_change_state_handler_full() 1 year ago
vmstate-if.c vmstate: add qom interface to get id 5 years ago