x86/hyper-V: Allocate the IDT entry early in boot
authorK. Y. Srinivasan <kys@microsoft.com>
Fri, 8 Sep 2017 23:15:57 +0000 (16:15 -0700)
committerIngo Molnar <mingo@kernel.org>
Wed, 13 Sep 2017 09:02:26 +0000 (11:02 +0200)
commit213ff44ae4eb5224010166db2f851e4eea068268
tree8f6d3a7b581978fa9e7304056d470c5455096764
parent30c1bbffe629985d86bf68796a224ea4eac2685b
x86/hyper-V: Allocate the IDT entry early in boot

Allocate the hypervisor callback IDT entry early in the boot sequence.

The previous code would allocate the entry as part of registering the handler
when the vmbus driver loaded, and this caused a problem for the IDT cleanup
that Thomas is working on for v4.15.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: apw@canonical.com
Cc: devel@linuxdriverproject.org
Cc: gregkh@linuxfoundation.org
Cc: jasowang@redhat.com
Cc: olaf@aepfle.de
Link: http://lkml.kernel.org/r/20170908231557.2419-1-kys@exchange.microsoft.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/cpu/mshyperv.c