[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] RE: [UNIKRAFT PATCH RFCv2 26/27] plat/virtio_9p: Fix max virtqueue number 1024 on arm64
> -----Original Message----- > From: Jia He <justin.he@xxxxxxx> > Sent: Friday, May 29, 2020 1:57 PM > To: minios-devel@xxxxxxxxxxxxxxxxxxxx > Cc: Simon Kuenzer <simon.kuenzer@xxxxxxxxx>; > Sharan.Santhanam@xxxxxxxxx; Felipe Huici <felipe.huici@xxxxxxxxx>; Kaly > Xin <Kaly.Xin@xxxxxxx>; Justin He <Justin.He@xxxxxxx> > Subject: [UNIKRAFT PATCH RFCv2 26/27] plat/virtio_9p: Fix max virtqueue > number 1024 on arm64 > > On arm64, the virtqueue max number provided by qemu is 1024. > Otherwise, it reports: > Expected 128 descriptors, found 1024 (virtqueue > I am not sure it will have impact on x86 codes. Maybe we could dynamically allocate NUM_SEGMENTS by probing virtio-device since it is different btw arm64 virtio mmio and x86 virtio pci device. -- Cheers, Justin (Jia He) > Signed-off-by: Jia He <justin.he@xxxxxxx> > --- > plat/drivers/virtio/virtio_9p.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/plat/drivers/virtio/virtio_9p.c b/plat/drivers/virtio/virtio_9p.c > index fe0d69a..b29b1cb 100644 > --- a/plat/drivers/virtio/virtio_9p.c > +++ b/plat/drivers/virtio/virtio_9p.c > @@ -44,7 +44,7 @@ > #include <uk/plat/spinlock.h> > > #define DRIVER_NAME"virtio-9p" > -#define NUM_SEGMENTS128 /** The number of virtqueue descriptors. > */ > +#define NUM_SEGMENTS1024 /** The number of virtqueue > descriptors. */ > static struct uk_alloc *a; > > /* List of initialized virtio 9p devices. */ > -- > 2.17.1 IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |