Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp175481rwb; Wed, 9 Nov 2022 22:19:04 -0800 (PST) X-Google-Smtp-Source: AMsMyM7k6Dws2qpYIv+d0o2otrHh3aD5aj2Zh1oN80E/nbQGlCh+jAMpK1of72qL10FF682unI6q X-Received: by 2002:a17:906:520f:b0:78d:cdb2:439c with SMTP id g15-20020a170906520f00b0078dcdb2439cmr2301264ejm.81.1668061144292; Wed, 09 Nov 2022 22:19:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668061144; cv=none; d=google.com; s=arc-20160816; b=m4AK1NGsZOtsFJk8159tw2QiIlRN0sP42/WFoB9hUYNlHOr2iLdt5GD7fQ4ccMXhts MrckdYeJj71Yus5rrizFx8Ev1nq/0vzemEk2D/03ECN3RyT/QwFzmB5IpP8QP39diIyS X4AthKBuD9acU+ZbI13IptMfXKD9dGqPc0Cfs/+SAAaTym5MuikNxL36guNy30xjCqL5 KQbTB8hS2b5reIWUCcK0l0FVMdW197TaFVYFL2dkqRJTvSlxwBkzQD2LwVIXjZQAnmpK 85aRXj4RZiV6LGfLzkb4KlCI2OuVOOt3zOSG9j3x+D3TiSArS/QoHZrHBX4VvHrZq3pj TQdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=jtUkm3Ct7yyt7jl7pnSjHNPfVSAjNAzjfGjenfAFxho=; b=DWty9Xmb7YIL2JC6ZW6gE97ore1XwpGRXjKK8TmrjlkErINi1UGpiw3BK6z+08MaBX Xf4wx4XuHd36pefN3F92FUKXunviXIbTlAd9aHLINz3LDLcWLl9gqVhdEs+Dl78eZxlv xvkkvda7/wyDOtYWLHLWpGJFQBZSKax5GJSq7ua0F/arYd+zsNBbsIgWelroe+hiDXVK agrvRcsAcOS9K2GQlBlWlZOuN9yGio+9tXt1GDrkKy6y8F/3IHRRc9WBcYc2/2G0IoVB 2bhPMXYzjOvvT6n5XRY1Ugn7Jh/wSxafbH0evRkgoBnU7oG9LdTS2N2BDOlb6ONxurrV d6jQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ds14-20020a170907724e00b0078adad5930esi19402984ejc.255.2022.11.09.22.18.41; Wed, 09 Nov 2022 22:19:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230117AbiKJGLb (ORCPT + 93 others); Thu, 10 Nov 2022 01:11:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36482 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229449AbiKJGL3 (ORCPT ); Thu, 10 Nov 2022 01:11:29 -0500 Received: from out199-1.us.a.mail.aliyun.com (out199-1.us.a.mail.aliyun.com [47.90.199.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7185275FC for ; Wed, 9 Nov 2022 22:11:27 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R161e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046060;MF=xianting.tian@linux.alibaba.com;NM=1;PH=DS;RN=5;SR=0;TI=SMTPD_---0VURd1rh_1668060673; Received: from localhost.localdomain(mailfrom:xianting.tian@linux.alibaba.com fp:SMTPD_---0VURd1rh_1668060673) by smtp.aliyun-inc.com; Thu, 10 Nov 2022 14:11:24 +0800 From: Xianting Tian To: mst@redhat.com, jasowang@redhat.com Cc: virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org, Xianting Tian Subject: [PATCH] virtio_pci: use PAGE_SIZE for pci vring align Date: Thu, 10 Nov 2022 14:11:11 +0800 Message-Id: <20221110061111.383076-1-xianting.tian@linux.alibaba.com> X-Mailer: git-send-email 2.17.1 X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY, USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As the comments of VIRTIO_PCI_VRING_ALIGN shows, we should use PAGE_SZIE not the hard code 4096. Signed-off-by: Xianting Tian --- include/uapi/linux/virtio_pci.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/uapi/linux/virtio_pci.h b/include/uapi/linux/virtio_pci.h index f703afc7ad31..ed5f678c682b 100644 --- a/include/uapi/linux/virtio_pci.h +++ b/include/uapi/linux/virtio_pci.h @@ -90,7 +90,7 @@ /* The alignment to use between consumer and producer parts of vring. * x86 pagesize again. */ -#define VIRTIO_PCI_VRING_ALIGN 4096 +#define VIRTIO_PCI_VRING_ALIGN PAGE_SIZE #endif /* VIRTIO_PCI_NO_LEGACY */ -- 2.17.1