Skip to content

Vsock-net: Safe and Fast Paravirtualized Network I/O for Confidential VMs

Yun-Tang Chang, Hao-Jung Wei, Shih-Wei Li

cs.CR

Abstract

Confidential Virtual Machines (CVMs) are increasingly deployed to secure proprietary workloads and data in multi-tenant cloud environments. However, the Trusted Computing Base (TCB) of CVMs includes a complex and potentially buggy kernel network stack, in which any vulnerability can compromise their security guarantees. We present Vsock-net, a novel paravirtualized network delegation architecture for Linux-based CVMs that leverages the virtio-vsock device to transparently proxy guest network traffic to the host, completely eliminating the TCP/IP stack from the guest TCB. Vsock-net optimizes the network data path to reduce the performance overhead typically associated with network delegation, while enhancing virtio-vsock to meet the demands of cloud workloads. The evaluation of our Linux Vsock-net prototype on KVM demonstrates that it significantly outperforms the state-of-the-art approach. Furthermore, we show that reducing TCB for security does not compromise efficiency: Vsock-net can outperform de facto virtio-net configurations that rely on a full in-guest Linux TCP/IP stack. In addition, our virtio-vsock optimizations substantially improve performance over mainline virtio-vsock, enabling a highly efficient communication channel within the virtualization infrastructure.

Create a lesson

Metadata

Categories
cs.CR, cs.NI, cs.OS
Comments
14 pages, 7 figures