Drivers: hv: vmbus: Remove x86 MSR refs in arch independent code
authorMichael Kelley <mikelley@microsoft.com>
Tue, 5 Jun 2018 20:37:53 +0000 (13:37 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 Jul 2018 11:02:28 +0000 (13:02 +0200)
commit619a4c8b2b5a0b64842b0362a152a63072615a54
treee34257dd12a9dcdb2c51e553812939b8d59b4473
parent50229128727f7e11840ca1b2b501f880818d56b6
Drivers: hv: vmbus: Remove x86 MSR refs in arch independent code

In architecture independent code for manipulating Hyper-V synthetic timers
and synthetic interrupts, pass in an ordinal number identifying the timer
or interrupt, rather than an actual MSR register address.  Then in
x86/x64 specific code, map the ordinal number to the appropriate MSR.
This change facilitates the introduction of an ARM64 version of Hyper-V,
which uses the same synthetic timers and interrupts, but a different
mechanism for accessing them.

Signed-off-by: Michael Kelley <mikelley@microsoft.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/include/asm/mshyperv.h
drivers/hv/hv.c