> ## Documentation Index
> Fetch the complete documentation index at: https://dragonwingdocs-staging.qualcomm.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 基于 KVM 的 RT

## **基于 KVM 的 RT**

Dragonwing Industrial Edge Suite 在 QLI 2.0 上支持上游 KVM hypervisor，可在同一 Qualcomm Dragonwing™ SoC 上同时运行实时客户机操作系统和通用客户机操作系统，且不会造成任何 RT 延迟劣化。

***

### 要点

* **KVM 是 QLI 2.0 的默认 hypervisor**，通过 `qcom-distro-kvm.yml` KAS overlay 选用
* **PREEMPT\_RT 与 KVM 同时运行** — RT 客户机和通用客户机在同一 SoC 上并发运行
* **CPU 分区** — RT 隔离 CPU（例如 2–7）专用于 RT 客户机；housekeeping CPU（0–1）负责 hypervisor、模拟器和非 RT 客户机
* **SR-IOV 支持** — Intel X550 NIC 虚拟功能可通过 `<hostdev>` 和 `virtio-iommu-pci` 直接透传给 RT 客户机
* **由 Libvirt/Virsh 管理** — 使用标准 domain XML 文件定义和驱动客户机 VM 生命周期

***

### 架构

```
┌─────────────────────────────────────────────────────────────────┐
│                      Application Layer                          │
├──────────────────────────────┬──────────────────────────────────┤
│   Real-Time Guest OS         │    General-Purpose Guest OS      │
│   (PREEMPT_RT 6.18)          │    (Multimedia / Networking)     │
│   vCPUs pinned to CPU 2–7    │    vCPUs pinned to CPU 0–1       │
│   SCHED_FIFO, SR-IOV VFs     │    CFS scheduler                 │
├──────────────────────────────┴──────────────────────────────────┤
│              KVM Hypervisor + QEMU (QLI 2.0)                    │
│              Emulator thread pinned to CPU 0                    │
├─────────────────────────────────────────────────────────────────┤
│          Linux Kernel 6.18 + Qualcomm BSP Drivers               │
│          isolcpus=2-7  irqaffinity=0-1  nohz_full=2-7           │
└─────────────────────────────────────────────────────────────────┘
```

***

### 子页面

> [card] [构建](https://dragonwingdocs-staging.qualcomm.com/zh/Suites/Industrial-Edge-Suite/rt-with-kvm-build.md)
>
> KAS 构建命令、镜像配方及运行时验证

> [card] [RT 配置](https://dragonwingdocs-staging.qualcomm.com/zh/Suites/Industrial-Edge-Suite/rt-with-kvm-rt-config.md)
>
> 内核启动参数与 Yocto RT 调优变量

> [card] [NIC 与 SR-IOV](https://dragonwingdocs-staging.qualcomm.com/zh/Suites/Industrial-Edge-Suite/rt-with-kvm-nic-sriov.md)
>
> Intel X550 NIC、SR-IOV VF 透传及 IOMMU-map 设置

> [card] [VM 管理](https://dragonwingdocs-staging.qualcomm.com/zh/Suites/Industrial-Edge-Suite/rt-with-kvm-vm-management.md)
>
> Virsh 设置、已知问题以及 RT/HK domain XML 示例文件

***

### KVM 下的 RT 基准测试

> [card] [RT 基准测试 IQ9（KVM）](https://dragonwingdocs-staging.qualcomm.com/zh/Suites/Industrial-Edge-Suite/kvm-rt-benchmarks-iq9.md)
>
> Dragonwing IQ-9075 在 KVM 下运行 RT 内核的 Cyclictest 结果
