Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp122802pxa; Tue, 4 Aug 2020 01:02:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJykZdYKfwyfJc2+j4CXmc/+D0hOV99DoIVJb7TGEXlyAYd56937Y2KYD+s8KS17wm57k2/o X-Received: by 2002:a17:906:38d8:: with SMTP id r24mr19735080ejd.341.1596528123733; Tue, 04 Aug 2020 01:02:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596528123; cv=none; d=google.com; s=arc-20160816; b=G+MykZn2kVzhRr9NinEgEzetG5nbhq/U73Kbx9//c4tr4edC5dPMl2n+m7dzKciJWY mLcJMAwsY0caAzyWPWqN8DbkKMfcSKxw7PrnjC2SA6ZHAi8e5Zve6YXmdJg9w4GEV1PM h+dadB7QBA4AXP737P3A517Y7C0TW5gYsIlcHu/YFkwborfETASdmTrojFVghxVmYtAV ljKR5G6sK7e7qFTE6kpKJscvjbNGdfUMc9V8aF02XLReaTOe8quYGWnmfXm8YKNSSbqY egZqYZ3fW3HTLzXIOhJO1HjWIgfD+DZWKsDe0V9zTQKMAZOLvId+3umkJyczpCc3uDsu HQWA== 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 :dkim-signature; bh=Ka4ursZWzHeHcUfmCrEOqwNJhgydKg059CXG4PMpUJs=; b=K/IYzpYfrdoUzYOkTPtvVFSjQPTCr0DjG6d5BDks61OCRaffF72TbwQe26I11k5Upt 2G/0iF31AtgBE8Qk25q/U0BaXWwCw+aPGVJf4WBy/7koFQtK1mEAw5vz1Ct7eYCx52vQ QKQPsChsD+jqy5Mpm4X154moS9eG89QJOFrzlYZT64NLcfzFNAGvI6/FaXmFoQVml1pZ VKyEQ/qpedp/4whCWzpSd6acAbtKMWZjnEM4gw39rgOX7tbUGF47rZpvGd2EC//CtO6b kgZQvDkRgy/wPHQ7FIQlyK3Ghwjy28VLKR4hcI9yI1QHrIaNSZq22mDtzWCM2eiZXdcm SAiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GVctKqeE; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l17si11136977eja.654.2020.08.04.01.01.40; Tue, 04 Aug 2020 01:02:03 -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; dkim=pass header.i=@linaro.org header.s=google header.b=GVctKqeE; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729570AbgHDIAu (ORCPT + 99 others); Tue, 4 Aug 2020 04:00:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54074 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728629AbgHDIAu (ORCPT ); Tue, 4 Aug 2020 04:00:50 -0400 Received: from mail-ej1-x643.google.com (mail-ej1-x643.google.com [IPv6:2a00:1450:4864:20::643]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9D40CC06174A for ; Tue, 4 Aug 2020 01:00:49 -0700 (PDT) Received: by mail-ej1-x643.google.com with SMTP id g19so27575643ejc.9 for ; Tue, 04 Aug 2020 01:00:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=Ka4ursZWzHeHcUfmCrEOqwNJhgydKg059CXG4PMpUJs=; b=GVctKqeEnzKv6JRsSZhMZ2HE6w6h79tHOaCY1SYi03CdT4HFUPh3sdxTNEKwQLRLLD faOVMHGokNejpY9ge0Bi83TyNLyLghDLHPAWPCeEjDauGZkzDNJRp3919MugXe4nW11X rLA0SN4Uc8b825rKOKODkOUWijYRgih9cnG4PkXHSeVhAtPG/gq/udGOn3xJcVs2YblA 9EFZsHbANwiYMpQfwPXYTYdwHQZHaOwcwWShTp3sAbnUUjG/vIlWYeweONtTtTDELaE+ vhd8VIhCfQec0Qoz+9YcFoMNsigWfuSPeESXwOOYdEYrQo0DkJPMn5SzcO9lEe/5NsA7 XQqQ== 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=Ka4ursZWzHeHcUfmCrEOqwNJhgydKg059CXG4PMpUJs=; b=nCQaegK3lQ0bwHL8L9CVSGUEXfIU4lk8XfjHsiUeWyJU3KjCXQ067frL5eokwId5YM k0aoD33/OXR20tNqtxEDyftZCsWPl1YWB7g7Sdaukww0Sb7lVp3q5+0sctMyoDDhjEvK F1ELqtzCRvxoqxBReXrsi7qBUkn3aP64LRhf0+zsUQikH1yxzvLoEVRD8Z9g5eazT3xv kWCV4bkz/J0+Y+pursHaqJWS0M9pOmXbY9sxdw23KAonlZmq86hVI2uIX6hz6JAxfna4 bpP9hIv2v4r/x+4Rj5k91dA9Wc5495WQP9FWTDtpHUznThqL70/fLa3a+/eYsFav8FIJ MD0A== X-Gm-Message-State: AOAM532rvcBK/uUpeZzq3OagrpQY6Gh4bkWeK/2uzRfqUcbqKlZw6NBZ FaydXvU5qhA27Qq/pbL9YEA5tg== X-Received: by 2002:a17:906:990c:: with SMTP id zl12mr19610454ejb.488.1596528048284; Tue, 04 Aug 2020 01:00:48 -0700 (PDT) Received: from myrica ([2001:1715:4e26:a7e0:116c:c27a:3e7f:5eaf]) by smtp.gmail.com with ESMTPSA id 32sm9260296edf.83.2020.08.04.01.00.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Aug 2020 01:00:47 -0700 (PDT) Date: Tue, 4 Aug 2020 10:00:26 +0200 From: Jean-Philippe Brucker To: "Michael S. Tsirkin" Cc: linux-kernel@vger.kernel.org, virtualization@lists.linux-foundation.org, Jason Wang Subject: Re: [PATCH v2 12/24] virtio_iommu: correct tags for config space fields Message-ID: <20200804080026.GA284384@myrica> References: <20200803205814.540410-1-mst@redhat.com> <20200803205814.540410-13-mst@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200803205814.540410-13-mst@redhat.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 03, 2020 at 04:59:27PM -0400, Michael S. Tsirkin wrote: > Since this is a modern-only device, > tag config space fields as having little endian-ness. > > Signed-off-by: Michael S. Tsirkin Reviewed-by: Jean-Philippe Brucker And tested with the latest sparse > --- > include/uapi/linux/virtio_iommu.h | 12 ++++++------ > 1 file changed, 6 insertions(+), 6 deletions(-) > > diff --git a/include/uapi/linux/virtio_iommu.h b/include/uapi/linux/virtio_iommu.h > index 48e3c29223b5..237e36a280cb 100644 > --- a/include/uapi/linux/virtio_iommu.h > +++ b/include/uapi/linux/virtio_iommu.h > @@ -18,24 +18,24 @@ > #define VIRTIO_IOMMU_F_MMIO 5 > > struct virtio_iommu_range_64 { > - __u64 start; > - __u64 end; > + __le64 start; > + __le64 end; > }; > > struct virtio_iommu_range_32 { > - __u32 start; > - __u32 end; > + __le32 start; > + __le32 end; > }; > > struct virtio_iommu_config { > /* Supported page sizes */ > - __u64 page_size_mask; > + __le64 page_size_mask; > /* Supported IOVA range */ > struct virtio_iommu_range_64 input_range; > /* Max domain ID size */ > struct virtio_iommu_range_32 domain_range; > /* Probe buffer size */ > - __u32 probe_size; > + __le32 probe_size; > }; > > /* Request types */ > -- > MST >