Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp619639imm; Wed, 6 Jun 2018 03:19:15 -0700 (PDT) X-Google-Smtp-Source: ADUXVKICz5JRhdFDrlLuI6wxu+reCaonjiXjkuRkCLoqPhD/MSmirFT6yVF9b0sVTixnr9YQOckJ X-Received: by 2002:a17:902:343:: with SMTP id 61-v6mr2678540pld.39.1528280355067; Wed, 06 Jun 2018 03:19:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528280355; cv=none; d=google.com; s=arc-20160816; b=xRJdNdWxf94BCORUw63U2F694ZnH4Z/eEBGJkM/Gmvpxf9yJ2lorLGoyk0IXnyLQGg z8hSjww+E3qKzTYNyytz+AZzT7r+67RkaMxVNVD8oKxr+jBeK+ZlU++L+HEQ4NHhsINC wVT06yFbMRSCssc9I3cyO239DNN0GsEVMNED0fhkHEjg9pa2/XRbIKyiyzi2GbpdW6Kn uCst4zksEqBhpt1YT4mTDQgwxLdcTKrPlh4+pCmlKHlaTgLHaGjQz1FXRHLVXGljUafi xcs+Y3rnnVUv2CTbjVT0bOoxUEWxcOfAPv3+gA0Ar29swdfdR0wAReykL56vnbPWaxE5 NWMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date :arc-authentication-results; bh=xhXE8qX631TLHGCygSf1fSHGUv5R8b1PskSjmef5QOk=; b=itwIAY5afrWh15n5M8fE605A1a2GV7lpQKnrbvYADEiOa6hbH6fItKAIbO9AKGGpeb ybPSWUaEP5qxf+cl62t9wcEej8acSuY2CGeydYsEcMMXvkOLWZuY5cncZQNst5+8GDEd SNR5A2JygIu0LzscgCJoT2UJw/txlW2Njb/4VuUY6K2aHHACT8+C1LTKjcQGJ6V1Zv1k bPhroMF0bykAfKRDm+eC7yJ8ztefkc8TDJTVbyG77/MXAIX80yL/MjHimMwWXy6Urxp9 P6n5KGD0mwUpcVRrf3HT3b3VYKLaiQs8iK2gjdeHkHLxxivOH+r1LFYwcAnC9TLPjGs7 TaEA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b24-v6si26530375pfl.223.2018.06.06.03.19.00; Wed, 06 Jun 2018 03:19:15 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932378AbeFFKSN (ORCPT + 99 others); Wed, 6 Jun 2018 06:18:13 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:49462 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932291AbeFFKSK (ORCPT ); Wed, 6 Jun 2018 06:18:10 -0400 Received: from hsi-kbw-5-158-153-52.hsi19.kabel-badenwuerttemberg.de ([5.158.153.52] helo=nanos.tec.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1fQVVu-0004lK-OG; Wed, 06 Jun 2018 12:17:58 +0200 Date: Wed, 6 Jun 2018 12:17:58 +0200 (CEST) From: Thomas Gleixner To: Tianyu Lan cc: KY Srinivasan , Haiyang Zhang , Stephen Hemminger , "mingo@redhat.com" , "hpa@zytor.com" , "x86@kernel.org" , "vkuznets@redhat.com" , Alexander Grest , "devel@linuxdriverproject.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] HV: Fix definition of struct hv_vp_assist_page. In-Reply-To: <20180521092506.90121-1-Tianyu.Lan@microsoft.com> Message-ID: References: <20180521092506.90121-1-Tianyu.Lan@microsoft.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 21 May 2018, Tianyu Lan wrote: KY ???? > The struct hv_vp_assist_page was defined incorrectly. > The "vtl_control" should be u64[3], "nested_enlightenments_control" > should be a u64 and there is 7 reserved bytes following "enlighten_vmentry". > This patch is to fix it. > > Signed-off-by: Lan Tianyu > --- > arch/x86/include/asm/hyperv-tlfs.h | 9 +++++---- > 1 file changed, 5 insertions(+), 4 deletions(-) > > diff --git a/arch/x86/include/asm/hyperv-tlfs.h b/arch/x86/include/asm/hyperv-tlfs.h > index f7be6d03a310..fae0a5431cdd 100644 > --- a/arch/x86/include/asm/hyperv-tlfs.h > +++ b/arch/x86/include/asm/hyperv-tlfs.h > @@ -496,10 +496,11 @@ struct hv_timer_message_payload { > /* Define virtual processor assist page structure. */ > struct hv_vp_assist_page { > __u32 apic_assist; > - __u32 reserved; > - __u64 vtl_control[2]; > - __u64 nested_enlightenments_control[2]; > - __u32 enlighten_vmentry; > + __u32 reserved1; > + __u64 vtl_control[3]; > + __u64 nested_enlightenments_control; > + __u8 enlighten_vmentry; > + __u8 reserved2[7]; > __u64 current_nested_vmcs; > }; > > -- > 2.14.3 >