|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Minios-devel] [UNIKRAFT PATCH v3] plat/virtio: Update off-by-one device id
Hello Cristian Banu, Thank you the update. This patch looks fine. Reviewed-by: Sharan Santhanam <sharan.santhanam@xxxxxxxxx> Thanks & Regards Sharan On 12/07/2018 06:19 AM, Cristian Banu wrote: Extract the virtio_device_id for legacy devices from the PCI Subsystem Device ID. The previous behaviour resulted in some devices having the wrong ID attributed to them. For example, a virtio-9p device has a PCI Device ID of 0x1009 (which would have resulted in virtio_device_id of 10), but a PCI Subsystem Device ID of 9 (which is the correct constant under virtio_ids.h). Removes now unused function virtio_device_id_add and misleading macro VIRTIO_PCI_LEGACY_DEVICEID_START. Signed-off-by: Cristian Banu <cristb@xxxxxxxxx> --- plat/drivers/virtio/virtio_pci.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/plat/drivers/virtio/virtio_pci.c b/plat/drivers/virtio/virtio_pci.c index 8503b534d054..e398bfc650ce 100644 --- a/plat/drivers/virtio/virtio_pci.c +++ b/plat/drivers/virtio/virtio_pci.c @@ -46,7 +46,6 @@ #include <virtio/virtio_pci.h>#define VENDOR_QUMRANET_VIRTIO (0x1AF4)-#define VIRTIO_PCI_LEGACY_DEVICEID_START (0x0FFF) #define VIRTIO_PCI_MODERN_DEVICEID_START (0x1040)static struct uk_alloc *a; _______________________________________________ Minios-devel mailing list Minios-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/minios-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |