Skip to content
Commit 71ba994c authored by Paolo Bonzini's avatar Paolo Bonzini
Browse files

KVM: x86: clean/fix memory barriers in irqchip_in_kernel



The memory barriers are trying to protect against concurrent RCU-based
interrupt injection, but the IRQ routing table is not valid at the time
kvm->arch.vpic is written.  Fix this by writing kvm->arch.vpic last.
kvm_destroy_pic then need not set kvm->arch.vpic to NULL; modify it
to take a struct kvm_pic* and reuse it if the IOAPIC creation fails.

Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent dd489240
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment