TY - GEN
T1 - Translation Pass-Through for Near-Native Paging Performance in VMs
AU - Bergman, Shai
AU - Silberstein, Mark
AU - Pietzuch, Peter
AU - Shinagawa, Takahiro
AU - Vilanova, Lluís
N1 - Publisher Copyright: © 2023 by The USENIX Association All Rights Reserved.
PY - 2023
Y1 - 2023
N2 - Virtual machines (VMs) are used for consolidation, isolation, and provisioning in the cloud, but applications with large working sets are impacted by the overheads of memory address translation in VMs. Existing translation approaches incur non-trivial overheads: (i) nested paging has a worst-case latency that increases with page table depth; and (ii) paravirtualized and shadow paging suffer from high hypervisor intervention costs when updating guest page tables. We describe translation pass-through (TPT), a new memory virtualization mechanism that achieves near-native performance. TPT enables VMs to control virtual memory translation from guest-virtual to host-physical addresses using one-dimensional page tables. At the same time, inter-VM isolation is enforced by the host by exploiting new hardware support for physical memory tagging in commodity CPUs. We prototype TPT by modifying the KVM/QEMU hypervisor and enlightening the Linux guest. We evaluate it by emulating the memory tagging mechanism of AMD CPUs. Our conservative performance estimates show that TPT achieves native performance for real-world data center applications, with speedups of up to 2.4× and 1.4× over nested and shadow paging, respectively.
AB - Virtual machines (VMs) are used for consolidation, isolation, and provisioning in the cloud, but applications with large working sets are impacted by the overheads of memory address translation in VMs. Existing translation approaches incur non-trivial overheads: (i) nested paging has a worst-case latency that increases with page table depth; and (ii) paravirtualized and shadow paging suffer from high hypervisor intervention costs when updating guest page tables. We describe translation pass-through (TPT), a new memory virtualization mechanism that achieves near-native performance. TPT enables VMs to control virtual memory translation from guest-virtual to host-physical addresses using one-dimensional page tables. At the same time, inter-VM isolation is enforced by the host by exploiting new hardware support for physical memory tagging in commodity CPUs. We prototype TPT by modifying the KVM/QEMU hypervisor and enlightening the Linux guest. We evaluate it by emulating the memory tagging mechanism of AMD CPUs. Our conservative performance estimates show that TPT achieves native performance for real-world data center applications, with speedups of up to 2.4× and 1.4× over nested and shadow paging, respectively.
UR - http://www.scopus.com/inward/record.url?scp=85165992451&partnerID=8YFLogxK
M3 - منشور من مؤتمر
T3 - Proceedings of the 2023 USENIX Annual Technical Conference, ATC 2023
SP - 753
EP - 768
BT - Proceedings of the 2023 USENIX Annual Technical Conference, ATC 2023
T2 - 2023 USENIX Annual Technical Conference, ATC 2023
Y2 - 10 July 2023 through 12 July 2023
ER -