Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp6130024pxv; Thu, 29 Jul 2021 07:13:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxMC3FOk8P+glLd6siCsHkehIU+NNsK+h3dVh2ZXOgtvKekVaE7DZn+JGTphal2NmnvbskS X-Received: by 2002:a02:8241:: with SMTP id q1mr4650515jag.134.1627567993809; Thu, 29 Jul 2021 07:13:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627567993; cv=none; d=google.com; s=arc-20160816; b=EmM1CRV/sQM/GEXTLdXjglikWVi9SsCPsERSceZOk23NnWu8BdyXv76OBvliuAKqC2 0b4IzdgW4K3iE0rYiMp8fkvdnhXjOiBGHbkSaTnrVPFPR/brm1Gq8xglD0I/mGqbHWjU EBGr1Fq7pbpNECsclNL9i8gKa6uaiwStRHchqAD/jRzAwiHjeNlML8o8CO23Emu49qTQ ZFhqAs3ZKFNqYN+tLtBFx8fyCZ+gSGDXKNiGJBPPdtUAxyHu/CrOhehCPlnNbD5ElkWr Qg9TtjiHV9E3xioViiwbYeFkQzdwbA+mafRPNKErHLowGq+M5enYYo/uw/Iywd9GtUlm 7MCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=8LofI00GAwLkUAnxAUd4xKumAPYSByZWAAynmglCQoo=; b=c5MDJmE5Z3g+qK0qi02/iDNb3opZWpD/V46rhNA1etsh+McNxIIl47yM+X2FX4g0VN 8VSUfOwjnllIT/yIxPjkTTxaWLFXcJ+KG78UcvF8vSZ+qdwD/3XDFBycRKqcYIrAHNOf cLiAWwqDTunHaqGwJWPvxR3v+VfEpL1LN0TwH0Q8wGfqL2RQR1XmlwSF8LqgmI42oK11 876bj0JVFD7LqaljwbtQ8M+nMmNK7yhEUYuwp8sHAH0I9OCJWCAoZGdp9bhwAiAkFtab X3WX8d4uZzuzt2haHOK8twcArrq4VXMzAfaATl3AKRwQ6PGcU+rRFSJEqxtWAW4ZosLp DLDQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r20si3340287jan.108.2021.07.29.07.13.02; Thu, 29 Jul 2021 07:13:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238868AbhG2OLO (ORCPT + 99 others); Thu, 29 Jul 2021 10:11:14 -0400 Received: from mail-wr1-f42.google.com ([209.85.221.42]:39914 "EHLO mail-wr1-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238548AbhG2OHL (ORCPT ); Thu, 29 Jul 2021 10:07:11 -0400 Received: by mail-wr1-f42.google.com with SMTP id b11so1775955wrx.6; Thu, 29 Jul 2021 07:07:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=8LofI00GAwLkUAnxAUd4xKumAPYSByZWAAynmglCQoo=; b=q1b6B0HkXqq6P43gcgLMIHU6Ks/hfTA1OMSMPH/UvlpedIaGJAImLN1++8tF3vszIc 1fY1Yqn1VD5cJ4ZAzpmWud+YZENUbwq1cgW6DW7lHw3u9DNk7mnc8kCqOQHjEetNDGVC 23Z7TGRNnw2F/Q3vnOKKIAyRcVhm9iSkD4hSqOdyZYoUgJXifZjOhlroahvj7+TtYlYE 20vVujKaucgBN0DjgHsFJmRGfxCe6oKBQZ2jwRNufwy9HuKTnkkz+6DDT8SE6nnHf01U Wk6H5n2rXpgi1XDhcSo1k8v90xEaInhQaJmtT4LtnkTyemjb4cL+LHaIvVARXMM1Remi nNNw== X-Gm-Message-State: AOAM530HYBk3HE/8WnShK1hYGAWrQ42Hn1IJsA+L9riZaoJIDLvM6jAt 0SHO1UexznYr6J2SvnyCuP0= X-Received: by 2002:a5d:5750:: with SMTP id q16mr5182030wrw.9.1627567627396; Thu, 29 Jul 2021 07:07:07 -0700 (PDT) Received: from liuwe-devbox-debian-v2 ([51.145.34.42]) by smtp.gmail.com with ESMTPSA id u2sm10170996wmm.37.2021.07.29.07.07.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Jul 2021 07:07:06 -0700 (PDT) Date: Thu, 29 Jul 2021 14:07:05 +0000 From: Wei Liu To: Vitaly Kuznetsov Cc: Siddharth Chandrasekaran , Siddharth Chandrasekaran , Liran Alon , Ioannis Aslanidis , linux-hyperv@vger.kernel.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, "K. Y. Srinivasan" , Haiyang Zhang , Stephen Hemminger , Wei Liu , Dexuan Cui , Arnd Bergmann Subject: Re: [PATCH] asm-generic/hyperv: Fix struct hv_message_header ordering Message-ID: <20210729140705.wj5tokeq6lkxm2yy@liuwe-devbox-debian-v2> References: <20210729133702.11383-1-sidcha@amazon.de> <87eebh9qhd.fsf@vitty.brq.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87eebh9qhd.fsf@vitty.brq.redhat.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 29, 2021 at 03:52:46PM +0200, Vitaly Kuznetsov wrote: > Siddharth Chandrasekaran writes: > > > According to Hyper-V TLFS Version 6.0b, struct hv_message_header members > > should be defined in the order: > > > > message_type, reserved, message_flags, payload_size > > > > but we have it defined in the order: > > > > message_type, payload_size, message_flags, reserved > > > > that is, the payload_size and reserved members swapped. > > Indeed, > > typedef struct > { > HV_MESSAGE_TYPE MessageType; > UINT16 Reserved; > HV_MESSAGE_FLAGS MessageFlags; > UINT8 PayloadSize; > union > { > UINT64 OriginationId; > HV_PARTITION_ID Sender; > HV_PORT_ID Port; > }; > } HV_MESSAGE_HEADER; Well. I think TLFS is wrong. Let me ask around. Wei.