openEuler 20.09 PV-sched

openEuler 20.09引入了PV-sched特性,优化了多核超分场景下的虚拟机性能。PV-sched通过KVM在arm64上的5个关键commit实现,提供了hypercall接口让guest感知vCPU状态,包括PV_SCHED_FEATURES、PV_SCHED_IPA_INIT、PV_SCHED_IPA_RELEASE、PV_SCHED_KICK_CPU等功能,支持预占和唤醒vCPU操作。
摘要由CSDN通过智能技术生成

openEuler 20.09的关键特性中提到的虚拟化增强包括了以下内容:

  • 通过双层调度和Hypervisor感知VM调度,优化VM锁抢占,提升多核超分场景性能

分析了openEuler 20.09内核代码,其中有5个commit和PV sched相关,PV指的是paravirt。

这5个commit实际是向guest提供了一组hypercall接口,通过这一组hypercall接口,guest可以感知vCPU是否被抢占并调度vCPU运行。

commit 说明

cec359f078ea7a29f1f073ef57e465156786ff19

KVM: arm64: Document PV-sched interface

Introduce a paravirtualization interface for KVM/arm64 to PV-sched.

A hypercall interface is provided for the guest to interrogate the
hypervisor's support for this interface and the location of the shared
memory structures.

0a2d04f6dd3fff3c772dab7d057db29aea065a3b

KVM: arm64: Implement PV_SCHED_FEATURES call

This provides a mechanism for querying which paravirtualized sched
features are available in this hypervisor.

Add some SMCCC compatible hypercalls for PV sched features:
PV_SCHED_FEATURES: 0xC5000090
PV_SCHED_IPA_INIT: 0xC5000091
PV_SCHED_IPA_RELEASE: 0xC5000092

Also add the header file which defines the ABI for the paravirtualized
sched features we're about to add.

7558f682dc42b45

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值