Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2347270pxa; Mon, 3 Aug 2020 14:00:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz3jqtv90OFe+d9WFppzZlaP++6ax0419YViNlLyoFZP15i2hz8UEG4FggkVCE/1mX5pgCq X-Received: by 2002:a05:6402:1643:: with SMTP id s3mr18158891edx.185.1596488407338; Mon, 03 Aug 2020 14:00:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596488407; cv=none; d=google.com; s=arc-20160816; b=AP2Dndajlvl5C807vz2bpTSsrmwa+VtOa/aXVF0DZenrz9zO3sRLbXeiI6JjDUowFO UeZao8RS62nDRr2IzDvuDy3eFNj/9/yGt05V4xNGYr64+exkpNuzYGgiY+7Z6C5bCXBn U2V4uAfZB1507hOGpI8QX/ZnrZ3Khi7C7822rRwBv84hCUxQlmLAxUAEE9iWIfBzEA01 B17SBGVcy3/aGWX/CPS5fPf18yk2uXK6bmwcEDujXYgpMEdML75qrZsk75DWxX6KHjlW /GS8eYkc6P0gXUkX/jX38t/XF15uvRL3WUa3Yc6Otetpv9NdnImMAHPPNtRcDVq8/0xu La6g== 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=i84PP3Re6PfoQrMXF63OXd7sE+dx3f/0IwVj5uJOuRY=; b=fz1ImlYel/Tz+4xoWT3vHRL+FimbL1RqoeEX2scttsK0t0IboeYzMsCNpFsg0XloNi k3sP9wgsScmySJViqD1lRwlfpBBwXjlf5a7HD4vmEl6bDLXDeG7WPDOmLCK+06YXPSeJ ZP/ms6nUxqb/LG/sEtjz08EpoZqCEopZDlWcP29YhR8VLhnq0HdX4I0lVTyh5+MpCrl4 Wle3O0n4Esmro+rLa0l+0ETrVu6mVLxJjLFrXCF7t1Qvpj9ALUHKzFSYM2BLnin7Yfkb ix67RjGS9hBgVC/emxkuSfDIsWIw7We/WabqeVfGvNgA/yBt1kfDcXkqWaSTZZT+b3Fg H56g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=C8dvCP3N; 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 h24si11426676ejt.451.2020.08.03.13.59.44; Mon, 03 Aug 2020 14:00:07 -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=C8dvCP3N; 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 S1729065AbgHCU7M (ORCPT + 99 others); Mon, 3 Aug 2020 16:59:12 -0400 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:55444 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728605AbgHCU7L (ORCPT ); Mon, 3 Aug 2020 16:59:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1596488350; 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=i84PP3Re6PfoQrMXF63OXd7sE+dx3f/0IwVj5uJOuRY=; b=C8dvCP3NAQCbUZ34s83daZUeUJBZPhtBv/4/6EMivE6iFSQVfAk0dE9K0saU3VPr0Jrp0y OZYcYnuLwRI4NL/yTqiphLJzO9i65ZEPyNZ4MW0q+p4nztL0Rn7q8hsB39J5s2hXx0VB5k /ZfaCL9HpH+OSKzJxzzkD8pa5UnWmZo= Received: from mail-qv1-f72.google.com (mail-qv1-f72.google.com [209.85.219.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-307-AVkE7VM_P828604qissRuw-1; Mon, 03 Aug 2020 16:59:09 -0400 X-MC-Unique: AVkE7VM_P828604qissRuw-1 Received: by mail-qv1-f72.google.com with SMTP id d19so5479714qvm.23 for ; Mon, 03 Aug 2020 13:59:09 -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=i84PP3Re6PfoQrMXF63OXd7sE+dx3f/0IwVj5uJOuRY=; b=NvwkoFa5XLsTAQST+6RcefdPFVpFgYJn0HR8gSJf0tYRBi7B98UnOsYI12DjOayiRs t14wtysCUPCo2rbckE49O/lbKRksM/fsAIwxNKcUWp1w3dozKa/z34XTQJrz+lErs6GA Zbz8gtDzgDMtQ4k5HceaYfHsbHYWPPMx0RtCFnqBD8JapG0E9/zbbITwrdzUZLsyf2+r KU5zySzvKXuTl0am9qMLWDNOth+Hb8kZPv4ota9nrA4bqxUOhgmF/kaGYdaWXv1M1oNC uqvBEVWhluMhuYjJlzmO+lMUAL32liwphQQEAgR4Ij5efDicQcMk29iOOMuAthlESgEV 4W8w== X-Gm-Message-State: AOAM532B2Qt/ibEVzw72DgoABHQx7JDowqFcUJ8i50nqQaj6pieNAQyl 07rL/D1A3DPlgg6k3NcAEy8PZlXbzYSAW3wD+gO1mGk4T2G1t+90dtaSyCac5E0hb9yLq2woTGH wo8tBYbY3as11WZjOqACzjJmi X-Received: by 2002:ad4:42cc:: with SMTP id f12mr19042820qvr.89.1596488348830; Mon, 03 Aug 2020 13:59:08 -0700 (PDT) X-Received: by 2002:ad4:42cc:: with SMTP id f12mr19042808qvr.89.1596488348608; Mon, 03 Aug 2020 13:59:08 -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 c22sm20470842qke.2.2020.08.03.13.59.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Aug 2020 13:59:07 -0700 (PDT) Date: Mon, 3 Aug 2020 16:59:04 -0400 From: "Michael S. Tsirkin" To: linux-kernel@vger.kernel.org Cc: virtualization@lists.linux-foundation.org, Jason Wang , Amit Shah Subject: [PATCH v2 07/24] virtio_console: correct tags for config space fields Message-ID: <20200803205814.540410-8-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 Tag config space fields as having virtio endian-ness. Signed-off-by: Michael S. Tsirkin --- include/uapi/linux/virtio_console.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/uapi/linux/virtio_console.h b/include/uapi/linux/virtio_console.h index b7fb108c9310..7e6ec2ff0560 100644 --- a/include/uapi/linux/virtio_console.h +++ b/include/uapi/linux/virtio_console.h @@ -45,13 +45,13 @@ struct virtio_console_config { /* colums of the screens */ - __u16 cols; + __virtio16 cols; /* rows of the screens */ - __u16 rows; + __virtio16 rows; /* max. number of ports this device can hold */ - __u32 max_nr_ports; + __virtio32 max_nr_ports; /* emergency write register */ - __u32 emerg_wr; + __virtio32 emerg_wr; } __attribute__((packed)); /* -- MST