[PATCH 4/6] drivers/hv: arch-neutral implementation of get_vtl()

2024-05-10 Thread romank
From: Roman Kisel This change generalizes the x86-specific implementation of get_vtl() so that it can be used on arm64. Signed-off-by: Roman Kisel --- arch/x86/hyperv/hv_init.c | 34 --- arch/x86/include/asm/hyperv-tlfs.h | 7 - drivers/hv/hv_common.c

[PATCH 0/6] arm64/hyperv: Support Virtual Trust Level boot

2024-05-10 Thread romank
From: Roman Kisel This set of patches enables the Hyper-V code to boot on ARM64 inside a Virtual Trust Level. These levels are a part of the Virtual Secure Mode documented in the Top-Level Functional Specification available at https://learn.microsoft.com/en-us/virtualization/hyper-v-on-windows/tl

[PATCH 3/6] arm64/hyperv: Boot in a Virtual Trust Level

2024-05-10 Thread romank
From: Roman Kisel This change builds upon the previous ones to boot in a Virtual Trust Level and provide configuration for the drivers. Also print the VTL the code runs in the new and the existing code. Signed-off-by: Roman Kisel --- arch/arm64/hyperv/Makefile| 1 + arch/arm64/hyperv

[PATCH 2/6] drivers/hv: Enable VTL mode for arm64

2024-05-10 Thread romank
From: Roman Kisel This change removes dependency on ACPI when buidling the hv drivers to allow Virtual Trust Level boot with DeviceTree. Signed-off-by: Roman Kisel --- drivers/hv/Kconfig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/hv/Kconfig b/drivers/hv/K

[PATCH 5/6] drivers/hv/vmbus: Get the irq number from DeviceTree

2024-05-10 Thread romank
From: Roman Kisel When booting on arm64, one has to configure the irq using the data from the system configuration. There has already been support for ACPI, support DeviceTree as booting in a Virtual Trust Level relies on DT. Signed-off-by: Roman Kisel --- drivers/hv/vmbus_drv.c | 37 +

[PATCH 6/6] drivers/pci/hyperv/arm64: vPCI MSI IRQ domain from DT

2024-05-10 Thread romank
From: Roman Kisel This change allows Hyper-V PCI to be enabled on arm64 via DT when booting in a Virtual Trust Level. Signed-off-by: Roman Kisel --- drivers/pci/controller/pci-hyperv.c | 13 ++--- include/linux/acpi.h| 10 ++ 2 files changed, 20 insertions(+), 3

[PATCH 1/6] arm64/hyperv: Support DeviceTree

2024-05-10 Thread romank
From: Roman Kisel Update the driver to support DeviceTree boot as well along with ACPI. This enables the Virtual Trust Level platforms boot up on ARM64. Signed-off-by: Roman Kisel --- arch/arm64/hyperv/mshyperv.c | 34 +- 1 file changed, 29 insertions(+), 5 dele

Re: [PATCH 1/6] arm64/hyperv: Support DeviceTree

2024-05-10 Thread Easwar Hariharan
On 5/10/2024 9:05 AM, rom...@linux.microsoft.com wrote: > From: Roman Kisel > > Update the driver to support DeviceTree boot as well along with ACPI. > This enables the Virtual Trust Level platforms boot up on ARM64. > > Signed-off-by: Roman Kisel > --- > arch/arm64/hyperv/mshyperv.c | 34

Re: [PATCH 1/6] arm64/hyperv: Support DeviceTree

2024-05-10 Thread Roman Kisel
On 5/10/2024 10:04 AM, Easwar Hariharan wrote: On 5/10/2024 9:05 AM, rom...@linux.microsoft.com wrote: From: Roman Kisel Update the driver to support DeviceTree boot as well along with ACPI. This enables the Virtual Trust Level platforms boot up on ARM64. Signed-off-by: Roman Kisel ---