Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1168733imm; Tue, 3 Jul 2018 06:44:56 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJb+8xLK/C6oAV0CwpedUFs98ks7AJWp3CGayV0L2TeXDca7BTiQvaRv0K+Ickh4d0ITL64 X-Received: by 2002:a17:902:14b:: with SMTP id 69-v6mr30338802plb.184.1530625496804; Tue, 03 Jul 2018 06:44:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530625496; cv=none; d=google.com; s=arc-20160816; b=jTSFhFItdKGB1Onfkmxv1xjSv50NISThy1wbN8Iundej+tNwIxFSwXgP6mw4Ju/VoB DM0DmrS1fcmgeUcxqaR9JX05X7u56+VJw+EA/+toFiW/j5gKrR08FTfPcFJQDV4s/N7X vfxvRF88lQKrsoAlG28sqPfeb/q7wTZAkTP3rIcNErc2RArUNqQUNi2cYv12uSGtMv19 igFSiK8eWLn6J1PnnH5pB/BSW9JYNzNVq0f+mobHehYqVsov/ofgmPyrLnPaMXsAMN18 xbYlHisvqcgW2hcFMeMuk9drJJYnXYA1qOePTdnhyDgWBrpZJO4lQ7q9WYtTwOUFvaRB ZJjw== 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=SU+GHzamjCTSBs7KRilkS5yVAU2OKMf30syqcrjXxOM=; b=JQ8W++Xc/7yaN5A2D/GbvhpahGXg8GRezV7eoTvHoVx8aGp+94sOItVeMQOc3m1LvX Nn+5Q5i2cM1pNk+C23/OLelz8YWOSQtaNqn9IMIdxZ+vNm4VpFNIfGjTFpvYXVQ0IX6s jKoq5JUmpsY4KLNwqIlBGKn5Jszk/DbEt6B9XX03bUo4yq931Do3q8JLUhiodHp6igLA 4E/8FeK29vqHznIWQNMgpyLB7dMLy1vk8Co+nurHSX8wSFvNu4PctmStHRU7Wh0T/JcG 8S3+vjeQQ+eLlOwlC0lxsbpamZJEhz5IpSz/XkAt6x2X7w5eVkDLr1AbCFA0pnKBTEW2 m5sw== 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 n21-v6si1115331plp.31.2018.07.03.06.44.41; Tue, 03 Jul 2018 06:44:56 -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 S932409AbeGCNmz (ORCPT + 99 others); Tue, 3 Jul 2018 09:42:55 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:48628 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932234AbeGCNmX (ORCPT ); Tue, 3 Jul 2018 09:42:23 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 4A002C320; Tue, 3 Jul 2018 13:42:22 +0000 (UTC) Received: from vitty.brq.redhat.com (unknown [10.43.2.155]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6F12C1117629; Tue, 3 Jul 2018 13:42:20 +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 v4 4/5] x86/hyper-v: rename ipi_arg_{ex,non_ex} structures Date: Tue, 3 Jul 2018 15:42:05 +0200 Message-Id: <20180703134206.27240-5-vkuznets@redhat.com> In-Reply-To: <20180703134206.27240-1-vkuznets@redhat.com> References: <20180703134206.27240-1-vkuznets@redhat.com> X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Tue, 03 Jul 2018 13:42:22 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Tue, 03 Jul 2018 13:42:22 +0000 (UTC) for IP:'10.11.54.3' DOMAIN:'int-mx03.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 --- 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 f68855499391..cb17168e6263 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)) @@ -128,8 +128,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; @@ -146,7 +146,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 b8c89265baf0..b52c9604b20d 100644 --- a/arch/x86/include/asm/hyperv-tlfs.h +++ b/arch/x86/include/asm/hyperv-tlfs.h @@ -723,19 +723,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