Andy Lutomirski
9261e050b6
x86/asm/tsc, x86/paravirt: Remove read_tsc() and read_tscp() paravirt hooks
We've had ->read_tsc() and ->read_tscp() paravirt hooks since
the very beginning of paravirt, i.e.,
d3561b7fa0 ("[PATCH] paravirt: header and stubs for paravirtualisation").
AFAICT, the only paravirt guest implementation that ever
replaced these calls was vmware, and it's gone. Arguably even
vmware shouldn't have hooked RDTSC -- we fully support systems
that don't have a TSC at all, so there's no point for a paravirt
implementation to pretend that we have a TSC but to replace it.
I also doubt that these hooks actually worked. Calls to rdtscl()
and rdtscll(), which respected the hooks, were used seemingly
interchangeably with native_read_tsc(), which did not.
Just remove them. If anyone ever needs them again, they can try
to make a case for why they need them.
Before, on a paravirt config:
text data bss dec hex filename
12618257 1816384 1093632 15528273 ecf151 vmlinux
After:
text data bss dec hex filename
12617207 1816384 1093632 15527223 eced37 vmlinux
Signed-off-by: Andy Lutomirski <luto@kernel.org>
Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: Andy Lutomirski <luto@amacapital.net>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Brian Gerst <brgerst@gmail.com>
Cc: Denys Vlasenko <dvlasenk@redhat.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Huang Rui <ray.huang@amd.com>
Cc: John Stultz <john.stultz@linaro.org>
Cc: Len Brown <lenb@kernel.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: kvm ML <kvm@vger.kernel.org>
Cc: virtualization@lists.linux-foundation.org
Link: http://lkml.kernel.org/r/d08a2600fb298af163681e5efd8e599d889a5b97.1434501121.git.luto@kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
2015-07-06 15:23:26 +02:00
..
2015-03-16 14:49:14 +00:00
2012-04-17 00:18:36 -04:00
2012-04-17 00:18:36 -04:00
2014-09-23 13:36:20 +00:00
2015-07-06 15:23:26 +02:00
2014-08-11 11:59:35 +01:00
2014-05-05 16:07:44 -07:00
2014-04-03 14:01:37 -07:00
2014-07-18 21:24:03 +01:00
2015-04-16 14:01:03 -05:00
2011-05-20 14:25:24 -07:00
2014-08-26 13:45:49 -04:00
2012-01-24 12:20:24 -05:00
2015-06-03 12:02:00 +02:00
2014-09-23 13:36:18 +00:00
2013-11-08 15:21:44 -05:00
2014-01-03 14:54:53 -05:00
2015-01-28 10:00:36 +00:00
2015-04-14 13:36:04 -07:00
2014-10-06 10:27:47 +01:00
2015-05-11 09:52:09 +02:00
2015-04-29 17:10:05 +01:00
2015-01-20 18:44:24 +00:00
2015-03-16 14:49:13 +00:00
2007-10-11 11:16:51 +02:00
2012-09-24 09:28:57 -04:00
2014-04-15 15:00:14 +01:00
2015-06-08 09:14:21 +02:00
2009-02-04 16:59:04 -08:00
2012-04-27 16:04:21 -04:00
2015-03-16 14:49:14 +00:00
2015-04-22 08:07:45 +02:00