search for: res_common

Displaying 8 results from an estimated 8 matches for "res_common".

Did you mean: nfs_common
2015 Jun 18
2
[PATCH v2] virtio-pci: alloc only resources actually used.
.../virtio_pci_common.h index 28ee4e5..9e744b8 100644 --- a/drivers/virtio/virtio_pci_common.h +++ b/drivers/virtio/virtio_pci_common.h @@ -75,6 +75,11 @@ struct virtio_pci_device { /* Multiply queue_notify_off by this value. (non-legacy mode). */ u32 notify_offset_multiplier; + struct resource *res_common; + struct resource *res_isr; + struct resource *res_device; + struct resource *res_notify; + /* Legacy only field */ /* the IO mapping for the PCI config space */ void __iomem *ioaddr; diff --git a/drivers/virtio/virtio_pci_legacy.c b/drivers/virtio/virtio_pci_legacy.c index 256a527..48bc979...
2015 Jun 16
2
[PATCH] virtio-pci: alloc only resources actually used.
.../virtio_pci_common.h index 28ee4e5..9e744b8 100644 --- a/drivers/virtio/virtio_pci_common.h +++ b/drivers/virtio/virtio_pci_common.h @@ -75,6 +75,11 @@ struct virtio_pci_device { /* Multiply queue_notify_off by this value. (non-legacy mode). */ u32 notify_offset_multiplier; + struct resource *res_common; + struct resource *res_isr; + struct resource *res_device; + struct resource *res_notify; + /* Legacy only field */ /* the IO mapping for the PCI config space */ void __iomem *ioaddr; diff --git a/drivers/virtio/virtio_pci_legacy.c b/drivers/virtio/virtio_pci_legacy.c index 256a527..48bc979...
2015 Jun 18
2
[PATCH v2] virtio-pci: alloc only resources actually used.
.../virtio_pci_common.h index 28ee4e5..9e744b8 100644 --- a/drivers/virtio/virtio_pci_common.h +++ b/drivers/virtio/virtio_pci_common.h @@ -75,6 +75,11 @@ struct virtio_pci_device { /* Multiply queue_notify_off by this value. (non-legacy mode). */ u32 notify_offset_multiplier; + struct resource *res_common; + struct resource *res_isr; + struct resource *res_device; + struct resource *res_notify; + /* Legacy only field */ /* the IO mapping for the PCI config space */ void __iomem *ioaddr; diff --git a/drivers/virtio/virtio_pci_legacy.c b/drivers/virtio/virtio_pci_legacy.c index 256a527..48bc979...
2015 Jun 16
2
[PATCH] virtio-pci: alloc only resources actually used.
.../virtio_pci_common.h index 28ee4e5..9e744b8 100644 --- a/drivers/virtio/virtio_pci_common.h +++ b/drivers/virtio/virtio_pci_common.h @@ -75,6 +75,11 @@ struct virtio_pci_device { /* Multiply queue_notify_off by this value. (non-legacy mode). */ u32 notify_offset_multiplier; + struct resource *res_common; + struct resource *res_isr; + struct resource *res_device; + struct resource *res_notify; + /* Legacy only field */ /* the IO mapping for the PCI config space */ void __iomem *ioaddr; diff --git a/drivers/virtio/virtio_pci_legacy.c b/drivers/virtio/virtio_pci_legacy.c index 256a527..48bc979...
2015 Jun 16
0
[PATCH] virtio-pci: alloc only resources actually used.
....9e744b8 100644 > --- a/drivers/virtio/virtio_pci_common.h > +++ b/drivers/virtio/virtio_pci_common.h > @@ -75,6 +75,11 @@ struct virtio_pci_device { > /* Multiply queue_notify_off by this value. (non-legacy mode). */ > u32 notify_offset_multiplier; > > + struct resource *res_common; > + struct resource *res_isr; > + struct resource *res_device; > + struct resource *res_notify; > + > /* Legacy only field */ > /* the IO mapping for the PCI config space */ > void __iomem *ioaddr; > diff --git a/drivers/virtio/virtio_pci_legacy.c b/drivers/virtio/vir...
2015 Jun 18
0
[PATCH v2] virtio-pci: alloc only resources actually used.
....9e744b8 100644 > --- a/drivers/virtio/virtio_pci_common.h > +++ b/drivers/virtio/virtio_pci_common.h > @@ -75,6 +75,11 @@ struct virtio_pci_device { > /* Multiply queue_notify_off by this value. (non-legacy mode). */ > u32 notify_offset_multiplier; > > + struct resource *res_common; > + struct resource *res_isr; > + struct resource *res_device; > + struct resource *res_notify; > + > /* Legacy only field */ > /* the IO mapping for the PCI config space */ > void __iomem *ioaddr; > diff --git a/drivers/virtio/virtio_pci_legacy.c b/drivers/virtio/vir...
2015 Jun 18
1
[PATCH v2] virtio-pci: alloc only resources actually used.
...et of 4 fixed regions. > > + return request_mem_region(pci_resource_start(dev, bar) + offset, > > + length, name); > > Hmm this seems wrong, resource can be IO, not just memory. Right (not the case in the current qemu implementation, but still ...). > > + vp_dev->res_common = request_capability(pci_dev, common, 0, > > Please make limit = sizeof(struct virtio_pci_common_cfg) and not 0. > > > + "virtio-pci-common"); > > + vp_dev->res_isr = request_capability(pci_dev, isr, 0, > > + "virtio-pci-isr"); > &gt...
2015 Jun 18
1
[PATCH v2] virtio-pci: alloc only resources actually used.
...et of 4 fixed regions. > > + return request_mem_region(pci_resource_start(dev, bar) + offset, > > + length, name); > > Hmm this seems wrong, resource can be IO, not just memory. Right (not the case in the current qemu implementation, but still ...). > > + vp_dev->res_common = request_capability(pci_dev, common, 0, > > Please make limit = sizeof(struct virtio_pci_common_cfg) and not 0. > > > + "virtio-pci-common"); > > + vp_dev->res_isr = request_capability(pci_dev, isr, 0, > > + "virtio-pci-isr"); > &gt...