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 D7B4BC433DF for ; Wed, 5 Aug 2020 19:27:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9A999206F6 for ; Wed, 5 Aug 2020 19:27:38 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="EMnIT0OP" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726524AbgHET1g (ORCPT ); Wed, 5 Aug 2020 15:27:36 -0400 Received: from us-smtp-2.mimecast.com ([207.211.31.81]:36008 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728648AbgHERNE (ORCPT ); Wed, 5 Aug 2020 13:13:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1596647582; 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=Cgzc7fKo8GoNarTDetAApPhaV9xAvssaIfGNymLUTzM=; b=EMnIT0OPC4DkFuKA/ZyWIOSSBnYVr+oRZo4QuerpLTqd4W8/j0TZj/nlyIf/lCmfGYvYE2 LRuon5P33QP33Jn7MiZbr80KwUcNwvJEZblfnAISCZsX3/ZR+JeVYSGNhqW8LrwHhms71D CN+w00Rs74fiLtpI6sedwq/2r6Zc4Sk= Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-200-bT8RRy36OLSBF3bxAViCxg-1; Wed, 05 Aug 2020 09:44:00 -0400 X-MC-Unique: bT8RRy36OLSBF3bxAViCxg-1 Received: by mail-wm1-f70.google.com with SMTP id v8so2471856wma.6 for ; Wed, 05 Aug 2020 06:44:00 -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=Cgzc7fKo8GoNarTDetAApPhaV9xAvssaIfGNymLUTzM=; b=ZWxMp5k0fK8rFzhqrdIVE9Vr2zR+4l/D8AhU7BRa37S7PXJs3qC8K9ldEASRy3i2GJ ezWKDPT2uQ7QaO7SqL6W1S5+4cil73/zEUExNDYTFmjieJq0T6fl3ffHrGu/rR6MAfMy wDeDllMZvL7VJmlMJ5Kf3xGitV/5B3nYZCx8El041WgAHubiLGc7twaTiXuNKH/M+jub +nAYZjBOzUEQjXYfdGaLVJZ5HPthxX3Q34i/6goFeUlWs62NBK2l10r2ez5V7J7ZcxeG cKJ6FZ3+f5qcIkeEA5HASg1XHdX54xB9KftYOkRU6oXyZw3Erb7LgRKYuospwd7zIi2w wzIw== X-Gm-Message-State: AOAM5307y60Z1tgYFnaZjE5AB2mUAjT5fPIzc5Ayu0K3GZ+Y5TFBTFha IgWAzxwiRouKuGx8Hr2oJD8iCpsfC6mKXXx6up1BUNpdtI7Mw/5eTzwS8vXekUh8f+dL4N91lf9 7EP2W5tcfDXDTJv/20Gx2UlfA X-Received: by 2002:adf:f847:: with SMTP id d7mr2742207wrq.328.1596635039290; Wed, 05 Aug 2020 06:43:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxRqO12QcUwDk9o3YsfPdSGZy8iXhCreHkQXWrlBGFyjkXszT12U4qC7xxUD0DhWva5Aj2v4Q== X-Received: by 2002:adf:f847:: with SMTP id d7mr2742192wrq.328.1596635039093; Wed, 05 Aug 2020 06:43:59 -0700 (PDT) Received: from redhat.com ([192.117.173.58]) by smtp.gmail.com with ESMTPSA id p8sm3005021wrq.9.2020.08.05.06.43.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Aug 2020 06:43:58 -0700 (PDT) Date: Wed, 5 Aug 2020 09:43:56 -0400 From: "Michael S. Tsirkin" To: linux-kernel@vger.kernel.org Cc: Cornelia Huck , Jason Wang , virtualization@lists.linux-foundation.org Subject: [PATCH v3 15/38] virtio_pmem: correct tags for config space fields Message-ID: <20200805134226.1106164-16-mst@redhat.com> References: <20200805134226.1106164-1-mst@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200805134226.1106164-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 this is a modern-only device, tag config space fields as having little endian-ness. Signed-off-by: Michael S. Tsirkin Reviewed-by: Cornelia Huck --- include/uapi/linux/virtio_pmem.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/uapi/linux/virtio_pmem.h b/include/uapi/linux/virtio_pmem.h index b022787ffb94..d676b3620383 100644 --- a/include/uapi/linux/virtio_pmem.h +++ b/include/uapi/linux/virtio_pmem.h @@ -15,8 +15,8 @@ #include struct virtio_pmem_config { - __u64 start; - __u64 size; + __le64 start; + __le64 size; }; #define VIRTIO_PMEM_REQ_TYPE_FLUSH 0 -- 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 6C697C433E0 for ; Wed, 5 Aug 2020 13:44:09 +0000 (UTC) Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (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 3E65522D05 for ; Wed, 5 Aug 2020 13:44:09 +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="c7CE5pwX" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3E65522D05 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 silver.osuosl.org (Postfix) with ESMTP id EEBCC2262E; Wed, 5 Aug 2020 13:44:08 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id aFOQ881R5NGL; Wed, 5 Aug 2020 13:44:07 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by silver.osuosl.org (Postfix) with ESMTP id CE6B52083F; Wed, 5 Aug 2020 13:44:07 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id C2C53C0051; Wed, 5 Aug 2020 13:44:07 +0000 (UTC) Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by lists.linuxfoundation.org (Postfix) with ESMTP id EFDD2C004C for ; Wed, 5 Aug 2020 13:44:05 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id DC99A20401 for ; Wed, 5 Aug 2020 13:44:05 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gLjsyTfiYtkd for ; Wed, 5 Aug 2020 13:44:05 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from us-smtp-delivery-1.mimecast.com (us-smtp-2.mimecast.com [205.139.110.61]) by silver.osuosl.org (Postfix) with ESMTPS id 58CBC2152A for ; Wed, 5 Aug 2020 13:44:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1596635044; 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=Cgzc7fKo8GoNarTDetAApPhaV9xAvssaIfGNymLUTzM=; b=c7CE5pwXkjoLBzIUOVmPE0iwre+3b/FPrxcvNPBQ63yz4VC/lSg7SX9UEAgx1r7rKDldQm Uxh6WeGlkMWvjTdeFmFw7jID/JKpZkTL8wIpCUdEbDyGymqFCJStNtxhW8VcedUsas6aIr +lVIyH759PMbwR4NZxn7Axu/7SkhI2Q= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-150-3bwFrZKbPeezNkj0md0-tA-1; Wed, 05 Aug 2020 09:44:00 -0400 X-MC-Unique: 3bwFrZKbPeezNkj0md0-tA-1 Received: by mail-wm1-f71.google.com with SMTP id g72so2472104wme.4 for ; Wed, 05 Aug 2020 06:44:00 -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=Cgzc7fKo8GoNarTDetAApPhaV9xAvssaIfGNymLUTzM=; b=MitLke3OM1SVCuIRBfVZ9yCuhVAH7vrKEtpxXeHfZ0Nl1mED38Ssod9uywXy52fis7 xseZF4GnGRhxY1BucAFNjD9JtiBZYSPvtJ3mSow8uNhRHqdCs+YUPwS/wXeHlNF4Tec8 b3XYH7TBSoZTNiTc4Taf2aDRT3lCI8eL0rSN37LE6FYG1s5xWgMbRU8MRtKmGuATgueg db5rxYBkp6qIkDdGxOQkIao97tYL30MsRSx6MAobvTaz7RnZKFTAKmh1TDKIzOCa2F+y icVA41MSBiRX9BV6YJpNP0ijY/AGqqjCxHdvtvPDx5e5DvE0KX9ZXApxuaAKaaep/GCr 9URA== X-Gm-Message-State: AOAM5320fASvCBGLyhYBToO9uZajFfbVXQjmqnJkV+GlPmXKtaMzlZGt c2tGzmkmpBu/VOLu/MMgNeKtEPpt1NpmugtGqtI9En1KGEgzpu/pfgwkJbkoH6OUEKzt2WLN58N fhDBoEqBJXsOaTZlT5kc7sJpOOMO/+qeYxSMu/b2ZYg== X-Received: by 2002:adf:f847:: with SMTP id d7mr2742205wrq.328.1596635039289; Wed, 05 Aug 2020 06:43:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxRqO12QcUwDk9o3YsfPdSGZy8iXhCreHkQXWrlBGFyjkXszT12U4qC7xxUD0DhWva5Aj2v4Q== X-Received: by 2002:adf:f847:: with SMTP id d7mr2742192wrq.328.1596635039093; Wed, 05 Aug 2020 06:43:59 -0700 (PDT) Received: from redhat.com ([192.117.173.58]) by smtp.gmail.com with ESMTPSA id p8sm3005021wrq.9.2020.08.05.06.43.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Aug 2020 06:43:58 -0700 (PDT) Date: Wed, 5 Aug 2020 09:43:56 -0400 From: "Michael S. Tsirkin" To: linux-kernel@vger.kernel.org Subject: [PATCH v3 15/38] virtio_pmem: correct tags for config space fields Message-ID: <20200805134226.1106164-16-mst@redhat.com> References: <20200805134226.1106164-1-mst@redhat.com> MIME-Version: 1.0 In-Reply-To: <20200805134226.1106164-1-mst@redhat.com> X-Mailer: git-send-email 2.27.0.106.g8ac3dc51b1 X-Mutt-Fcc: =sent Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=mst@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Disposition: inline Cc: Cornelia Huck , virtualization@lists.linux-foundation.org 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 this is a modern-only device, tag config space fields as having little endian-ness. Signed-off-by: Michael S. Tsirkin Reviewed-by: Cornelia Huck --- include/uapi/linux/virtio_pmem.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/uapi/linux/virtio_pmem.h b/include/uapi/linux/virtio_pmem.h index b022787ffb94..d676b3620383 100644 --- a/include/uapi/linux/virtio_pmem.h +++ b/include/uapi/linux/virtio_pmem.h @@ -15,8 +15,8 @@ #include struct virtio_pmem_config { - __u64 start; - __u64 size; + __le64 start; + __le64 size; }; #define VIRTIO_PMEM_REQ_TYPE_FLUSH 0 -- MST _______________________________________________ Virtualization mailing list Virtualization@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/virtualization