]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: zero apic_arb_prio on reset
authorRadim Krčmář <rkrcmar@redhat.com>
Fri, 30 Oct 2015 14:48:20 +0000 (15:48 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 4 Nov 2015 15:24:34 +0000 (16:24 +0100)
commit9952f0dd318b4ddc646bb214abc304fda7b639c5
tree335bbe1aa81071f50d05c9af247abad44fad72c0
parentb8ea9878fe28461153c259befbb28c3c35d06701
KVM: x86: zero apic_arb_prio on reset

BSP doesn't get INIT so its apic_arb_prio isn't zeroed after reboot.
BSP won't get lowest priority interrupts until other VCPUs get enough
interrupts to match their pre-reboot apic_arb_prio.

That behavior doesn't fit into KVM's round-robin-like interpretation of
lowest priority delivery ... userspace should KVM_SET_LAPIC on reset, so
just zero apic_arb_prio there.

Reported-by: Yuki Shibuya <shibuya.yk@ncos.nec.co.jp>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/lapic.c