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
ieee80211
Kconfig -rw-r--r-- 279 bytes
Makefile -rw-r--r-- 941 bytes
authors -rw-r--r-- 42 bytes
changes -rw-r--r-- 78 bytes
r8180_93cx6.c -rw-r--r-- 3.7 KB
r8180_93cx6.h -rw-r--r-- 835 bytes
r8190_rtl8256.c -rw-r--r-- 10.0 KB
r8190_rtl8256.h -rw-r--r-- 746 bytes
r8192U.h -rw-r--r-- 30.9 KB
r8192U_core.c -rw-r--r-- 134.0 KB
r8192U_dm.c -rw-r--r-- 114.4 KB
r8192U_dm.h -rw-r--r-- 6.0 KB
r8192U_hw.h -rw-r--r-- 9.0 KB
r8192U_wx.c -rw-r--r-- 25.5 KB
r8192U_wx.h -rw-r--r-- 833 bytes
r819xU_cmdpkt.c -rw-r--r-- 16.4 KB
r819xU_cmdpkt.h -rw-r--r-- 4.5 KB
r819xU_firmware.c -rw-r--r-- 10.1 KB
r819xU_firmware.h -rw-r--r-- 371 bytes
r819xU_firmware_img.c -rw-r--r-- 10.8 KB
r819xU_firmware_img.h -rw-r--r-- 697 bytes
r819xU_phy.c -rw-r--r-- 55.1 KB
r819xU_phy.h -rw-r--r-- 2.7 KB
r819xU_phyreg.h -rw-r--r-- 4.3 KB

back to top