提交 0190e611 编写于 作者: Z Zenghui Yu 提交者: Yang Yingliang

KVM: arm64: Set kvm_vcpu::pre_pcpu properly

virt inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I4BLL0
CVE: NA

--------------------------------

kvm_vcpu::pre_pcpu was introduced in commit bf9f6ac8 ("KVM: Update
Posted-Interrupts Descriptor when vCPU is blocked") but has so far only
been used by x86.

Set it properly on the vcpu_put() path for arm64.
Signed-off-by: NZenghui Yu <yuzenghui@huawei.com>
Reviewed-by: NCheng Jian <cj.chengjian@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 fe48bc79
......@@ -466,6 +466,7 @@ void kvm_arch_vcpu_put(struct kvm_vcpu *vcpu)
kvm_vgic_put(vcpu);
kvm_vcpu_pmu_restore_host(vcpu);
vcpu->pre_pcpu = vcpu->cpu;
vcpu->cpu = -1;
kvm_arm_set_running_vcpu(NULL);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册