+30
−5
Loading
LoongArch inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I9BTWW ------------------------------------------ Steal time feature is added here in kvm side, VM can search supported features provided by KVM hypervisor, feature KVM_FEATURE_STEAL_TIME is added here. Like x86, steal time structure is saved in guest memory, one hypercall function KVM_HCALL_FUNC_NOTIFY is added to notify KVM to enable the feature. One cpu attr ioctl command KVM_LOONGARCH_VCPU_PVTIME_CTRL is added to save and restore base address of steal time structure when VM is migrated. Since it needs hypercall instruction emulation handling, and it is dependent on this patchset: https://lore.kernel.org/all/20240201031950.3225626-1-maobibo@loongson.cn/ Signed-off-by:Bibo Mao <maobibo@loongson.cn> Signed-off-by:
Xianglai Li <lixianglai@loongson.cn>