Revision 32ffa4f71e10009498ae6b54da65ab316db967bd authored by Axel Rasmussen on 19 May 2021, 20:03:33 UTC, committed by Paolo Bonzini on 27 May 2021, 11:45:55 UTC
This is a preparatory commit needed before we can use different kinds of
backing pages for guest memory.

Previously, we used perf_test_args.host_page_size, which is the host's
native page size (commonly 4K). For VM_MEM_SRC_ANONYMOUS this turns out
to be okay, but in a follow-up commit we want to allow using different
kinds of backing memory.

Take VM_MEM_SRC_ANONYMOUS_HUGETLB for example. Without this change, if
we used that backing page type, when we issued a UFFDIO_COPY ioctl we'd
only do so with 4K, rather than the full 2M of a backing hugepage. In
this case, UFFDIO_COPY returns -EINVAL (__mcopy_atomic_hugetlb checks
the size).

Signed-off-by: Axel Rasmussen <axelrasmussen@google.com>
Message-Id: <20210519200339.829146-5-axelrasmussen@google.com>
Reviewed-by: Ben Gardon <bgardon@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
1 parent 25408e5
History
File Mode Size
acpica
apei
arm64
dptf
nfit
numa
pmic
x86
Kconfig -rw-r--r-- 17.2 KB
Makefile -rw-r--r-- 3.4 KB
ac.c -rw-r--r-- 8.3 KB
acpi_adxl.c -rw-r--r-- 4.7 KB
acpi_amba.c -rw-r--r-- 3.0 KB
acpi_apd.c -rw-r--r-- 6.3 KB
acpi_cmos_rtc.c -rw-r--r-- 2.0 KB
acpi_configfs.c -rw-r--r-- 6.5 KB
acpi_dbg.c -rw-r--r-- 17.8 KB
acpi_extlog.c -rw-r--r-- 8.3 KB
acpi_fpdt.c -rw-r--r-- 6.5 KB
acpi_ipmi.c -rw-r--r-- 16.4 KB
acpi_lpat.c -rw-r--r-- 4.0 KB
acpi_lpit.c -rw-r--r-- 4.2 KB
acpi_lpss.c -rw-r--r-- 35.3 KB
acpi_memhotplug.c -rw-r--r-- 9.2 KB
acpi_pad.c -rw-r--r-- 11.8 KB
acpi_platform.c -rw-r--r-- 4.7 KB
acpi_pnp.c -rw-r--r-- 13.6 KB
acpi_processor.c -rw-r--r-- 22.7 KB
acpi_tad.c -rw-r--r-- 15.3 KB
acpi_video.c -rw-r--r-- 59.0 KB
acpi_watchdog.c -rw-r--r-- 4.5 KB
battery.c -rw-r--r-- 37.5 KB
bgrt.c -rw-r--r-- 2.8 KB
blacklist.c -rw-r--r-- 3.7 KB
bus.c -rw-r--r-- 35.4 KB
button.c -rw-r--r-- 17.0 KB
container.c -rw-r--r-- 2.6 KB
cppc_acpi.c -rw-r--r-- 40.2 KB
custom_method.c -rw-r--r-- 2.1 KB
debugfs.c -rw-r--r-- 391 bytes
device_pm.c -rw-r--r-- 37.0 KB
device_sysfs.c -rw-r--r-- 15.9 KB
dock.c -rw-r--r-- 16.3 KB
ec.c -rw-r--r-- 57.1 KB
ec_sys.c -rw-r--r-- 3.1 KB
event.c -rw-r--r-- 4.2 KB
evged.c -rw-r--r-- 4.6 KB
fan.c -rw-r--r-- 12.3 KB
glue.c -rw-r--r-- 8.9 KB
hed.c -rw-r--r-- 1.9 KB
internal.h -rw-r--r-- 9.1 KB
ioapic.c -rw-r--r-- 5.9 KB
irq.c -rw-r--r-- 9.0 KB
nvs.c -rw-r--r-- 4.6 KB
osi.c -rw-r--r-- 13.1 KB
osl.c -rw-r--r-- 42.9 KB
pci_irq.c -rw-r--r-- 13.1 KB
pci_link.c -rw-r--r-- 22.9 KB
pci_mcfg.c -rw-r--r-- 9.1 KB
pci_root.c -rw-r--r-- 25.5 KB
pci_slot.c -rw-r--r-- 4.7 KB
platform_profile.c -rw-r--r-- 4.1 KB
power.c -rw-r--r-- 25.2 KB
pptt.c -rw-r--r-- 23.5 KB
proc.c -rw-r--r-- 3.4 KB
processor_core.c -rw-r--r-- 9.1 KB
processor_driver.c -rw-r--r-- 8.8 KB
processor_idle.c -rw-r--r-- 34.2 KB
processor_pdc.c -rw-r--r-- 4.6 KB
processor_perflib.c -rw-r--r-- 19.1 KB
processor_thermal.c -rw-r--r-- 5.9 KB
processor_throttling.c -rw-r--r-- 30.6 KB
property.c -rw-r--r-- 36.8 KB
reboot.c -rw-r--r-- 2.0 KB
resource.c -rw-r--r-- 22.6 KB
sbs.c -rw-r--r-- 19.1 KB
sbshc.c -rw-r--r-- 7.1 KB
sbshc.h -rw-r--r-- 946 bytes
scan.c -rw-r--r-- 61.1 KB
sleep.c -rw-r--r-- 25.8 KB
sleep.h -rw-r--r-- 972 bytes
spcr.c -rw-r--r-- 5.8 KB
sysfs.c -rw-r--r-- 26.7 KB
tables.c -rw-r--r-- 22.9 KB
thermal.c -rw-r--r-- 31.0 KB
tiny-power-button.c -rw-r--r-- 1.2 KB
utils.c -rw-r--r-- 24.9 KB
video_detect.c -rw-r--r-- 14.7 KB
wakeup.c -rw-r--r-- 4.6 KB

back to top