diff options
author | Nicolai Stange | 2018-07-29 13:06:04 +0200 |
---|---|---|
committer | Thomas Gleixner | 2018-08-05 09:53:13 +0200 |
commit | ffcba43ff66c7dab34ec700debd491d2a4d319b4 (patch) | |
tree | f72356e0ee0075fcbd2e681a83645f926c4df1eb /arch/x86/platform | |
parent | x86: Don't include linux/irq.h from asm/hardirq.h (diff) | |
download | kernel-qcow2-linux-ffcba43ff66c7dab34ec700debd491d2a4d319b4.tar.gz kernel-qcow2-linux-ffcba43ff66c7dab34ec700debd491d2a4d319b4.tar.xz kernel-qcow2-linux-ffcba43ff66c7dab34ec700debd491d2a4d319b4.zip |
x86/irq: Let interrupt handlers set kvm_cpu_l1tf_flush_l1d
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>
Diffstat (limited to 'arch/x86/platform')
-rw-r--r-- | arch/x86/platform/uv/tlb_uv.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/platform/uv/tlb_uv.c b/arch/x86/platform/uv/tlb_uv.c index ca446da48fd2..3866b96a7ee7 100644 --- a/arch/x86/platform/uv/tlb_uv.c +++ b/arch/x86/platform/uv/tlb_uv.c @@ -1285,6 +1285,7 @@ void uv_bau_message_interrupt(struct pt_regs *regs) struct msg_desc msgdesc; ack_APIC_irq(); + kvm_set_cpu_l1tf_flush_l1d(); time_start = get_cycles(); bcp = &per_cpu(bau_control, smp_processor_id()); |