Received: by 10.192.165.148 with SMTP id m20csp1538612imm; Thu, 10 May 2018 12:18:08 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpV99mK2nvMv28zbKXfJti+SDPHgi1l5o0xXxnzq+IIl0sWJzgG1h89zTos7xPy2KGGzS3x X-Received: by 2002:a17:902:41:: with SMTP id 59-v6mr2503190pla.345.1525979888120; Thu, 10 May 2018 12:18:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525979888; cv=none; d=google.com; s=arc-20160816; b=Yu23y+fD0ntzUSvossxl6hjbieT/P+keI/qsJnHkM/KJk89Zn+jhFOBf2Su2TNBltI UwKM9Fiv0abRSiZyt8Vcoe6V/X1zgoWYJq2zVUpm0UZq7FxWRHusZ2WK2qyWEx/gt2Cq NOUOiYHnQE0+lcqrakyQNzffRoAtbIvjA6BD5bwZ+ukyweqqH9aUJID1BdBiDsnMhEE0 Rc9VVyLLsgBY2kxo8tMw89ZrO/Xtv/BGrkhqQ7mgrL9hIQNQmPg8lInttqwFxizAif9Q oT1iYqK/P7jsfKdwahLSd5Ge1y9BCLrZIz6H0O2RWqMN2fiz1mp6OTwrzTJYi/t2sGyI cXCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :arc-authentication-results; bh=BUqw2HmcvJtplDEz75JpAzG+eN0+Vg5MKvBIBAA9Q40=; b=waC4+KzVYPFjmrU4wGVwV/9NkmM/TRuLJF9ggqcxZRw20E8cz34gskCUdtGnFumofG h9mt0lS+JrhZHvfs0yS2QrFPP+UInUn+3K6MgOp1LPeeUQtfzXNRhVWyatCM7mEZyU5J hoCp0wOCYoiE9Xw/ezszqyu9RekrVK8Z2HIprxlVXM6fvegQYNkZGgChxyKTVIuFJAcp wbQdj9T5GspZC7dfBawbPQ8FgleZecSEEZ1HPWNBKo8MXluwySsUI9miSWAPy3xgq7OP iqHgjB2JnK+mB5Scp4YKh915RclbfsVoBp/7Bmaq2mCQTyErChV+E1XAgPVbHUAHdsAt 6pWw== 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 p66-v6si1209131pga.180.2018.05.10.12.17.53; Thu, 10 May 2018 12:18: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 S1752165AbeEJTRR (ORCPT + 99 others); Thu, 10 May 2018 15:17:17 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:43418 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752082AbeEJTRL (ORCPT ); Thu, 10 May 2018 15:17:11 -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 9B9A940711B2; Thu, 10 May 2018 19:17:10 +0000 (UTC) Received: from flask (unknown [10.43.2.80]) by smtp.corp.redhat.com (Postfix) with SMTP id A4B131208F71; Thu, 10 May 2018 19:17:07 +0000 (UTC) Received: by flask (sSMTP sendmail emulation); Thu, 10 May 2018 21:17:07 +0200 Date: Thu, 10 May 2018 21:17:07 +0200 From: Radim =?utf-8?B?S3LEjW3DocWZ?= To: Vitaly Kuznetsov Cc: kvm@vger.kernel.org, x86@kernel.org, Paolo Bonzini , Roman Kagan , "K. Y. Srinivasan" , Haiyang Zhang , Stephen Hemminger , "Michael Kelley (EOSG)" , Mohammed Gamal , Cathy Avery , linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 1/6] x86/hyper-v: move struct hv_flush_pcpu{,ex} definitions to common header Message-ID: <20180510191706.GA3885@flask> References: <20180416110806.4896-1-vkuznets@redhat.com> <20180416110806.4896-2-vkuznets@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180416110806.4896-2-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.7]); Thu, 10 May 2018 19:17:10 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Thu, 10 May 2018 19:17:10 +0000 (UTC) for IP:'10.11.54.3' DOMAIN:'int-mx03.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'rkrcmar@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2018-04-16 13:08+0200, Vitaly Kuznetsov: > Hyper-V TLB flush hypercalls definitions will be required for KVM so move > them hyperv-tlfs.h. Structures also need to be renamed as '_pcpu' suffix is > invalid for a general-purpose definition. > > Signed-off-by: Vitaly Kuznetsov > --- > arch/x86/hyperv/mmu.c | 40 ++++++++++---------------------------- > arch/x86/include/asm/hyperv-tlfs.h | 20 +++++++++++++++++++ > 2 files changed, 30 insertions(+), 30 deletions(-) > > diff --git a/arch/x86/include/asm/hyperv-tlfs.h b/arch/x86/include/asm/hyperv-tlfs.h > @@ -703,4 +703,24 @@ struct hv_enlightened_vmcs { > #define HV_STIMER_AUTOENABLE (1ULL << 3) > #define HV_STIMER_SINT(config) (__u8)(((config) >> 16) & 0x0F) > > +/* HvFlushVirtualAddressSpace, HvFlushVirtualAddressList hypercalls */ > +struct hv_tlb_flush { > + u64 address_space; > + u64 flags; > + u64 processor_mask; > + u64 gva_list[]; > +}; > + > +/* HvFlushVirtualAddressSpaceEx, HvFlushVirtualAddressListEx hypercalls */ > +struct hv_tlb_flush_ex { > + u64 address_space; > + u64 flags; > + struct { > + u64 format; > + u64 valid_bank_mask; > + u64 bank_contents[]; > + } hv_vp_set; > + u64 gva_list[]; Why is the gva_list there?