Cloud Computing 25 min read

Hybrid vCPU: Tencent Cloud's Exploration of Virtualizing Heterogeneous CPU Architecture

Tencent Cloud’s Hybrid vCPU research, presented at KVM Forum 2023, outlines a three‑stage roadmap from homogeneous cores to mixed x86, ARM, and RISC‑V CPUs, detailing how virtualizing heterogeneous topologies, frequencies, caches, and PMU features can boost VM performance, security, live‑migration flexibility, and data‑center utilization.

Tencent Cloud Developer
Tencent Cloud Developer
Tencent Cloud Developer
Hybrid vCPU: Tencent Cloud's Exploration of Virtualizing Heterogeneous CPU Architecture

This article introduces Tencent Cloud's technical exploration of Hybrid vCPU virtualization, presented at KVM Forum 2023. As cloud computing demands become increasingly diverse and complex with deeper customization requirements, hardware vendors have introduced heterogeneous computing architectures that balance power consumption and performance in client computing markets.

The content covers three development stages of Hybrid CPU architecture: Stage 1 features homogeneous instruction set architecture (ISA) with different microarchitectures (P-core and E-core); Stage 2 introduces ISA-level heterogeneity where different cores support different instruction sets; Stage 3 envisions co-existence of x86, ARM, and RISC-V cores on the same physical silicon.

The article details the motivation for implementing Hybrid vCPU in virtualization: enabling VMs to perceive real CPU topology information for better performance optimization, supporting online CPU feature control for live migration flexibility, enhancing security by dynamically removing vulnerable CPU features, and improving data center resource utilization by utilizing partially defective cores.

Key implementation aspects include: defining Hybrid vCPU virtualized space covering CPU topology, frequency, cache topology, and PMU features; applying Hybrid vCPU to connect multiple VM pools for seamless feature migration; implementing online vPMU feature control; and addressing challenges such as BSP initialization, per-CPU driver support, and hot-plug compatibility.

Performance Optimizationcloud computingVirtualizationheterogeneous computingHybrid CPUKVMlive migrationvCPU
Tencent Cloud Developer
Written by

Tencent Cloud Developer

Official Tencent Cloud community account that brings together developers, shares practical tech insights, and fosters an influential tech exchange community.

0 followers
Reader feedback

How this landed with the community

login Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.