From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C4BB3C433E0 for ; Mon, 3 Aug 2020 20:59:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id CBCC422CAD for ; Mon, 3 Aug 2020 20:59:23 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="TwkydxG/" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729088AbgHCU7W (ORCPT ); Mon, 3 Aug 2020 16:59:22 -0400 Received: from us-smtp-2.mimecast.com ([205.139.110.61]:30239 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729079AbgHCU7U (ORCPT ); Mon, 3 Aug 2020 16:59:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1596488360; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=or+zNAibqtaoCeVVGOGdUm20NwzQtJQIDqrZeu9+GCU=; b=TwkydxG/QH72p48OLC6OaIreqgXJB38DjSy33FeNt36OWFT+QjSKpwiGD0BDC5UIgj0U4p Dxo0eJtmBlw31v8zV4ew6tTBjszgizSzRzDvOhyuFWne0UfdpalRrD9rcAwK8rSGk+VUN7 NISfbN4+kTrisagAM/P1xlmG0QivN/8= Received: from mail-qv1-f71.google.com (mail-qv1-f71.google.com [209.85.219.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-138-ELpv9psMOZ6bvRehq5RZ8g-1; Mon, 03 Aug 2020 16:59:18 -0400 X-MC-Unique: ELpv9psMOZ6bvRehq5RZ8g-1 Received: by mail-qv1-f71.google.com with SMTP id d30so7057245qve.5 for ; Mon, 03 Aug 2020 13:59:18 -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=or+zNAibqtaoCeVVGOGdUm20NwzQtJQIDqrZeu9+GCU=; b=pL3IexoZkdoJomJSLBSFIkGImvra5xKzbWgmkhKDVkCJ7cmHuUA95brR27HFv48b2e /+78bgMH8UIf4XX0Ysdw9WSiFX1KYd0sMZYmeqRNoyUhbwWHvfs2+sV24mb3aLEmGvME 41iS/GpV7ksmmtr/hfPkXHz+UFpsaICW098uwe5jZkSuYx7DibS7oLujbaQOtoJuTQwO Y7yZdI76tM8JGMsQyk4kj8/IC1imPisJs+1wTtrR6skVrb+fPzcLE0a91SX4QXphuM4Y z3wjaWutVwvS617s+RFVXGlg39QMM8dyMXTmH0AIxSIUc9AMUdZHNlVSghn46RtOFnjS O3Yg== X-Gm-Message-State: AOAM533+9PucmI4hk5eM/AHOAOqcGdqgLHza1b6rSgcKkpOn9t712pF6 zyryhY3TGtxZyC4K0vipTFEPpe7XjHcPOTRir4LErp58XVRMF6qZK1dJkKHhOyhOtzbmso24yG7 tvBOtGQoUjk9mo0Xa2DV60F4c X-Received: by 2002:ac8:1084:: with SMTP id a4mr17555984qtj.83.1596488358265; Mon, 03 Aug 2020 13:59:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzrapOZB7Hdxu0x7Z+dBtzskHcpM/llP/zvUq8ucoKtu/KA509zj05FQ3vDOugv6knjeTkoqw== X-Received: by 2002:ac8:1084:: with SMTP id a4mr17555977qtj.83.1596488358075; Mon, 03 Aug 2020 13:59:18 -0700 (PDT) Received: from redhat.com (bzq-79-177-102-128.red.bezeqint.net. [79.177.102.128]) by smtp.gmail.com with ESMTPSA id z14sm21310391qtn.92.2020.08.03.13.59.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Aug 2020 13:59:17 -0700 (PDT) Date: Mon, 3 Aug 2020 16:59:13 -0400 From: "Michael S. Tsirkin" To: linux-kernel@vger.kernel.org Cc: virtualization@lists.linux-foundation.org, Jason Wang , Vivek Goyal , Stefan Hajnoczi , Miklos Szeredi , linux-fsdevel@vger.kernel.org Subject: [PATCH v2 09/24] virtio_fs: correct tags for config space fields Message-ID: <20200803205814.540410-10-mst@redhat.com> References: <20200803205814.540410-1-mst@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200803205814.540410-1-mst@redhat.com> X-Mailer: git-send-email 2.27.0.106.g8ac3dc51b1 X-Mutt-Fcc: =sent Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since fs is a modern-only device, tag config space fields as having little endian-ness. Signed-off-by: Michael S. Tsirkin --- include/uapi/linux/virtio_fs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/uapi/linux/virtio_fs.h b/include/uapi/linux/virtio_fs.h index b02eb2ac3d99..3056b6e9f8ce 100644 --- a/include/uapi/linux/virtio_fs.h +++ b/include/uapi/linux/virtio_fs.h @@ -13,7 +13,7 @@ struct virtio_fs_config { __u8 tag[36]; /* Number of request queues */ - __u32 num_request_queues; + __le32 num_request_queues; } __attribute__((packed)); #endif /* _UAPI_LINUX_VIRTIO_FS_H */ -- MST From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3BAFBC433E0 for ; Mon, 3 Aug 2020 20:59:26 +0000 (UTC) Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3C50622C9F for ; Mon, 3 Aug 2020 20:59:26 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="TwkydxG/" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3C50622C9F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=virtualization-bounces@lists.linux-foundation.org Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id DCB2A855B1; Mon, 3 Aug 2020 20:59:25 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pCWn85ppMq4a; Mon, 3 Aug 2020 20:59:23 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by whitealder.osuosl.org (Postfix) with ESMTP id 1D29885692; Mon, 3 Aug 2020 20:59:23 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 0280CC0050; Mon, 3 Aug 2020 20:59:23 +0000 (UTC) Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by lists.linuxfoundation.org (Postfix) with ESMTP id AF915C004C for ; Mon, 3 Aug 2020 20:59:21 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 9F50C85A90 for ; Mon, 3 Aug 2020 20:59:21 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4RZFS2v-CNAw for ; Mon, 3 Aug 2020 20:59:21 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) by whitealder.osuosl.org (Postfix) with ESMTPS id 0C75785692 for ; Mon, 3 Aug 2020 20:59:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1596488360; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=or+zNAibqtaoCeVVGOGdUm20NwzQtJQIDqrZeu9+GCU=; b=TwkydxG/QH72p48OLC6OaIreqgXJB38DjSy33FeNt36OWFT+QjSKpwiGD0BDC5UIgj0U4p Dxo0eJtmBlw31v8zV4ew6tTBjszgizSzRzDvOhyuFWne0UfdpalRrD9rcAwK8rSGk+VUN7 NISfbN4+kTrisagAM/P1xlmG0QivN/8= Received: from mail-qv1-f71.google.com (mail-qv1-f71.google.com [209.85.219.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-439-sDAh1XXsNZKivVzg1-gStg-1; Mon, 03 Aug 2020 16:59:18 -0400 X-MC-Unique: sDAh1XXsNZKivVzg1-gStg-1 Received: by mail-qv1-f71.google.com with SMTP id x4so15988459qvu.18 for ; Mon, 03 Aug 2020 13:59:18 -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=or+zNAibqtaoCeVVGOGdUm20NwzQtJQIDqrZeu9+GCU=; b=DyJrQCrIFnGLy5SbieC2ODe2H2H8bLI8X2IahMaLZVk4DGgs5BV4YZAVrYjcdplWYA nhexUGotQRRhmqo986X0J0fmUKNfXzM8yGhdneU0zMHjbEMhvTso+mPncZMimP2xnuL8 Tub3c4fa6XNDmgqKkXFNtbnDqWwtNs6BmQgqy/2d9qco613+SqwpDSV8d/xHJbaqtZih G06e4FMTV/RlCuYLWcHaH6pyihFBLFGGJgacJQg/o1iAkFd9lbq2stp+5rrlaCGjo+hj lGyG35gxvbxYObQSkYq3kKRLAO36HsmLVmch7UKkVZM0GWHnhVIInphpEHCLQuprFaoQ P39g== X-Gm-Message-State: AOAM530Ie8LyXFPNJzaKxLz9Dw6dvvz0uPwxaPStaBFsCRd/gy0X/bUj xIm2dfzm27EIAybkp4+ZPilTZ7upc35E9cXuvZ1CMvw34TyaptV7UkfuM3sbFBZzizZ2VNCZAlE QteCyQ/wyscrzNAWkKbpdMKkt6aG9ANIGuMwNVYFRKQ== X-Received: by 2002:ac8:1084:: with SMTP id a4mr17555987qtj.83.1596488358265; Mon, 03 Aug 2020 13:59:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzrapOZB7Hdxu0x7Z+dBtzskHcpM/llP/zvUq8ucoKtu/KA509zj05FQ3vDOugv6knjeTkoqw== X-Received: by 2002:ac8:1084:: with SMTP id a4mr17555977qtj.83.1596488358075; Mon, 03 Aug 2020 13:59:18 -0700 (PDT) Received: from redhat.com (bzq-79-177-102-128.red.bezeqint.net. [79.177.102.128]) by smtp.gmail.com with ESMTPSA id z14sm21310391qtn.92.2020.08.03.13.59.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Aug 2020 13:59:17 -0700 (PDT) Date: Mon, 3 Aug 2020 16:59:13 -0400 From: "Michael S. Tsirkin" To: linux-kernel@vger.kernel.org Subject: [PATCH v2 09/24] virtio_fs: correct tags for config space fields Message-ID: <20200803205814.540410-10-mst@redhat.com> References: <20200803205814.540410-1-mst@redhat.com> MIME-Version: 1.0 In-Reply-To: <20200803205814.540410-1-mst@redhat.com> X-Mailer: git-send-email 2.27.0.106.g8ac3dc51b1 X-Mutt-Fcc: =sent X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Disposition: inline Cc: Miklos Szeredi , virtualization@lists.linux-foundation.org, Stefan Hajnoczi , linux-fsdevel@vger.kernel.org, Vivek Goyal X-BeenThere: virtualization@lists.linux-foundation.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Linux virtualization List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: virtualization-bounces@lists.linux-foundation.org Sender: "Virtualization" Since fs is a modern-only device, tag config space fields as having little endian-ness. Signed-off-by: Michael S. Tsirkin --- include/uapi/linux/virtio_fs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/uapi/linux/virtio_fs.h b/include/uapi/linux/virtio_fs.h index b02eb2ac3d99..3056b6e9f8ce 100644 --- a/include/uapi/linux/virtio_fs.h +++ b/include/uapi/linux/virtio_fs.h @@ -13,7 +13,7 @@ struct virtio_fs_config { __u8 tag[36]; /* Number of request queues */ - __u32 num_request_queues; + __le32 num_request_queues; } __attribute__((packed)); #endif /* _UAPI_LINUX_VIRTIO_FS_H */ -- MST _______________________________________________ Virtualization mailing list Virtualization@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/virtualization