commit | 71ba994c94a81c37185ef2fb5190844286ba9aca | [log] [tgz] |
---|---|---|
author | Paolo Bonzini <pbonzini@redhat.com> | Wed Jul 29 12:31:15 2015 +0200 |
committer | Paolo Bonzini <pbonzini@redhat.com> | Thu Jul 30 16:02:56 2015 +0200 |
tree | 3eff9ec87d264f8e04fcbeffe3e8f5805f0688c3 | |
parent | dd489240a21afc3ff3962aba5d987229536cae63 [diff] |
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: Paolo Bonzini <pbonzini@redhat.com>