You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
David Hildenbrand
b430b51395
util/vfio-helpers.c: Use ram_block_discard_disable() in qemu_vfio_open_pci()
Currently, when using "nvme://" for a block device, like
-drive file=nvme://0000:01:00.0/1,if=none,id=drive0 \
-device virtio-blk,drive=drive0 \
VFIO may pin all guest memory, and discarding of RAM no longer works as
expected. I was able to reproduce this easily with my
01:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd
NVMe SSD Controller SM981/PM981/PM983
Similar to common VFIO, we have to disable it, making sure that:
a) virtio-balloon won't discard any memory ("silently disabled")
b) virtio-mem and nvme:// run mutually exclusive
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: "Michael S. Tsirkin" <mst@redhat.com>
Cc: Alex Williamson <alex.williamson@redhat.com>
Cc: Wei Yang <richardw.yang@linux.intel.com>
Cc: Dr. David Alan Gilbert <dgilbert@redhat.com>
Cc: Igor Mammedov <imammedo@redhat.com>
Cc: Pankaj Gupta <pankaj.gupta.linux@gmail.com>
Cc: Peter Xu <peterx@redhat.com>
Signed-off-by: David Hildenbrand <david@redhat.com>
Message-Id: <20201116105947.9194-1-david@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
6 years ago
..
arch_type.c
stubs: Add arch_type
7 years ago
bdrv-next-monitor-owned.c
Include qemu-common.h exactly where needed
7 years ago
blk-commit-all.c
Include qemu-common.h exactly where needed
7 years ago
blk-exp-close-all.c
block: move block exports to libblockdev
6 years ago
blockdev-close-all-bdrv-states.c
all: Clean up includes
11 years ago
change-state-handler.c
sysemu: Split sysemu/runstate.h off sysemu/sysemu.h
7 years ago
cmos.c
stubs/cmos: Use correct include
6 years ago
cpu-get-clock.c
cpu-timers, icount: new modules
6 years ago
cpu-synchronize-state.c
cpus: prepare new CpusAccel cpu accelerator interface
6 years ago
cpus-get-virtual-clock.c
cpus: prepare new CpusAccel cpu accelerator interface
6 years ago
dump.c
Include qemu-common.h exactly where needed
7 years ago
error-printf.c
Include qemu-common.h exactly where needed
7 years ago
fdset.c
monitor: simplify functions for getting a dup'd fdset entry
6 years ago
fw_cfg.c
hw/nvram/fw_cfg: Add fw_cfg_arch_key_name()
7 years ago
gdbstub.c
Clean up includes some more
11 years ago
get-vm-name.c
stubs: Clean up includes
11 years ago
icount.c
icount: rename functions to be consistent with the module name
6 years ago
io_uring.c
stubs: add stubs for io_uring interface
7 years ago
iothread-lock.c
Include qemu-common.h exactly where needed
7 years ago
iothread.c
aio: introduce qemu_get_current_aio_context
10 years ago
is-daemonized.c
Include qemu-common.h exactly where needed
7 years ago
isa-bus.c
stubs: add isa_create_simple
6 years ago
linux-aio.c
linux-aio: properly bubble up errors from initialization
8 years ago
machine-init-done.c
Include qemu-common.h exactly where needed
7 years ago
meson.build
* fix --disable-tcg builds (Claudio)
6 years ago
migr-blocker.c
Include qemu-common.h exactly where needed
7 years ago
monitor-core.c
monitor: Make current monitor a per-coroutine property
6 years ago
monitor.c
hmp: Fail gracefully if chardev is already in use
7 years ago
pci-bus.c
stubs: add pci_create_simple
6 years ago
pci-host-piix.c
hw/pci-host/piix: Move i440FX declarations to hw/pci-host/i440fx.h
7 years ago
qemu-timer-notify-cb.c
cpu-timers, icount: new modules
6 years ago
qmp_memory_device.c
qom/object: Move Object typedef to 'qemu/typedefs.h'
6 years ago
qtest.c
cpu-timers, icount: new modules
6 years ago
ram-block.c
util/vfio-helpers.c: Use ram_block_discard_disable() in qemu_vfio_open_pci()
6 years ago
ramfb.c
Revert "hw/display/ramfb: initialize fw-config space with xres/ yres"
6 years ago
replay-tools.c
replay: do not build if TCG is not available
6 years ago
replay.c
replay: do not build if TCG is not available
6 years ago
runstate-check.c
sysemu: Split sysemu/runstate.h off sysemu/sysemu.h
7 years ago
semihost.c
semihosting: add qemu_semihosting_console_inc for SYS_READC
7 years ago
set-fd-handler.c
Include qemu-common.h exactly where needed
7 years ago
sysbus.c
stubs: Clean up includes
11 years ago
target-get-monitor-def.c
Clean up includes some more
11 years ago
target-monitor-defs.c
Clean up includes some more
11 years ago
tpm.c
Revert "tpm: Clean up error reporting in tpm_init_tpmdev()"
6 years ago
trace-control.c
trace: remove global 'uint16 dstate[]' array
10 years ago
uuid.c
qapi: Restrict query-uuid command to machine code
6 years ago
vm-stop.c
sysemu: Split sysemu/runstate.h off sysemu/sysemu.h
7 years ago
vmgenid.c
qapi: Restrict query-vm-generation-id command to machine code
6 years ago
vmstate.c
migration: Change SaveStateEntry.instance_id into uint32_t
7 years ago
win32-kbd-hook.c
ui/win32-kbd-hook: handle AltGr in a hook procedure
6 years ago
xen-hw-stub.c
stubs/xen-hw-stub: drop xenstore_store_pv_console_info stub
6 years ago