From: Paolo Bonzini Date: Wed, 29 Jul 2015 10:31:15 +0000 (+0200) Subject: KVM: x86: clean/fix memory barriers in irqchip_in_kernel X-Git-Tag: omap-for-v4.3/fixes-merge-window~47^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=71ba994c94a81c37185ef2fb5190844286ba9aca;p=pandora-kernel.git 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 --- Reading git-diff-tree failed