Skip to content

Commit 0d0cc65

Browse files
allenpaistyhicks
authored andcommitted
Hyper-V: vPCI: Move the MSI entry struct definition to arch specific
This patch moves the MSI entry definition to architecture specific code since it is arch specific. Signed-off-by: Sunil Muthuswamy <sunilmut@microsoft.com> Signed-off-by: Allen Pais <apais@microsoft.com>
1 parent 9d46083 commit 0d0cc65

3 files changed

Lines changed: 17 additions & 9 deletions

File tree

arch/arm64/include/asm/hyperv-tlfs.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,15 @@
6464
#define HV_REGISTER_STIMER0_CONFIG 0x000B0000
6565
#define HV_REGISTER_STIMER0_COUNT 0x000B0001
6666

67+
union hv_msi_entry {
68+
u64 as_uint64[2];
69+
struct {
70+
u64 address;
71+
u32 data;
72+
u32 reserved;
73+
} __packed;
74+
};
75+
6776
#include <asm-generic/hyperv-tlfs.h>
6877

6978
#endif

arch/x86/include/asm/hyperv-tlfs.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -513,6 +513,14 @@ struct hv_partition_assist_pg {
513513
u32 tlb_lock_count;
514514
};
515515

516+
/* HvRetargetDeviceInterrupt hypercall */
517+
union hv_msi_entry {
518+
u64 as_uint64;
519+
struct {
520+
u32 address;
521+
u32 data;
522+
} __packed;
523+
};
516524

517525
#include <asm-generic/hyperv-tlfs.h>
518526

include/asm-generic/hyperv-tlfs.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -442,15 +442,6 @@ struct hv_tlb_flush_ex {
442442
u64 gva_list[];
443443
} __packed;
444444

445-
/* HvRetargetDeviceInterrupt hypercall */
446-
union hv_msi_entry {
447-
u64 as_uint64;
448-
struct {
449-
u32 address;
450-
u32 data;
451-
} __packed;
452-
};
453-
454445
struct hv_interrupt_entry {
455446
u32 source; /* 1 for MSI(-X) */
456447
u32 reserved1;

0 commit comments

Comments
 (0)