Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp948396imm; Fri, 22 Jun 2018 07:58:02 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIoesjmO+ezkrV34OxS1l6cinFbbhX+MydJwZ2TmWi5z4mk1ku2DQxOWibQHMnwspox8F8d X-Received: by 2002:a62:c00e:: with SMTP id x14-v6mr2127989pff.67.1529679482055; Fri, 22 Jun 2018 07:58:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529679482; cv=none; d=google.com; s=arc-20160816; b=nGiYfbFTVNKNnj/Fb1RGMsRl1KX838XF/RL099Swwf/J8l3eKeMNA7QpJeKIqcZsea aEn8SVUV3fMPx4wpFjCboO6nfefoJvJ/Y92gSVvHO4NrYFjnm09hIqH4XDoCHnJhHk/O jTOfQupex8o/302rYsc6F2EP75AvRiBMlw/WuI2bxv8Ju6C3Tc/wGJyoLpl11WeWRVQG XkSpT0nxBbPl6S3CBGrfvKi2BspVGFrcR0jTkXflCzzZ44d1VAURrhQErshDVl8fwvW8 OLq8dgr+cPlTXv+o0AgOHIZ+HROOg65WbayF/eX+ewLL3aaXCEMOXo258GaE/j+scidf xyGQ== 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=bda32MKU4pNFlaaNZ1Aq1iDooOT1dt0RmkSXEmg76dUeLkf9eMED41KsiJxr7wlJGv /j4oZ4d9+hPRLcW03ooH6cVTSTZONhV3/E+TcR3WmpXu94/ZQzCBn1sd6MPdCzreojgy zVFcAlRMesRpoX4YZO+k0enOxEwqATeH7uF+VxQ8qobLK7CFW+bOXlQDs3TBLmva69lq P9QP9rksQ4T0iDpWzIAg7roX9CBJEdxGYy9GxkYYsZkmfdshSW+niQt24U0BtdDIvv4P zFD4AN5oXi4paGCbuQheHULoYJmZaXalJYU4bdZIofFH5EpYMcOaEEqu4Nl8vGw3KUC8 yYyQ== 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 j66-v6si7592635pfc.243.2018.06.22.07.57.47; Fri, 22 Jun 2018 07:58:02 -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 S933764AbeFVO4q (ORCPT + 99 others); Fri, 22 Jun 2018 10:56:46 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:38714 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S933572AbeFVO4X (ORCPT ); Fri, 22 Jun 2018 10:56: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 2E95E8A703; Fri, 22 Jun 2018 14:56:23 +0000 (UTC) Received: from vitty.brq.redhat.com (unknown [10.43.2.155]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6D02011166E1; Fri, 22 Jun 2018 14:56:21 +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 , linux-kernel@vger.kernel.org Subject: [PATCH 2/3] x86/hyper-v: rename ipi_arg_{ex,non_ex} structures Date: Fri, 22 Jun 2018 16:56:15 +0200 Message-Id: <20180622145616.5851-3-vkuznets@redhat.com> In-Reply-To: <20180622145616.5851-1-vkuznets@redhat.com> References: <20180622145616.5851-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.2]); Fri, 22 Jun 2018 14:56:23 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.2]); Fri, 22 Jun 2018 14:56:23 +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