Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp7918496imm; Thu, 28 Jun 2018 11:23:05 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLW6xEJAOP4b1JP6cUYwfo37+VMtdfXSoNo+vKrnrZf+37onCbvu6WNZvABRvQZxcLM3InI X-Received: by 2002:a17:902:1005:: with SMTP id b5-v6mr11656028pla.207.1530210185262; Thu, 28 Jun 2018 11:23:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530210185; cv=none; d=google.com; s=arc-20160816; b=TvgW4m2I0d7VL9oJCau2qXDA5OnOpYrgOZQhNj+d7zsI3vvkOR1OeWxcWiKsSZgU6P 3y/QFkvf4xyGcGBxWDBy3H1vOEWEqEjTBRnr2crnfDq4xJoYE50Vs/Wi4y7qNwe9POqK tfw3U9Wm5vLMzxOOlkB+q+KtqRRT3a2feQ8W2U8MBKEpQ/ZRG3TliwslbAlU1WRtLNKm WOJ2aO1b9BRqDehdnEy/w/DruBzu9hZ8KssGLuh/ecE4CaVT3+Pf8C7npWuwr0BUDqbl NpKtMZ6LF9NkTLQVvDu0SE4adNwH8IEVJsABXyy/4oMSAiHsGQJnOFAUKHeak9x+jAiK 7fWA== 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=vk2ZrraEXttFni2CUaPM2etAM4ovLEgmFMY2g4wQIeA/L+kL+7zR1/iDxRNQWcRx0v 3NwtYQwNjcj8Qx3VR22qJumJz3WxZuBJqE6Rs8BYha9D5939ulLXLy/giDwx4rj/5HL2 UdwTwYR4/bEi835MmyUSER4UGLgb/cW37G7yAEIcJcPmdJvjpfP9S5miRhRCUhvvOHZx R80WbmiT/V7CtdJuMW6UHRpCLVlhI30Jg4zcgewpNxDtxiBFR19TWJOsecJ0vaYBxail oxqXAns3AA8QGMqsokuyklKz9pvoiC4CZBTN+TXTbiGXNVnHO4k5Hn55RS0OCqeER2fG 9rkQ== 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 n20-v6si6344101pgb.589.2018.06.28.11.22.50; Thu, 28 Jun 2018 11:23:05 -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 S966400AbeF1Nx3 (ORCPT + 99 others); Thu, 28 Jun 2018 09:53:29 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:45246 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S966387AbeF1Nx0 (ORCPT ); Thu, 28 Jun 2018 09:53:26 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 53ABB400B45F; Thu, 28 Jun 2018 13:53:25 +0000 (UTC) Received: from vitty.brq.redhat.com (unknown [10.43.2.155]) by smtp.corp.redhat.com (Postfix) with ESMTP id 5C39020180F4; Thu, 28 Jun 2018 13:53:23 +0000 (UTC) From: Vitaly Kuznetsov To: kvm@vger.kernel.org Cc: x86@kernel.org, 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 v2 4/5] x86/hyper-v: rename ipi_arg_{ex,non_ex} structures Date: Thu, 28 Jun 2018 15:53:12 +0200 Message-Id: <20180628135313.17468-5-vkuznets@redhat.com> In-Reply-To: <20180628135313.17468-1-vkuznets@redhat.com> References: <20180628135313.17468-1-vkuznets@redhat.com> X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Thu, 28 Jun 2018 13:53:25 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Thu, 28 Jun 2018 13:53:25 +0000 (UTC) for IP:'10.11.54.4' DOMAIN:'int-mx04.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