Commit b699af9b authored by yezengruan's avatar yezengruan Committed by jiaofenfang
Browse files

kvm: arm64: fix some pvsched bugs

virt inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I6WRGD



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

1. 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.

2. 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.

Signed-off-by: default avatarZenghui Yu <yuzenghui@huawei.com>
Signed-off-by: default avataryezengruan <yezengruan@huawei.com>
Signed-off-by: default avatarjiaofenfang <jiaofenfang@uniontech.com>
parent 5e4437d3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment