Skip to content

Commit a1efa9b

Browse files
vittyvkbonzini
authored andcommitted
x86/hyper-v: rename ipi_arg_{ex,non_ex} structures
These structures are going to be used from KVM code so let's make their names reflect their Hyper-V origin. Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com> Reviewed-by: Roman Kagan <rkagan@virtuozzo.com> Acked-by: K. Y. Srinivasan <kys@microsoft.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
1 parent d264ee0 commit a1efa9b

File tree

2 files changed

+13
-11
lines changed

2 files changed

+13
-11
lines changed

arch/x86/hyperv/hv_apic.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ static void hv_apic_eoi_write(u32 reg, u32 val)
9595
*/
9696
static bool __send_ipi_mask_ex(const struct cpumask *mask, int vector)
9797
{
98-
struct ipi_arg_ex **arg;
99-
struct ipi_arg_ex *ipi_arg;
98+
struct hv_send_ipi_ex **arg;
99+
struct hv_send_ipi_ex *ipi_arg;
100100
unsigned long flags;
101101
int nr_bank = 0;
102102
int ret = 1;
@@ -105,7 +105,7 @@ static bool __send_ipi_mask_ex(const struct cpumask *mask, int vector)
105105
return false;
106106

107107
local_irq_save(flags);
108-
arg = (struct ipi_arg_ex **)this_cpu_ptr(hyperv_pcpu_input_arg);
108+
arg = (struct hv_send_ipi_ex **)this_cpu_ptr(hyperv_pcpu_input_arg);
109109

110110
ipi_arg = *arg;
111111
if (unlikely(!ipi_arg))
@@ -135,7 +135,7 @@ static bool __send_ipi_mask_ex(const struct cpumask *mask, int vector)
135135
static bool __send_ipi_mask(const struct cpumask *mask, int vector)
136136
{
137137
int cur_cpu, vcpu;
138-
struct ipi_arg_non_ex ipi_arg;
138+
struct hv_send_ipi ipi_arg;
139139
int ret = 1;
140140

141141
trace_hyperv_send_ipi_mask(mask, vector);

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

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -726,19 +726,21 @@ struct hv_enlightened_vmcs {
726726
#define HV_STIMER_AUTOENABLE (1ULL << 3)
727727
#define HV_STIMER_SINT(config) (__u8)(((config) >> 16) & 0x0F)
728728

729-
struct ipi_arg_non_ex {
730-
u32 vector;
731-
u32 reserved;
732-
u64 cpu_mask;
733-
};
734-
735729
struct hv_vpset {
736730
u64 format;
737731
u64 valid_bank_mask;
738732
u64 bank_contents[];
739733
};
740734

741-
struct ipi_arg_ex {
735+
/* HvCallSendSyntheticClusterIpi hypercall */
736+
struct hv_send_ipi {
737+
u32 vector;
738+
u32 reserved;
739+
u64 cpu_mask;
740+
};
741+
742+
/* HvCallSendSyntheticClusterIpiEx hypercall */
743+
struct hv_send_ipi_ex {
742744
u32 vector;
743745
u32 reserved;
744746
struct hv_vpset vp_set;

0 commit comments

Comments
 (0)