commit | cb03ec64303ba99dd784d1ac1fbac201bd53fd9c | [log] [tgz] |
---|---|---|
author | Chuanxiao Dong <chuanxiao.dong@intel.corp-partner.google.com> | Thu Jan 20 08:25:38 2022 +0800 |
committer | David Stevens <stevensd@chromium.org> | Sat Jan 22 06:46:59 2022 +0000 |
tree | 4e7b46306fe1f7f4ae52e5d6071d35a12e909188 | |
parent | a8d427b9b1b0508446ad385a361e7d5fbd794f0f [diff] |
Set rlimit if virtio IOMMU or coIOMMU is used vIOMMU will dynamically pin VM's memory and in the extreme case they might pin the entire VM's memory. RLIMIT_MEMLOCK will control how much memory can be pinned by the process. So set the RLIMIT_MEMLOCK to be allow pinning the entire VM's memory in the extreme case. BUG=b:188481989 TEST=Boot a VM with Network device pass through w/ coiommu, and perform the iperf test. Change-Id: Ibceaa274646d5a0afac183d30c8df75c44c92775 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3292935 Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: David Stevens <stevensd@chromium.org>
crosvm is a virtual machine monitor (VMM) based on Linux’s KVM hypervisor, with a focus on simplicity, security, and speed. crosvm is intended to run Linux guests, originally as a security boundary for running native applications on the Chrome OS platform. Compared to QEMU, crosvm doesn’t emulate architectures or real hardware, instead concentrating on paravirtualized devices, such as the virtio standard.
crosvm is currently used to run Linux/Android guests on Chrome OS devices.