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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 35CD5C4332F for ; Thu, 10 Nov 2022 06:11:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231822AbiKJGLc (ORCPT ); Thu, 10 Nov 2022 01:11:32 -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 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