x86/irq: Let interrupt handlers set kvm_cpu_l1tf_flush_l1d
authorNicolai Stange <nstange@suse.de>
Sun, 29 Jul 2018 11:06:04 +0000 (13:06 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Aug 2018 16:12:58 +0000 (18:12 +0200)
commitaef13e1e96b7449f8346392ad1e38db86e6e75a2
tree00d229249035ec81be986e4a5b19b2879feae7be
parent18f891ef7a631cac76e25d09a37f582690d852dd
x86/irq: Let interrupt handlers set kvm_cpu_l1tf_flush_l1d

commit ffcba43ff66c7dab34ec700debd491d2a4d319b4 upstream

The last missing piece to having vmx_l1d_flush() take interrupts after
VMEXIT into account is to set the kvm_cpu_l1tf_flush_l1d per-cpu flag on
irq entry.

Issue calls to kvm_set_cpu_l1tf_flush_l1d() from entering_irq(),
ipi_entering_ack_irq(), smp_reschedule_interrupt() and
uv_bau_message_interrupt().

Suggested-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Nicolai Stange <nstange@suse.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/include/asm/apic.h
arch/x86/kernel/smp.c
arch/x86/platform/uv/tlb_uv.c