qemu-e2k/hw
Philippe Mathieu-Daudé 184256d261 hw/virtio/virtio-pmem: Replace impossible check by assertion
The get_memory_region() handler is used when (un)plugging the
device, which can only occur *after* it is realized.

virtio_pmem_realize() ensure the instance can not be realized
without 'memdev'. Remove the superfluous check, replacing it
by an assertion.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
Message-Id: <20231017140150.44995-2-philmd@linaro.org>
2023-10-20 14:46:07 +02:00
..
9pfs
acpi hw/acpi/pcihp: Clean up global variable shadowing in acpi_pcihp_init() 2023-10-20 14:46:07 +02:00
adc
alpha
arm hw/arm/virt: Realize ARM_GICV2M sysbus device before accessing it 2023-10-20 14:46:07 +02:00
audio hw/audio/es1370: trace lost interrupts 2023-10-10 12:31:05 +00:00
avr
block swim: update IWM/ISM register block decoding 2023-10-06 10:33:43 +02:00
char hw/char: riscv_htif: replace exit calls with proper shutdown 2023-10-12 12:35:36 +10:00
core memory: follow Error API guidelines 2023-10-20 14:46:06 +02:00
cpu
cris
cxl hw/cxl: Fix local variable shadowing of cap_hdrs 2023-10-06 10:56:54 +02:00
display ramfb-standalone: add migration support 2023-10-18 10:10:49 +02:00
dma
gpio
hppa
hyperv
i2c
i386 hw/acpi: Realize ACPI_GED sysbus device before accessing it 2023-10-20 14:46:07 +02:00
ide hw/ide/ahci: Clean up local variable shadowing 2023-10-06 13:16:57 +02:00
input
intc hw/intc/spapr_xive: Do not use SysBus API to map local MMIO region 2023-10-20 14:46:07 +02:00
ipack
ipmi
isa hw/isa: Realize ISA bridge device before accessing it 2023-10-20 14:46:07 +02:00
loongarch hw/acpi: Realize ACPI_GED sysbus device before accessing it 2023-10-20 14:46:07 +02:00
m68k q800: add alias for MacOS toolbox ROM at 0x40000000 2023-10-06 10:33:43 +02:00
mem memory-device,vhost: Support automatic decision on the number of memslots 2023-10-12 14:15:22 +02:00
microblaze
mips hw/mips: Merge 'hw/mips/cpudevs.h' with 'target/mips/cpu.h' 2023-10-20 14:46:07 +02:00
misc hw/misc/allwinner-dramc: Do not use SysBus API to map local MMIO region 2023-10-20 14:46:07 +02:00
net hw/net/vhost_net: Silence compiler warning when compiling with -Wshadow 2023-10-06 10:56:54 +02:00
nios2
nubus
nvme
nvram
openrisc
pci hw/pci: Clean up global variable shadowing of address_space_io variable 2023-10-20 14:46:07 +02:00
pci-bridge hw/pci-bridge/cxl-upstream: Add serial number extended capability support 2023-10-04 18:15:06 -04:00
pci-host hw/pci-host/bonito: Do not use SysBus API to map local MMIO region 2023-10-20 14:46:07 +02:00
pcmcia
ppc hw/ppc/pnv: Do not use SysBus API to map local MMIO region 2023-10-20 14:46:07 +02:00
rdma hw/rdma: Deprecate the pvrdma device and the rdma subsystem 2023-10-12 14:11:44 +02:00
remote hw/remote: move stub vfu_object_set_bus_irq out of stubs/ 2023-10-18 10:01:01 +02:00
riscv target/riscv: move KVM only files to kvm subdir 2023-10-12 12:20:24 +10:00
rtc
rx
s390x hw/s390x/css-bridge: Realize sysbus device before accessing it 2023-10-20 14:46:07 +02:00
scsi virtio,pci: features, cleanups 2023-10-05 09:01:01 -04:00
sd hw/sd/sdhci: Block Size Register bits [14:12] is lost 2023-10-20 14:46:06 +02:00
sensor
sh4
smbios
sparc
sparc64 hw/sparc64/ebus: Access memory regions via pci_address_space_io() 2023-10-20 14:46:07 +02:00
ssi
timer
tpm
tricore
ufs hw/ufs: Fix code coverity issues 2023-10-13 13:56:28 +09:00
usb hw/usb: Silence compiler warnings in USB code when compiling with -Wshadow 2023-10-06 13:27:48 +02:00
vfio hw/vfio: add ramfb migration support 2023-10-18 10:10:49 +02:00
virtio hw/virtio/virtio-pmem: Replace impossible check by assertion 2023-10-20 14:46:07 +02:00
watchdog
xen hw/xen: cleanup sourcesets 2023-10-18 10:01:01 +02:00
xenpv
xtensa
Kconfig
meson.build