public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] virtio_pci: use PAGE_SIZE for pci vring align
@ 2022-11-10  6:11 Xianting Tian
  2022-11-10  6:25 ` Jason Wang
  2022-11-10  6:27 ` Michael S. Tsirkin
  0 siblings, 2 replies; 3+ messages in thread
From: Xianting Tian @ 2022-11-10  6:11 UTC (permalink / raw)
  To: mst, jasowang; +Cc: virtualization, linux-kernel, Xianting Tian

As the comments of VIRTIO_PCI_VRING_ALIGN shows, we should use
PAGE_SZIE not the hard code 4096.

Signed-off-by: Xianting Tian <xianting.tian@linux.alibaba.com>
---
 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


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-11-10  6:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-10  6:11 [PATCH] virtio_pci: use PAGE_SIZE for pci vring align Xianting Tian
2022-11-10  6:25 ` Jason Wang
2022-11-10  6:27 ` Michael S. Tsirkin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox