diff options
author | Igor Mammedov <imammedo@redhat.com> | 2020-06-22 12:08:30 -0400 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2020-06-22 12:48:44 -0400 |
commit | af28dfacbe00d53df5dec2bf50640df33138b1fe (patch) | |
tree | 8775738045780864fe015270ad6e02dd4ac394c1 /README | |
parent | 49097762fa405cdc16f8f597f6d27c078d4a31e9 (diff) | |
download | linux-af28dfacbe00d53df5dec2bf50640df33138b1fe.tar.bz2 |
kvm: lapic: fix broken vcpu hotplug
Guest fails to online hotplugged CPU with error
smpboot: do_boot_cpu failed(-1) to wakeup CPU#4
It's caused by the fact that kvm_apic_set_state(), which used to call
recalculate_apic_map() unconditionally and pulled hotplugged CPU into
apic map, is updating map conditionally on state changes. In this case
the APIC map is not considered dirty and the is not updated.
Fix the issue by forcing unconditional update from kvm_apic_set_state(),
like it used to be.
Fixes: 4abaffce4d25a ("KVM: LAPIC: Recalculate apic map in batch")
Cc: stable@vger.kernel.org
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Message-Id: <20200622160830.426022-1-imammedo@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'README')
0 files changed, 0 insertions, 0 deletions