Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1502351 > unrolled thread

[PATCH] x86/vmware: Skip timer_irq_works() check on VMware

Started byRenat Valiullin <rvaliullin@vmware.com>
First post2016-10-17 21:10 +0200
Last post2016-10-19 17:50 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] x86/vmware: Skip timer_irq_works() check on VMware Renat Valiullin <rvaliullin@vmware.com> - 2016-10-17 21:10 +0200
    [tip:x86/urgent] x86/vmware: Skip timer_irq_works() check on VMware tip-bot for Renat Valiullin <tipbot@zytor.com> - 2016-10-19 17:50 +0200

#1502351 — [PATCH] x86/vmware: Skip timer_irq_works() check on VMware

FromRenat Valiullin <rvaliullin@vmware.com>
Date2016-10-17 21:10 +0200
Subject[PATCH] x86/vmware: Skip timer_irq_works() check on VMware
Message-ID<stlsm-7Hb-33@gated-at.bofh.it>
The timer_irq_works() boot check may sometimes fail in a VM, when
the Host is overcommitted or when the Guest is running nested.
Since the intended check is unnecessary on VMware's virtual
hardware, this change by-passes it.

Signed-off-by: Renat Valiullin <rvaliullin@vmware.com>
Acked-by: Alok N Kataria <akataria@vmware.com>
---
 arch/x86/kernel/cpu/vmware.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/arch/x86/kernel/cpu/vmware.c b/arch/x86/kernel/cpu/vmware.c
index 8116057..5130985 100644
--- a/arch/x86/kernel/cpu/vmware.c
+++ b/arch/x86/kernel/cpu/vmware.c
@@ -27,6 +27,7 @@
 #include <asm/div64.h>
 #include <asm/x86_init.h>
 #include <asm/hypervisor.h>
+#include <asm/timer.h>
 #include <asm/apic.h>
 
 #define CPUID_VMWARE_INFO_LEAF	0x40000000
@@ -94,6 +95,10 @@ static void __init vmware_platform_setup(void)
 	} else {
 		pr_warn("Failed to get TSC freq from the hypervisor\n");
 	}
+
+#ifdef CONFIG_X86_IO_APIC
+	no_timer_check = 1;
+#endif
 }
 
 /*
-- 
2.7.4

[toc] | [next] | [standalone]


#1503968 — [tip:x86/urgent] x86/vmware: Skip timer_irq_works() check on VMware

Fromtip-bot for Renat Valiullin <tipbot@zytor.com>
Date2016-10-19 17:50 +0200
Subject[tip:x86/urgent] x86/vmware: Skip timer_irq_works() check on VMware
Message-ID<su1hV-3b7-41@gated-at.bofh.it>
In reply to#1502351
Commit-ID:  854dd54245f7f1b1175b1bada613929396a571be
Gitweb:     http://git.kernel.org/tip/854dd54245f7f1b1175b1bada613929396a571be
Author:     Renat Valiullin <rvaliullin@vmware.com>
AuthorDate: Thu, 13 Oct 2016 11:45:39 -0700
Committer:  Thomas Gleixner <tglx@linutronix.de>
CommitDate: Wed, 19 Oct 2016 17:36:33 +0200

x86/vmware: Skip timer_irq_works() check on VMware

The timer_irq_works() boot check may sometimes fail in a VM, when
the Host is overcommitted or when the Guest is running nested.

Since the intended check is unnecessary on VMware's virtual
hardware, by-pass it.

Signed-off-by: Renat Valiullin <rvaliullin@vmware.com>
Acked-by: Alok N Kataria <akataria@vmware.com>
Cc: virtualization@lists.linux-foundation.org
Link: http://lkml.kernel.org/r/20161013184539.GA11497@rvaliullin-vm
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>

---
 arch/x86/kernel/cpu/vmware.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/arch/x86/kernel/cpu/vmware.c b/arch/x86/kernel/cpu/vmware.c
index 8116057..5130985 100644
--- a/arch/x86/kernel/cpu/vmware.c
+++ b/arch/x86/kernel/cpu/vmware.c
@@ -27,6 +27,7 @@
 #include <asm/div64.h>
 #include <asm/x86_init.h>
 #include <asm/hypervisor.h>
+#include <asm/timer.h>
 #include <asm/apic.h>
 
 #define CPUID_VMWARE_INFO_LEAF	0x40000000
@@ -94,6 +95,10 @@ static void __init vmware_platform_setup(void)
 	} else {
 		pr_warn("Failed to get TSC freq from the hypervisor\n");
 	}
+
+#ifdef CONFIG_X86_IO_APIC
+	no_timer_check = 1;
+#endif
 }
 
 /*

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web