As cloud providers push the boundaries of scalability and efficiency, innovations like nested virtualization are gaining prominence, enabling virtual machines (VMs) to host other VMs. This advanced capability provides unprecedented flexibility for cloud infrastructure. AmpereOne(R) is a standout platform for this next generation of virtualization, boasting multiple innovations such as adaptive traffic management and memory quality of service (QoS) enforcement. These features enhance the performance of its mesh interconnect network and ensure fair memory bandwidth distribution. In this blog we focus on how Ampere CPUs can redefine cloud efficiency through nested virtualization.
The Importance of Nested Virtualization in Modern Cloud Deployments
Nested virtualization allows a virtual machine to act as a host, running additional VMs inside it. In simple terms, it enables running a hypervisor within a VM, creating an entire virtualized environment inside another virtualized environment. This enables workload isolation by allowing each application to run its own operating system, separate from other workloads, making microVMs essential. Workload isolation is critical for both WASM and containerized environments.
As Ampere servers continue to penetrate cloud infrastructures, the ability to support nested virtualization is critical. Cloud customers demand advanced virtualization capabilities, such as the ability to test full cloud-native environments, run multiple hypervisors, or offer custom virtualized environments, all within a single infrastructure. Ampere CPUs, with their focus on high core counts and power efficiency, are well-suited to these advanced cloud use cases.
Nested Virtualization on Armv8.4 (NV2)
Nested virtualization (NV2) enables unmodified hypervisor (KVM) to run as guest hypervisors with minimum performance overhead.
Fig 1: Nested Virtualization NV2 stack.
Here is a simplified breakdown of the nested virtualization structure:
NV on Armv8.3 provides ISA capabilities enabling software emulation of vEL2 in EL1. The key innovation in NV2 on Armv8.4 is the reduction of performance bottlenecks caused by VM entry/exit operations. As shown in figure2 below, NV2 on Armv8.4 architecture implements mechanisms that reduces/avoids the number of traps by:
Fig 2: Mechanisms to reduce number of traps
AmpereOne’s Role in Nested Virtualization Efficiency
AmpereOne processors provide the ideal foundation for nested virtualization by leveraging two key aspects:
For cloud providers, nested virtualization provides the following benefits:
1. The ability to test and validate OS kernel features in test environments (e.g, the automotive use case).
2. Workload isolation and security for ephemeral workloads (CI runs, WASM functions) running on a CSP's managed platform like Kubernetes (where typically the Compute nodes are VMs provisioned by the CSP).
Example Use Case: Nested Virtualization in Automotive
One of the most compelling use cases for nested virtualization is in the automotive sector, where it plays a critical role in the development and deployment of in-vehicle applications. Nested virtualization enables OEMs to develop and test software in cloud environments and easily deploy it to vehicle hardware. This seamless cloud-to-hardware migration is essential for complex automotive systems that require functional safety and cybersecurity assurance.
Key Benefits for Automotive Applications:
1. Functional Safety: Nested virtualization provides hardware-enforced isolation between the virtualized guest operating systems (OSs), ensuring that critical safety systems remain unaffected by potential failures in non-critical systems.
2. Cybersecurity: By minimizing the Trusted Computing Base (TCB), nested virtualization reduces the attack surface, enhancing security for mission-critical systems.
3. Performance: AmpereOne’s high core count and memory efficiency, coupled with real-time, pre-emptive VM scheduling, ensure minimal boot time, memory footprint, and execution overhead—key requirements for in-vehicle systems.
Software-Defined Vehicle (SDV) and autonomous driving requires nested virtualization for performance and security in the vehicle domain controller. AmpereOne processors have nested virtualization and “native parity” with those arm64 automotive ECUs albeit with much greater scale, enabling efficient application development.
Across industries: These benefits of hardware enforced isolation and performance gains from nested virtualization extend beyond automotive use cases and the advantages can be applied to test/dev environments across various industries.
On-premises customers: AmpereOne’s nested virtualization simplifies the migration of on-premises virtualized workloads to cloud environments. By preserving the existing (on-premises) virtualized environment, customers can reduce migration complexity and downtime as they move their environment to CSP’s infrastructure.
Conclusion: The Future of Nested Virtualization with Ampere
The ability to run VMs inside VMs, with minimal performance trade-offs, is quickly becoming a requirement for cloud providers and industries like automotive, where complex workloads and multi-tenant environments are the norm. AmpereOne’s processors provide the performance, scalability, and efficiency needed to fully unlock the potential of nested virtualization.
With the NV2 implementation on Ampere processors, cloud and enterprise workloads can now enjoy the benefits of multi-layered virtualization without the overhead that has traditionally hampered nested environments. Whether for developing complex cloud-native applications, running multiple hypervisors, or enabling automotive innovations, Ampere CPUs are set to play a key role in advancing the future of cloud infrastructure.
As more industries transition to cloud-native architectures, nested virtualization on Ampere CPUs will enable greater flexibility, resource efficiency, and security—unlocking the infinite layers of virtualization possibilities for modern workloads.