1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/arch/x86/kernel/apic
Paolo Bonzini cc6afe2240 x86/apic: Silence "FW_BUG TSC_DEADLINE disabled due to Errata" on hypervisors
Commit 594a30fb12 ("x86/apic: Silence "FW_BUG TSC_DEADLINE disabled
due to Errata" on CPUs without the feature", 2017-08-30) was also about
silencing the warning on VirtualBox; however, KVM does expose the TSC
deadline timer, and it's virtualized so that it is immune from CPU errata.

Therefore, booting 4.13 with "-cpu Haswell" shows this in the logs:

     [    0.000000] [Firmware Bug]: TSC_DEADLINE disabled due to Errata;
                    please update microcode to version: 0xb2 (or later)

Even if you had a hypervisor that does _not_ virtualize the TSC deadline
and rather exposes the hardware one, it should be the hypervisors task
to update microcode and possibly hide the flag from CPUID.  So just
hide the message when running on _any_ hypervisor, not just those that
do not support the TSC deadline timer.

The older check still makes sense, so keep it.

Fixes: bd9240a18e ("x86/apic: Add TSC_DEADLINE quirk due to errata")
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Hans de Goede <hdegoede@redhat.com>
Cc: kvm@vger.kernel.org
Cc: stable@vger.kernel.org
Link: https://lkml.kernel.org/r/1507630377-54471-1-git-send-email-pbonzini@redhat.com
2017-10-12 17:10:10 +02:00
..
apic.c x86/apic: Silence "FW_BUG TSC_DEADLINE disabled due to Errata" on hypervisors 2017-10-12 17:10:10 +02:00
apic_flat_64.c x86/apic: Move cpumask and to core code 2017-06-22 18:21:22 +02:00
apic_noop.c x86/apic: Move cpumask and to core code 2017-06-22 18:21:22 +02:00
apic_numachip.c x86/apic: Move cpumask and to core code 2017-06-22 18:21:22 +02:00
bigsmp_32.c x86/apic: Move cpumask and to core code 2017-06-22 18:21:22 +02:00
htirq.c x86/htirq: Create named domain 2017-06-22 18:21:09 +02:00
hw_nmi.c kernel/watchdog: split up config options 2017-07-12 16:26:02 -07:00
io_apic.c x86/ioapic: Print the IRTE's index field correctly when enabling INTR 2017-08-23 10:17:17 +02:00
ipi.c x86/kernel: Audit and remove any unnecessary uses of module.h 2016-07-14 15:06:41 +02:00
Makefile kernel: add kcov code coverage 2016-03-22 15:36:02 -07:00
msi.c x86/msi: Create named irq domains 2017-06-22 18:21:11 +02:00
probe_32.c x86/apic: Move cpumask and to core code 2017-06-22 18:21:22 +02:00
probe_64.c x86/apic: Remove duplicated include from probe_64.c 2016-07-19 16:02:31 +02:00
vector.c x86/irq: Get rid of the 'first_system_vector' indirection bogosity 2017-08-29 11:42:21 +02:00
x2apic_cluster.c x86/apic: Implement effective irq mask update 2017-06-22 18:21:23 +02:00
x2apic_phys.c x86/apic: Move cpumask and to core code 2017-06-22 18:21:22 +02:00
x2apic_uv_x.c x86/apic: Add irq_data argument to apic->cpu_mask_to_apicid() 2017-06-22 18:21:22 +02:00