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/accel
Tom Lendacky 4cdc489eb9 i386/kvm: Prefault memory on page state change
A page state change is typically followed by an access of the page(s) and
results in another VMEXIT in order to map the page into the nested page
table. Depending on the size of page state change request, this can
generate a number of additional VMEXITs. For example, under SNP, when
Linux is utilizing lazy memory acceptance, memory is typically accepted in
4M chunks. A page state change request is submitted to mark the pages as
private, followed by validation of the memory. Since the guest_memfd
currently only supports 4K pages, each page validation will result in
VMEXIT to map the page, resulting in 1024 additional exits.

When performing a page state change, invoke KVM_PRE_FAULT_MEMORY for the
size of the page state change in order to pre-map the pages and avoid the
additional VMEXITs. This helps speed up boot times.

Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Link: https://lore.kernel.org/r/f5411c42340bd2f5c14972551edb4e959995e42b.1743193824.git.thomas.lendacky@amd.com
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
1 day ago
..
hvf accel/hvf: Include missing 'hw/core/cpu.h' header 1 month ago
kvm i386/kvm: Prefault memory on page state change 1 day ago
qtest qom: Have class_init() take a const data argument 1 month ago
stubs system/hvf: Expose hvf_enabled() to common code 1 month ago
tcg * target/i386/kvm: Intel TDX support 1 week ago
xen qom: Have class_init() take a const data argument 1 month ago
Kconfig hw/xen: Link XenPVH with GPEX PCIe bridge 3 months ago
accel-blocker.c include: Rename sysemu/ -> system/ 6 months ago
accel-common.c accel: Move target-agnostic code from accel-target.c -> accel-common.c 1 month ago
accel-internal.h accel: Include missing 'qemu/accel.h' header in accel-internal.h 1 month ago
accel-system.c accel: Implement accel_init_ops_interfaces() for both system/user mode 1 month ago
accel-target.c accel: Move target-agnostic code from accel-target.c -> accel-common.c 1 month ago
accel-user.c accel: Implement accel_init_ops_interfaces() for both system/user mode 1 month ago
dummy-cpus.c include: Rename sysemu/ -> system/ 6 months ago
meson.build accel: Move target-agnostic code from accel-target.c -> accel-common.c 1 month ago