Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp237014imm; Wed, 22 Aug 2018 03:20:07 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaOap5CU/LfDjc054xWOR3hEOwxkR6PbaXNXf8dhwPmdxyBnNsWNLbAfOTb2cdIrUVIQKtX X-Received: by 2002:a63:8f48:: with SMTP id r8-v6mr476378pgn.189.1534933207221; Wed, 22 Aug 2018 03:20:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534933207; cv=none; d=google.com; s=arc-20160816; b=Lt9daGfBzQI2LnsQpRfTih1fwC8m0+dx0nWqd8VlM28vHIAyixkPYtqA1smcbYy/zi rnNew0PXqQlja2275T64wRlZ4xLEfT05E/jlgsS20wqsbBkUY8Rgm9gPGCl+lNhAc+Ws OvbhsLOT0eufXB8YAcKr8srJpAn6aaelybSuhMqeHkbQYGwy8ovfaKojF27aTofFHlhw QHivMWtdVHQrM2ckcMtyTj3RJWXPmnupNOXaTzObqTZWmJhVoEs9oSP2nkLDBvQowQsa 46wlTPu94Eaw1/IXR1HNXWaJR2DY/FCr+EE8G3YuIoIXXwEq0mIFMUbIR5DJv5eW0tAv bvsw== 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=g3w8unKnpqTzy+XUPjfOkwCcgljM3FbcMMqnoSSNyvE=; b=Xq5lRFl/vrIbrGotfqprx+tt5UkcCytOGqyVz93WoHbdXtAqXplc1lwgkyFDu5C0Hx R/9mSpGHvVdpz/uLVhlMjEbUA/AfI2/DceyNDEoK2CyGBcSpCdLHhV6EZ5qi4JFDjcSg RzIdOR2Qz5Nr3Ih6ck1onLve4mqgjr7wYpox5JEZ5U8ie6HNUQr+iNihqNVOFk9vII5Y 9placK/+7x6OkKCg/q8XRSFxZGscwq/flkjaxc2wxUDH1Am+cgPn77zgZC8FznFOY5KN IAhExzIPVpSQ9wIfE0jv7s2XV6teeKLjbjg/0F5Bl7a8EJtI0a6xr/D7DBKZSZTGQNi8 YlaA== 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 n15-v6si1368107pgr.516.2018.08.22.03.19.52; Wed, 22 Aug 2018 03:20:07 -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 S1728766AbeHVNnB (ORCPT + 99 others); Wed, 22 Aug 2018 09:43:01 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:42184 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728643AbeHVNnA (ORCPT ); Wed, 22 Aug 2018 09:43:00 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id F24B640216E8; Wed, 22 Aug 2018 10:18:42 +0000 (UTC) Received: from vitty.brq.redhat.com (unknown [10.43.2.155]) by smtp.corp.redhat.com (Postfix) with ESMTP id 41D9C63F37; Wed, 22 Aug 2018 10:18:41 +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)" , Wanpeng Li , linux-kernel@vger.kernel.org Subject: [PATCH v4 RESEND 4/5] x86/hyper-v: rename ipi_arg_{ex,non_ex} structures Date: Wed, 22 Aug 2018 12:18:31 +0200 Message-Id: <20180822101832.31763-5-vkuznets@redhat.com> In-Reply-To: <20180822101832.31763-1-vkuznets@redhat.com> References: <20180822101832.31763-1-vkuznets@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Wed, 22 Aug 2018 10:18:43 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Wed, 22 Aug 2018 10:18:43 +0000 (UTC) for IP:'10.11.54.5' DOMAIN:'int-mx05.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 | 12 ++++++------ arch/x86/include/asm/hyperv-tlfs.h | 16 +++++++++------- 2 files changed, 15 insertions(+), 13 deletions(-) diff --git a/arch/x86/hyperv/hv_apic.c b/arch/x86/hyperv/hv_apic.c index 402338365651..49284e1506b1 100644 --- a/arch/x86/hyperv/hv_apic.c +++ b/arch/x86/hyperv/hv_apic.c @@ -93,14 +93,14 @@ 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; 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)) @@ -130,8 +130,8 @@ 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 **arg; - struct ipi_arg_non_ex *ipi_arg; + struct hv_send_ipi **arg; + struct hv_send_ipi *ipi_arg; int ret = 1; unsigned long flags; @@ -148,7 +148,7 @@ static bool __send_ipi_mask(const struct cpumask *mask, int vector) return __send_ipi_mask_ex(mask, vector); local_irq_save(flags); - arg = (struct ipi_arg_non_ex **)this_cpu_ptr(hyperv_pcpu_input_arg); + arg = (struct hv_send_ipi **)this_cpu_ptr(hyperv_pcpu_input_arg); ipi_arg = *arg; if (unlikely(!ipi_arg)) diff --git a/arch/x86/include/asm/hyperv-tlfs.h b/arch/x86/include/asm/hyperv-tlfs.h index 08e24f552030..d0554409a3de 100644 --- a/arch/x86/include/asm/hyperv-tlfs.h +++ b/arch/x86/include/asm/hyperv-tlfs.h @@ -725,19 +725,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