Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2363322pxa; Mon, 3 Aug 2020 14:27:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx0Nx/Tw9QfLsnF+cCQZ++dm8hBseISdejzaY68Nqyvw3j3XkQ7HCN/ayX3YX+E3/l4TfKj X-Received: by 2002:a17:906:2cc2:: with SMTP id r2mr18081619ejr.482.1596490061027; Mon, 03 Aug 2020 14:27:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596490061; cv=none; d=google.com; s=arc-20160816; b=fIGXj0H1u4pDS6JS2g7zBemYTJAtYiy/aYfa5hK8VDKl7XWZg7PV8LwEwrQDHWXuUt LukIOT7wQTIW/AwZp1CkpN4zPzwQQnNlDRxaq/9HxAucnxzyhTJNLqmH3vnRFzPBh3PE QQpGwm1wCwODRLoxvMqSg6XiN6dPvIzhLiYV6tT1C7i5Qhf2B6liXmpEITKUN5pPNePs MPLfSGI+vzhrnJ9VpnRAvz290ixaHrvdsPpbtx/AXL4nIaov/wqYsmVdAwZNtDSlcCZg P5zdmDUugWOkmHzs7Xz0t1XSo9OsUyGRs2Z1dyjsc6qHdBVFQFhaZCUsQ41/Nq+wvMOp RRRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:in-reply-to:cc:references:message-id :date:subject:mime-version:from:content-transfer-encoding :dkim-signature; bh=iRtJQGNbvmgaLcvaxkwOS7vH+SUEibACGG1bnindh24=; b=e1Ij8KXXIS7PQMvz9TMsUkhHH0KyNjyEmn/LfNsYcCDGCSeX/theqooiyONPxTYhVt It6lMsHJZnJO44vpVd85waCJGuiMu4V3ZKAMpSS9B2xgUIsbY9w9BJifSfQn2qAX1vOV 7PuiTRzB5rLwQVYtA+YH09r14dkggUMl+CZNFBv3FWx3KKfxPLSEzl/ilZCfrMTc6JUd geGSuB1p8KKeRZt2SFItDD8zWdtnmks8NLhmKcAbiFbA3Cgi0MzDtffiV4Gz6L74EeVt mC2AGSxCDAuuT6SySL1vIOQnNOCKy4Ao4OdbD4qtCF7H+cZBj2bW036fzetrlzSUyf6s Gfow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=DhsOo1fJ; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cq3si10129765edb.474.2020.08.03.14.27.15; Mon, 03 Aug 2020 14:27:41 -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=@redhat.com header.s=mimecast20190719 header.b=DhsOo1fJ; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729080AbgHCV0w (ORCPT + 99 others); Mon, 3 Aug 2020 17:26:52 -0400 Received: from us-smtp-2.mimecast.com ([205.139.110.61]:35059 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726398AbgHCV0v (ORCPT ); Mon, 3 Aug 2020 17:26:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1596490010; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=iRtJQGNbvmgaLcvaxkwOS7vH+SUEibACGG1bnindh24=; b=DhsOo1fJv0V5OIYq7CysiXQpV/SYXpISXqa+fPa+SNih5uzeJvrx8isgBIopA/9tvJahMM aooM+xrXrGH27g/mMYuOhkVLtJ+YsOhP2tqzDlvS/L1dID9dbatjCVrd8Z/Yvos3q8Af3X xrCPJqVvMRYU0JNV31m5GKo0Cw9NXUM= Received: from mail-ej1-f69.google.com (mail-ej1-f69.google.com [209.85.218.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-30-kMKC7qJPPRae66OsdacJzw-1; Mon, 03 Aug 2020 17:26:48 -0400 X-MC-Unique: kMKC7qJPPRae66OsdacJzw-1 Received: by mail-ej1-f69.google.com with SMTP id q20so5427109ejx.13 for ; Mon, 03 Aug 2020 14:26:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:content-transfer-encoding:from:mime-version :subject:date:message-id:references:cc:in-reply-to:to; bh=iRtJQGNbvmgaLcvaxkwOS7vH+SUEibACGG1bnindh24=; b=aWhrapHfJh75SVL4oOe9MAfJKAx4XVOFYLUZB1GlgPAwsaHKeooq1v3AmpBTb5a7ot I0x90mZ8yHB+QC4YsNuv2weWzdnKUDmVvvyVNO30ing0hGdei/YjyZvtSWJjoiov09l3 5ix7FvK1imWPQXf0SRkpY7OnNGnZSZsJfEfg/rf+H5+DKxEhnrwYCC/Xx8OVzKVv98pJ vWBXrwZlenBcHP38ae425KoZoBXSJOsBrPFxD2CZrjBGmaOHItSAnfadhR4nyTOhP/ZR 3Pfto35cezLQ1SADLFWQn3qHlfwNWkgSXxVekRqS3C0DD9zk/+j1vMYmltQKZlUJCnwl zrsQ== X-Gm-Message-State: AOAM531/P5MAedHSCJs8ysgfwi20IoHTwKfLXNpFZM1KyIK9nj6DBcCN WaiKuaZVVK57kVTc/8dnf7dwALDfSRmn0cNz9R15i2gR8F+AY+WhbDBRbWrUfcvtNW5n6WtYU2C Al9rjr84RpOiexL9I1gjJ/rK3 X-Received: by 2002:a50:9e4c:: with SMTP id z70mr17274779ede.384.1596490007153; Mon, 03 Aug 2020 14:26:47 -0700 (PDT) X-Received: by 2002:a50:9e4c:: with SMTP id z70mr17274769ede.384.1596490006986; Mon, 03 Aug 2020 14:26:46 -0700 (PDT) Received: from [192.168.3.122] (p5b0c6449.dip0.t-ipconnect.de. [91.12.100.73]) by smtp.gmail.com with ESMTPSA id dm5sm8476175edb.32.2020.08.03.14.26.46 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 03 Aug 2020 14:26:46 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: David Hildenbrand Mime-Version: 1.0 (1.0) Subject: Re: [PATCH v2 05/24] virtio_balloon: correct tags for config space fields Date: Mon, 3 Aug 2020 23:26:46 +0200 Message-Id: <1E428D95-19D2-40BA-9C46-CA7B0D823A7E@redhat.com> References: <20200803205814.540410-6-mst@redhat.com> Cc: linux-kernel@vger.kernel.org, virtualization@lists.linux-foundation.org, Jason Wang , David Hildenbrand In-Reply-To: <20200803205814.540410-6-mst@redhat.com> To: "Michael S. Tsirkin" X-Mailer: iPhone Mail (17F80) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Am 03.08.2020 um 22:59 schrieb Michael S. Tsirkin : >=20 > =EF=BB=BFTag config space fields as having little endian-ness. > Note that balloon is special: LE even when using > the legacy interface. >=20 > Signed-off-by: Michael S. Tsirkin Acked-by: David Hildenbrand > --- > include/uapi/linux/virtio_balloon.h | 10 +++++----- > 1 file changed, 5 insertions(+), 5 deletions(-) >=20 > diff --git a/include/uapi/linux/virtio_balloon.h b/include/uapi/linux/virt= io_balloon.h > index dc3e656470dd..ddaa45e723c4 100644 > --- a/include/uapi/linux/virtio_balloon.h > +++ b/include/uapi/linux/virtio_balloon.h > @@ -45,20 +45,20 @@ > #define VIRTIO_BALLOON_CMD_ID_DONE 1 > struct virtio_balloon_config { > /* Number of pages host wants Guest to give up. */ > - __u32 num_pages; > + __le32 num_pages; > /* Number of pages we've actually got in balloon. */ > - __u32 actual; > + __le32 actual; > /* > * Free page hint command id, readonly by guest. > * Was previously named free_page_report_cmd_id so we > * need to carry that name for legacy support. > */ > union { > - __u32 free_page_hint_cmd_id; > - __u32 free_page_report_cmd_id; /* deprecated */ > + __le32 free_page_hint_cmd_id; > + __le32 free_page_report_cmd_id; /* deprecated */ > }; > /* Stores PAGE_POISON if page poisoning is in use */ > - __u32 poison_val; > + __le32 poison_val; > }; >=20 > #define VIRTIO_BALLOON_S_SWAP_IN 0 /* Amount of memory swapped in */ > --=20 > MST >=20