aboutsummaryrefslogtreecommitdiff
path: root/include/hyperv
diff options
context:
space:
mode:
authorJinank Jain <jinankjain@microsoft.com>2025-11-24 14:25:59 +0000
committerWei Liu <wei.liu@kernel.org>2025-12-05 23:16:49 +0000
commit9d70ef7a18e0ec1653ac63020a13a5d4dda7cc0d (patch)
tree37d161c694d07002a9aa1b40c38d5d6d3e0251d4 /include/hyperv
parentb5110eaf67530091343b519d8abd0cddd14660f2 (diff)
mshv: adjust interrupt control structure for ARM64
Interrupt control structure (union hv_interupt_control) has different fields when it comes to x86 vs ARM64. Bring in the correct structure from HyperV header files and adjust the existing interrupt routing code accordingly. Signed-off-by: Jinank Jain <jinankjain@microsoft.com> Signed-off-by: Anirudh Rayabharam (Microsoft) <anirudh@anirudhrb.com> Signed-off-by: Wei Liu <wei.liu@kernel.org>
Diffstat (limited to 'include/hyperv')
-rw-r--r--include/hyperv/hvhdk.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/hyperv/hvhdk.h b/include/hyperv/hvhdk.h
index 416c0d45b793..469186df7826 100644
--- a/include/hyperv/hvhdk.h
+++ b/include/hyperv/hvhdk.h
@@ -579,9 +579,15 @@ union hv_interrupt_control {
u64 as_uint64;
struct {
u32 interrupt_type; /* enum hv_interrupt_type */
+#if IS_ENABLED(CONFIG_X86)
u32 level_triggered : 1;
u32 logical_dest_mode : 1;
u32 rsvd : 30;
+#elif IS_ENABLED(CONFIG_ARM64)
+ u32 rsvd1 : 2;
+ u32 asserted : 1;
+ u32 rsvd2 : 29;
+#endif
} __packed;
};