Displaying 10 results from an estimated 10 matches for "cap_type".
Did you mean:
map_type
2019 Jul 03
0
[RFC v2] vhost: introduce mdev based hardware vhost backend
...gt; + if (done > 0)
> + *ppos += done;
> +
> + mutex_unlock(&vdpa->ops_lock);
> +
> + return done;
> +}
> +EXPORT_SYMBOL(vdpa_write);
> +
> +static int vdpa_get_region_info(struct mdev_device *mdev,
> + struct vfio_region_info *region_info,
> + u16 *cap_type_id, void **cap_type)
> +{
> + struct vdpa_dev *vdpa;
> + u32 index, flags;
> + u64 size = 0;
> +
> + if (!mdev)
> + return -EINVAL;
> +
> + vdpa = mdev_get_drvdata(mdev);
> + if (!vdpa)
> + return -EINVAL;
> +
> + index = region_info->index;
> + if (in...
2019 Jul 03
4
[RFC v2] vhost: introduce mdev based hardware vhost backend
...ndle_notify_write(mdev, buf, count, ppos);
+ break;
+ }
+
+ if (done > 0)
+ *ppos += done;
+
+ mutex_unlock(&vdpa->ops_lock);
+
+ return done;
+}
+EXPORT_SYMBOL(vdpa_write);
+
+static int vdpa_get_region_info(struct mdev_device *mdev,
+ struct vfio_region_info *region_info,
+ u16 *cap_type_id, void **cap_type)
+{
+ struct vdpa_dev *vdpa;
+ u32 index, flags;
+ u64 size = 0;
+
+ if (!mdev)
+ return -EINVAL;
+
+ vdpa = mdev_get_drvdata(mdev);
+ if (!vdpa)
+ return -EINVAL;
+
+ index = region_info->index;
+ if (index >= VFIO_VHOST_NUM_REGIONS)
+ return -EINVAL;
+
+ mutex_lock(&a...
2019 Jul 03
4
[RFC v2] vhost: introduce mdev based hardware vhost backend
...ndle_notify_write(mdev, buf, count, ppos);
+ break;
+ }
+
+ if (done > 0)
+ *ppos += done;
+
+ mutex_unlock(&vdpa->ops_lock);
+
+ return done;
+}
+EXPORT_SYMBOL(vdpa_write);
+
+static int vdpa_get_region_info(struct mdev_device *mdev,
+ struct vfio_region_info *region_info,
+ u16 *cap_type_id, void **cap_type)
+{
+ struct vdpa_dev *vdpa;
+ u32 index, flags;
+ u64 size = 0;
+
+ if (!mdev)
+ return -EINVAL;
+
+ vdpa = mdev_get_drvdata(mdev);
+ if (!vdpa)
+ return -EINVAL;
+
+ index = region_info->index;
+ if (index >= VFIO_VHOST_NUM_REGIONS)
+ return -EINVAL;
+
+ mutex_lock(&a...
2013 May 28
3
[PATCH RFC] virtio-pci: new config layout: using memory BAR
...const char *name,
+ MemoryRegion *reg,
+ const MemoryRegionOps *ops,
+ unsigned offset,
+ unsigned size,
+ unsigned cap_type,
+ unsigned cap_length)
+{
+ struct virtio_pci_cap *cap;
+ int c;
+ memory_region_init_io(reg, ops, proxy, name, size);
+ memory_region_add_subregion(&proxy->config_bar, offset, reg);
+
+ if (!cap_length) {
+ cap_length = sizeof *cap;
+...
2013 May 28
3
[PATCH RFC] virtio-pci: new config layout: using memory BAR
...const char *name,
+ MemoryRegion *reg,
+ const MemoryRegionOps *ops,
+ unsigned offset,
+ unsigned size,
+ unsigned cap_type,
+ unsigned cap_length)
+{
+ struct virtio_pci_cap *cap;
+ int c;
+ memory_region_init_io(reg, ops, proxy, name, size);
+ memory_region_add_subregion(&proxy->config_bar, offset, reg);
+
+ if (!cap_length) {
+ cap_length = sizeof *cap;
+...
2013 May 28
0
[PATCH RFC] virtio-pci: new config layout: using memory BAR
...const char *name,
> + MemoryRegion *reg,
> + const MemoryRegionOps *ops,
> + unsigned offset,
> + unsigned size,
> + unsigned cap_type,
> + unsigned cap_length)
> +{
> + struct virtio_pci_cap *cap;
> + int c;
> + memory_region_init_io(reg, ops, proxy, name, size);
> + memory_region_add_subregion(&proxy->config_bar, offset, reg);
> +
> + if (!cap_length) {...
2018 Apr 10
0
[RFC] vhost: introduce mdev based hardware vhost backend
...gt; + if (done > 0)
> + *ppos += done;
> +
> + mutex_unlock(&vdpa->ops_lock);
> +
> + return done;
> +}
> +EXPORT_SYMBOL(vdpa_write);
> +
> +static int vdpa_get_region_info(struct mdev_device *mdev,
> + struct vfio_region_info *region_info,
> + u16 *cap_type_id, void **cap_type)
> +{
> + struct vdpa_dev *vdpa;
> + u32 bar_index;
> + u64 size = 0;
> +
> + if (!mdev)
> + return -EINVAL;
> +
> + vdpa = mdev_get_drvdata(mdev);
> + if (!vdpa)
> + return -EINVAL;
> +
> + bar_index = region_info->index;
> + if (b...
2018 Apr 02
2
[RFC] vhost: introduce mdev based hardware vhost backend
...handle_bar1_write(mdev, buf, count, ppos);
+ break;
+ }
+
+ if (done > 0)
+ *ppos += done;
+
+ mutex_unlock(&vdpa->ops_lock);
+
+ return done;
+}
+EXPORT_SYMBOL(vdpa_write);
+
+static int vdpa_get_region_info(struct mdev_device *mdev,
+ struct vfio_region_info *region_info,
+ u16 *cap_type_id, void **cap_type)
+{
+ struct vdpa_dev *vdpa;
+ u32 bar_index;
+ u64 size = 0;
+
+ if (!mdev)
+ return -EINVAL;
+
+ vdpa = mdev_get_drvdata(mdev);
+ if (!vdpa)
+ return -EINVAL;
+
+ bar_index = region_info->index;
+ if (bar_index >= VFIO_PCI_NUM_REGIONS)
+ return -EINVAL;
+
+ mutex_lock...
2018 Apr 02
2
[RFC] vhost: introduce mdev based hardware vhost backend
...handle_bar1_write(mdev, buf, count, ppos);
+ break;
+ }
+
+ if (done > 0)
+ *ppos += done;
+
+ mutex_unlock(&vdpa->ops_lock);
+
+ return done;
+}
+EXPORT_SYMBOL(vdpa_write);
+
+static int vdpa_get_region_info(struct mdev_device *mdev,
+ struct vfio_region_info *region_info,
+ u16 *cap_type_id, void **cap_type)
+{
+ struct vdpa_dev *vdpa;
+ u32 bar_index;
+ u64 size = 0;
+
+ if (!mdev)
+ return -EINVAL;
+
+ vdpa = mdev_get_drvdata(mdev);
+ if (!vdpa)
+ return -EINVAL;
+
+ bar_index = region_info->index;
+ if (bar_index >= VFIO_PCI_NUM_REGIONS)
+ return -EINVAL;
+
+ mutex_lock...
2013 Feb 07
41
Patch series for IGD passthrough
This series contains all the fixes required to produce a working IGD
passthrough box. All the changes are previously seen in the dev list but
not yet accepted. Some of them are out-dated and need some reshape.
Detailed description can be found later in each patch.
. [PATCH 1/3] qemu-xen-trad/pt_msi_disable: do not clear all MSI flags
. [PATCH 2/3] qemu-xen-trad: Correctly expose PCH ISA bridge