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
hisilicon
Kconfig -rw-r--r-- 4.1 KB
Makefile -rw-r--r-- 691 bytes
arm-cci.c -rw-r--r-- 48.0 KB
arm-ccn.c -rw-r--r-- 45.6 KB
arm-cmn.c -rw-r--r-- 44.3 KB
arm_dmc620_pmu.c -rw-r--r-- 20.7 KB
arm_dsu_pmu.c -rw-r--r-- 22.5 KB
arm_pmu.c -rw-r--r-- 23.0 KB
arm_pmu_acpi.c -rw-r--r-- 8.1 KB
arm_pmu_platform.c -rw-r--r-- 5.4 KB
arm_smmuv3_pmu.c -rw-r--r-- 25.2 KB
arm_spe_pmu.c -rw-r--r-- 33.6 KB
fsl_imx8_ddr_perf.c -rw-r--r-- 20.6 KB
qcom_l2_pmu.c -rw-r--r-- 26.4 KB
qcom_l3_pmu.c -rw-r--r-- 24.0 KB
thunderx2_pmu.c -rw-r--r-- 27.5 KB
xgene_pmu.c -rw-r--r-- 56.3 KB

back to top