Unverified Commit 8bf8523b authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!586 [openEuelr-1.0-LTS] kvm: arm64: fix some pvsched bugs

Merge Pull Request from: @jiaoff 
 
kvm: arm64: fix some pvsched bugs

Clear kvm_vcpu_arch::pvsched::base on vcpu reset
The guest memory will otherwise be corrupted by KVM if we reboot into
an old guest kernel which is not aware of the pvsched feature.

Fix boot cpu pvsched init abnormal
The pv_sched_init was called too early in the boot in setup_arch, hence
pvsched_vcpu_state was not initializedfo vcpu 0.

https://gitee.com/openeuler/kernel/issues/I6WRGD?from=project-issue 
 
Link:https://gitee.com/openeuler/kernel/pulls/586

 

Reviewed-by: default avatarKevin Zhu <zhukeqian1@huawei.com>
Signed-off-by: default avatarZhang Changzhong <zhangchangzhong@huawei.com>
parents 3716f8b5 b699af9b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment