[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Minios-devel] [UNIKRAFT PATCH RFC 23/23] plat/virtio: Change the type of irq, base from u16 to u64 for arm64



On arm64, it only supports ECAM pci controller, hence u16 irq,base
is not enough.

Signed-off-by: Jia He <justin.he@xxxxxxx>
---
 plat/drivers/virtio/virtio_pci.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/plat/drivers/virtio/virtio_pci.c b/plat/drivers/virtio/virtio_pci.c
index e398bfc6..1a8723b1 100644
--- a/plat/drivers/virtio/virtio_pci.c
+++ b/plat/drivers/virtio/virtio_pci.c
@@ -57,9 +57,9 @@ struct virtio_pci_dev {
        /* Virtio Device */
        struct virtio_dev vdev;
        /* Pci base address */
-       __u16 pci_base_addr;
+       __u64 pci_base_addr;
        /* ISR Address Range */
-       __u16 pci_isr_addr;
+       __u64 pci_isr_addr;
        /* Pci device information */
        struct pci_device *pdev;
 };
@@ -351,6 +351,8 @@ static int virtio_pci_legacy_add_dev(struct pci_device 
*pci_dev,
 
        uk_pr_info("Added virtio-pci device %04x\n",
                   pci_dev->id.device_id);
+       uk_pr_info("Added virtio-pci subsystem_device_id %04x\n",
+                  pci_dev->id.subsystem_device_id);
 
        /* Mapping the virtio device identifier */
        vpci_dev->vdev.id.virtio_device_id = pci_dev->id.subsystem_device_id;
-- 
2.17.1


_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.