linux/arch/x86/hyperv
Michael Kelley f3c5e63c36 Drivers: hv: Redo Hyper-V synthetic MSR get/set functions
Current code defines a separate get and set macro for each Hyper-V
synthetic MSR used by the VMbus driver. Furthermore, the get macro
can't be converted to a standard function because the second argument
is modified in place, which is somewhat bad form.

Redo this by providing a single get and a single set function that
take a parameter specifying the MSR to be operated on. Fixup usage
of the get function. Calling locations are no more complex than before,
but the code under arch/x86 and the upcoming code under arch/arm64
is significantly simplified.

Also standardize the names of Hyper-V synthetic MSRs that are
architecture neutral. But keep the old x86-specific names as aliases
that can be removed later when all references (particularly in KVM
code) have been cleaned up in a separate patch series.

No functional change.

Signed-off-by: Michael Kelley <mikelley@microsoft.com>
Reviewed-by: Boqun Feng <boqun.feng@gmail.com>
Link: https://lore.kernel.org/r/1614721102-2241-4-git-send-email-mikelley@microsoft.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>
2021-03-08 17:32:59 +00:00
..
hv_apic.c x86/hyperv: Clarify comment on x2apic mode 2020-10-26 16:28:06 +00:00
hv_init.c Drivers: hv: Redo Hyper-V synthetic MSR get/set functions 2021-03-08 17:32:59 +00:00
hv_proc.c x86/hyperv: provide a bunch of helper functions 2021-02-11 08:47:06 +00:00
hv_spinlock.c x86/hyperv: Remove aliases with X64 in their name 2020-09-27 11:34:54 +02:00
irqdomain.c iommu/hyperv: setup an IO-APIC IRQ remapping domain for root partition 2021-02-11 08:47:07 +00:00
Makefile x86/hyperv: implement an MSI domain for root partition 2021-02-11 08:47:07 +00:00
mmu.c x86/hyperv: check cpu mask after interrupt has been disabled 2021-01-06 11:03:16 +00:00
nested.c x86/hyper-v: Add HvFlushGuestAddressList hypercall support 2018-12-21 11:28:39 +01:00