Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp6109657imm; Mon, 27 Aug 2018 09:50:49 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZ7IfbM9Xe5fzt7nsk/NlVn8OM2jidrCZRtNb6INAjLDexc94NkS0D+UQxqcRiY9wAAguwr X-Received: by 2002:a63:d244:: with SMTP id t4-v6mr12740539pgi.335.1535388649560; Mon, 27 Aug 2018 09:50:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535388649; cv=none; d=google.com; s=arc-20160816; b=J/DDc/tavg5rkGwRFJOqblwcPr5Rweaj+TrLrCf/5NeZm4CgW/J9zebjsVYOo8E5Ib /3HtapJdz7Uz2V4UpTg10yyc7fF2GwE4Oo1WOqHuTKxDFSHDg13uVquyQZYcDhj/1R8/ Xb2FCAoGgP+j9rxx47L8GTvyawG8gF6e698FUB8R5cQ1c2Z/CO0lyeUa3votiYIhgPdN U6xv88pzwOgi4py/dYOYefl+r6yP8L0Eo6BWV2Tt6zXr3dRz1B1L+xB0jSL2FRXGPqDy BLYvSGcnujuli2c74YDeXqYL47quTfbkzYqXhHReyphUUx8OOqaRc3lILRmnbongcYmn v+jg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=kcdr7Hf05OHf4G1eSbaMV94Z/EkAKxKAwUAZCxMMclg=; b=Bp3+Lg5ZLTLq92zxMJGLoCdO4tziEfS1M9vf+RSwKaZf7G0TfJ3vvCajdnUPc6lsr9 G2sUJbGr4DIe5EgZz0uPpHB6ROajp9+yAAWYMTQ9yg9RwoKVhC4O8EY1lHvVguejm6FF xiY9gHI0QToPy5fvhDGWcbgGU+/CAkzLgEuOtb1m2LKBX1Wcakj1P80/KsCXP8yArqxz EeOuwIhkHdxq/UQhaSc7UU/JHh80G2mYVZQp6wA+hXSIoBrFht06jR664lqwy6Oe6RpG Cyl2WF9recbJe7hXx7COPpNU/e4Ns1laH6dNsKHCKqx+J0xpeRwqtV7m+lgnQ2aQEiBq 8OIA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q90-v6si15941180pfa.272.2018.08.27.09.50.34; Mon, 27 Aug 2018 09:50:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727077AbeH0Ugl (ORCPT + 99 others); Mon, 27 Aug 2018 16:36:41 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:43580 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727444AbeH0Ugl (ORCPT ); Mon, 27 Aug 2018 16:36:41 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id ABC0B4001868; Mon, 27 Aug 2018 16:49:17 +0000 (UTC) Received: from vitty.brq.redhat.com (ovpn-204-86.brq.redhat.com [10.40.204.86]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6CDE52166B41; Mon, 27 Aug 2018 16:49:14 +0000 (UTC) From: Vitaly Kuznetsov To: kvm@vger.kernel.org Cc: Paolo Bonzini , =?UTF-8?q?Radim=20Kr=C4=8Dm=C3=A1=C5=99?= , Roman Kagan , "K. Y. Srinivasan" , Haiyang Zhang , Stephen Hemminger , "Michael Kelley (EOSG)" , Mohammed Gamal , Cathy Avery , Wanpeng Li , linux-kernel@vger.kernel.org Subject: [PATCH v5 4/5] x86/hyper-v: rename ipi_arg_{ex,non_ex} structures Date: Mon, 27 Aug 2018 18:48:57 +0200 Message-Id: <20180827164858.12496-5-vkuznets@redhat.com> In-Reply-To: <20180827164858.12496-1-vkuznets@redhat.com> References: <20180827164858.12496-1-vkuznets@redhat.com> X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Mon, 27 Aug 2018 16:49:17 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Mon, 27 Aug 2018 16:49:17 +0000 (UTC) for IP:'10.11.54.6' DOMAIN:'int-mx06.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'vkuznets@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Reviewed-by: Roman Kagan --- arch/x86/hyperv/hv_apic.c | 8 ++++---- arch/x86/include/asm/hyperv-tlfs.h | 16 +++++++++------- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/arch/x86/hyperv/hv_apic.c b/arch/x86/hyperv/hv_apic.c index 5b0f613428c2..2c43e3055948 100644 --- a/arch/x86/hyperv/hv_apic.c +++ b/arch/x86/hyperv/hv_apic.c @@ -95,8 +95,8 @@ static void hv_apic_eoi_write(u32 reg, u32 val) */ static bool __send_ipi_mask_ex(const struct cpumask *mask, int vector) { - struct ipi_arg_ex **arg; - struct ipi_arg_ex *ipi_arg; + struct hv_send_ipi_ex **arg; + struct hv_send_ipi_ex *ipi_arg; unsigned long flags; int nr_bank = 0; int ret = 1; @@ -105,7 +105,7 @@ static bool __send_ipi_mask_ex(const struct cpumask *mask, int vector) return false; local_irq_save(flags); - arg = (struct ipi_arg_ex **)this_cpu_ptr(hyperv_pcpu_input_arg); + arg = (struct hv_send_ipi_ex **)this_cpu_ptr(hyperv_pcpu_input_arg); ipi_arg = *arg; if (unlikely(!ipi_arg)) @@ -135,7 +135,7 @@ static bool __send_ipi_mask_ex(const struct cpumask *mask, int vector) static bool __send_ipi_mask(const struct cpumask *mask, int vector) { int cur_cpu, vcpu; - struct ipi_arg_non_ex ipi_arg; + struct hv_send_ipi ipi_arg; int ret = 1; trace_hyperv_send_ipi_mask(mask, vector); diff --git a/arch/x86/include/asm/hyperv-tlfs.h b/arch/x86/include/asm/hyperv-tlfs.h index e977b6b3a538..00e01d215f74 100644 --- a/arch/x86/include/asm/hyperv-tlfs.h +++ b/arch/x86/include/asm/hyperv-tlfs.h @@ -726,19 +726,21 @@ struct hv_enlightened_vmcs { #define HV_STIMER_AUTOENABLE (1ULL << 3) #define HV_STIMER_SINT(config) (__u8)(((config) >> 16) & 0x0F) -struct ipi_arg_non_ex { - u32 vector; - u32 reserved; - u64 cpu_mask; -}; - struct hv_vpset { u64 format; u64 valid_bank_mask; u64 bank_contents[]; }; -struct ipi_arg_ex { +/* HvCallSendSyntheticClusterIpi hypercall */ +struct hv_send_ipi { + u32 vector; + u32 reserved; + u64 cpu_mask; +}; + +/* HvCallSendSyntheticClusterIpiEx hypercall */ +struct hv_send_ipi_ex { u32 vector; u32 reserved; struct hv_vpset vp_set; -- 2.14.4