Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp858992imm; Fri, 29 Jun 2018 07:33:08 -0700 (PDT) X-Google-Smtp-Source: ADUXVKK9TZKBOMeuHVgQStAWJxGOVDCjZmMQ7GUZxHxUWx5oaxZvNKVZaLbjWlA0uTOY8Q8JjRrt X-Received: by 2002:a17:902:8bc6:: with SMTP id r6-v6mr14794173plo.257.1530282788051; Fri, 29 Jun 2018 07:33:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530282788; cv=none; d=google.com; s=arc-20160816; b=FfscuMNHpDLG0uA8Al/jtnekd6nUmDD6tLRNeOq3fW7XhBZmS5909d/6Wz0ykxBVNs O+q8p/hbbXkIgDvj/plwVtBWmzxuKw2TzlbP034VwMGTNaIZexC8lvJwCxNbGMKuKqQT NO2qgp4N65s6K7bq6O81yma51QBReucrn64fCimWMqDh5IxGaTUn3mAzzDdWn/W+cPq2 4D4eV2S7s7OODYymAhrerSf2pPEQRl7ZufHdGxpLi+7MgOrbONMkjXXlb+a3bLL2KNtq ZzP110PZlg2pwVsz1hyGspEJyCHS2PE50QREBvP/4/8O8nLiylI9pfTC9IdMoLQMgZQa KL6w== 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=bZRAUXCYKziVlOm9tAQ0IYHglajnd4KdxvKAcv4yxxgyALMHH8n6qE7JD8ijB+mJo5 M63CRyW8UFzJLZsdRNjkdQtdBJOBB97G+KFYVKK2FF1RkrEDLASy8hcBYcOR7O31Wik5 t0YPgO7Euh0bEmfsh89ZqEbw7bOqcCxqaVkoDG5dWenrmM5E7eCoGcuK0yQbVNYrCYQc UZK1aXtzV0JFV8uO1QBAQPlzPaEHl5OfE0+3H6fcW8zyNIYdktmFdPiWKpqTo+31kNwL 0MSl4jov1z/6L8V9P0M6kR7ewYSbFP9awpX5h6jXHwcp0+v4fcnh3otqaZeqDV0wEqrP beFA== 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 l1-v6si8841197plt.389.2018.06.29.07.32.53; Fri, 29 Jun 2018 07:33:08 -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 S936699AbeF2OPU (ORCPT + 99 others); Fri, 29 Jun 2018 10:15:20 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:57124 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S935441AbeF2OPM (ORCPT ); Fri, 29 Jun 2018 10:15:12 -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 435C4401DE71; Fri, 29 Jun 2018 14:15:12 +0000 (UTC) Received: from vitty.brq.redhat.com (unknown [10.43.2.155]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4516B1102E29; Fri, 29 Jun 2018 14:15:10 +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 v3 4/5] x86/hyper-v: rename ipi_arg_{ex,non_ex} structures Date: Fri, 29 Jun 2018 16:14:54 +0200 Message-Id: <20180629141455.19525-5-vkuznets@redhat.com> In-Reply-To: <20180629141455.19525-1-vkuznets@redhat.com> References: <20180629141455.19525-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.6]); Fri, 29 Jun 2018 14:15:12 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Fri, 29 Jun 2018 14:15:12 +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