Displaying 20 results from an estimated 50 matches for "virtio_id_block".
2023 Jun 27
4
[PATCH v1 0/2] vduse: add support for networking devices
This small series enables virtio-net device type in VDUSE.
With it, basic operation have been tested, both with
virtio-vdpa and vhost-vdpa using DPDK Vhost library series
adding VDUSE support using split rings layout (merged in
DPDK v23.07-rc1).
Control queue support (and so multiqueue) has also been
tested, but requires a Kernel series from Jason Wang
relaxing control queue polling [1] to
2023 Jun 27
4
[PATCH v1 0/2] vduse: add support for networking devices
This small series enables virtio-net device type in VDUSE.
With it, basic operation have been tested, both with
virtio-vdpa and vhost-vdpa using DPDK Vhost library series
adding VDUSE support using split rings layout (merged in
DPDK v23.07-rc1).
Control queue support (and so multiqueue) has also been
tested, but requires a Kernel series from Jason Wang
relaxing control queue polling [1] to
2023 Jul 04
3
[PATCH v2 0/3] vduse: add support for networking devices
This small series enables virtio-net device type in VDUSE.
With it, basic operation have been tested, both with
virtio-vdpa and vhost-vdpa using DPDK Vhost library series
adding VDUSE support using split rings layout (merged in
DPDK v23.07-rc1).
Control queue support (and so multiqueue) has also been
tested, but requires a Kernel series from Jason Wang
relaxing control queue polling [1] to
2007 Dec 21
0
[Virtio-for-kvm] [PATCH 3/7] userspace virtio
...work is licensed under the terms of the GNU GPL, version 2. See
+ * the COPYING file in the top-level directory.
+ *
+ */
+
+#include "virtio.h"
+#include "block.h"
+#include "pc.h"
+
+/* from Linux's linux/virtio_blk.h */
+
+/* The ID for virtio_block */
+#define VIRTIO_ID_BLOCK 2
+
+/* Feature bits */
+#define VIRTIO_BLK_F_BARRIER 0 /* Does host support barriers? */
+#define VIRTIO_BLK_F_SIZE_MAX 1 /* Indicates maximum segment size */
+#define VIRTIO_BLK_F_SEG_MAX 2 /* Indicates maximum # of segments */
+
+struct virtio_blk_config
+{
+ uint64_t cap...
2007 Dec 21
0
[Virtio-for-kvm] [PATCH 3/7] userspace virtio
...work is licensed under the terms of the GNU GPL, version 2. See
+ * the COPYING file in the top-level directory.
+ *
+ */
+
+#include "virtio.h"
+#include "block.h"
+#include "pc.h"
+
+/* from Linux's linux/virtio_blk.h */
+
+/* The ID for virtio_block */
+#define VIRTIO_ID_BLOCK 2
+
+/* Feature bits */
+#define VIRTIO_BLK_F_BARRIER 0 /* Does host support barriers? */
+#define VIRTIO_BLK_F_SIZE_MAX 1 /* Indicates maximum segment size */
+#define VIRTIO_BLK_F_SEG_MAX 2 /* Indicates maximum # of segments */
+
+struct virtio_blk_config
+{
+ uint64_t cap...
2023 May 08
1
[PATCH V2 2/5] vDPA/ifcvf: get_driver_features from virtio registers
...b/drivers/vdpa/ifcvf/ifcvf_main.c
index 1357c67014ab..4588484bd53d 100644
--- a/drivers/vdpa/ifcvf/ifcvf_main.c
+++ b/drivers/vdpa/ifcvf/ifcvf_main.c
@@ -410,7 +410,7 @@ static u64 ifcvf_vdpa_get_device_features(struct vdpa_device *vdpa_dev)
u64 features;
if (type == VIRTIO_ID_NET || type == VIRTIO_ID_BLOCK)
- features = ifcvf_get_features(vf);
+ features = ifcvf_get_dev_features(vf);
else {
features = 0;
IFCVF_ERR(pdev, "VIRTIO ID %u not supported\n", vf->dev_type);
@@ -428,7 +428,7 @@ static int ifcvf_vdpa_set_driver_features(struct vdpa_device *vdpa_dev, u64 feat
if (ret)...
2023 Mar 28
0
[PATCH v4 05/11] vduse: Support set_vq_affinity callback
...128,6 +132,7 @@ static struct class *vduse_class;
> static struct cdev vduse_ctrl_cdev;
> static struct cdev vduse_cdev;
> static struct workqueue_struct *vduse_irq_wq;
> +static struct workqueue_struct *vduse_irq_bound_wq;
>
> static u32 allowed_device_id[] = {
> VIRTIO_ID_BLOCK,
> @@ -708,6 +713,15 @@ static u32 vduse_vdpa_get_generation(struct vdpa_device *vdpa)
> return dev->generation;
> }
>
> +static int vduse_vdpa_set_vq_affinity(struct vdpa_device *vdpa, u16 idx,
> + const struct cpumask *cpu_mask)
> +{
> + struct vduse_de...
2023 Mar 31
2
[PATCH 2/5] get_driver_features from virito registers
...b/drivers/vdpa/ifcvf/ifcvf_main.c
index 1357c67014ab..4588484bd53d 100644
--- a/drivers/vdpa/ifcvf/ifcvf_main.c
+++ b/drivers/vdpa/ifcvf/ifcvf_main.c
@@ -410,7 +410,7 @@ static u64 ifcvf_vdpa_get_device_features(struct vdpa_device *vdpa_dev)
u64 features;
if (type == VIRTIO_ID_NET || type == VIRTIO_ID_BLOCK)
- features = ifcvf_get_features(vf);
+ features = ifcvf_get_dev_features(vf);
else {
features = 0;
IFCVF_ERR(pdev, "VIRTIO ID %u not supported\n", vf->dev_type);
@@ -428,7 +428,7 @@ static int ifcvf_vdpa_set_driver_features(struct vdpa_device *vdpa_dev, u64 feat
if (ret)...
2013 Aug 08
1
[PATCH v2 7/7] Sample Implementation of Intel MIC User Space Daemon.
...*virtblk_backend = "VIRTBLK_BACKEND";
> +static struct {
> + struct mic_device_desc dd;
> + struct mic_vqconfig vqconfig[1];
> + __u32 host_features, guest_acknowledgements;
> + struct virtio_blk_config blk_config;
> +} virtblk_dev_page = {
> + .dd = {
> + .type = VIRTIO_ID_BLOCK,
> + .num_vq = ARRAY_SIZE(virtblk_dev_page.vqconfig),
> + .feature_len = sizeof(virtblk_dev_page.host_features),
> + .config_len = sizeof(virtblk_dev_page.blk_config),
> + },
> + .vqconfig[0] = {
> + .num = htole16(MIC_VRING_ENTRIES),
> + },
> + .host_features =
> +...
2013 Aug 08
1
[PATCH v2 7/7] Sample Implementation of Intel MIC User Space Daemon.
...*virtblk_backend = "VIRTBLK_BACKEND";
> +static struct {
> + struct mic_device_desc dd;
> + struct mic_vqconfig vqconfig[1];
> + __u32 host_features, guest_acknowledgements;
> + struct virtio_blk_config blk_config;
> +} virtblk_dev_page = {
> + .dd = {
> + .type = VIRTIO_ID_BLOCK,
> + .num_vq = ARRAY_SIZE(virtblk_dev_page.vqconfig),
> + .feature_len = sizeof(virtblk_dev_page.host_features),
> + .config_len = sizeof(virtblk_dev_page.blk_config),
> + },
> + .vqconfig[0] = {
> + .num = htole16(MIC_VRING_ENTRIES),
> + },
> + .host_features =
> +...
2012 May 28
6
[PATCH 0/5] virtio: rng: fixes
Hi Rusty,
These are a few fixes for the virtio-rng driver. These were tested
using the not-yet-upstream virtio-rng device patch to qemu:
http://thread.gmane.org/gmane.comp.emulators.qemu/152668
Please apply.
Amit Shah (5):
virtio ids: fix comment for virtio-rng
virtio: rng: allow tasks to be killed that are waiting for rng input
virtio: rng: don't wait on host when module is going
2012 May 28
6
[PATCH 0/5] virtio: rng: fixes
Hi Rusty,
These are a few fixes for the virtio-rng driver. These were tested
using the not-yet-upstream virtio-rng device patch to qemu:
http://thread.gmane.org/gmane.comp.emulators.qemu/152668
Please apply.
Amit Shah (5):
virtio ids: fix comment for virtio-rng
virtio: rng: allow tasks to be killed that are waiting for rng input
virtio: rng: don't wait on host when module is going
2013 Aug 08
0
[PATCH v2 7/7] Sample Implementation of Intel MIC User Space Daemon.
...sysconfig/mic";
+static const char *virtblk_backend = "VIRTBLK_BACKEND";
+static struct {
+ struct mic_device_desc dd;
+ struct mic_vqconfig vqconfig[1];
+ __u32 host_features, guest_acknowledgements;
+ struct virtio_blk_config blk_config;
+} virtblk_dev_page = {
+ .dd = {
+ .type = VIRTIO_ID_BLOCK,
+ .num_vq = ARRAY_SIZE(virtblk_dev_page.vqconfig),
+ .feature_len = sizeof(virtblk_dev_page.host_features),
+ .config_len = sizeof(virtblk_dev_page.blk_config),
+ },
+ .vqconfig[0] = {
+ .num = htole16(MIC_VRING_ENTRIES),
+ },
+ .host_features =
+ htole32(1<<VIRTIO_BLK_F_SEG_MAX),
+ .bl...
2011 Nov 17
12
[PATCH v3 00/11] virtio: S4 support
Hi,
These patches add support for S4 to virtio (pci) and all drivers.
For each driver, all vqs are removed before hibernation, and then
re-created after restore. Some driver-specific uninit and init work
is also done in the freeze and restore functions.
All the drivers in testing work fine:
* virtio-blk is used for the only disk in the VM, IO works fine before
and after.
* virtio-console:
2011 Nov 17
12
[PATCH v3 00/11] virtio: S4 support
Hi,
These patches add support for S4 to virtio (pci) and all drivers.
For each driver, all vqs are removed before hibernation, and then
re-created after restore. Some driver-specific uninit and init work
is also done in the freeze and restore functions.
All the drivers in testing work fine:
* virtio-blk is used for the only disk in the VM, IO works fine before
and after.
* virtio-console:
2013 May 28
3
[PATCH RFC] virtio-pci: new config layout: using memory BAR
...addr);
+ break;
+ case 4:
+ /* Most devices don't have 64 bit config fields.
+ * Block is an exception: first 8 bytes include
+ * a 64 bit capacity field.
+ */
+ if (VIRTIO_HOST_IS_BIG_ENDIAN &&
+ proxy->vdev->device_id == VIRTIO_ID_BLOCK && addr < 8) {
+ /* Swap first two words */
+ addr ^= 0x4;
+ }
+ val = virtio_config_readl(proxy->vdev, addr);
+ break;
+ }
+ return val;
+}
+
+static void virtio_pci_config_device_write(void *opaque, hwaddr addr,
+...
2013 May 28
3
[PATCH RFC] virtio-pci: new config layout: using memory BAR
...addr);
+ break;
+ case 4:
+ /* Most devices don't have 64 bit config fields.
+ * Block is an exception: first 8 bytes include
+ * a 64 bit capacity field.
+ */
+ if (VIRTIO_HOST_IS_BIG_ENDIAN &&
+ proxy->vdev->device_id == VIRTIO_ID_BLOCK && addr < 8) {
+ /* Swap first two words */
+ addr ^= 0x4;
+ }
+ val = virtio_config_readl(proxy->vdev, addr);
+ break;
+ }
+ return val;
+}
+
+static void virtio_pci_config_device_write(void *opaque, hwaddr addr,
+...
2013 May 28
0
[PATCH RFC] virtio-pci: new config layout: using memory BAR
...se 4:
> + /* Most devices don't have 64 bit config fields.
> + * Block is an exception: first 8 bytes include
> + * a 64 bit capacity field.
> + */
> + if (VIRTIO_HOST_IS_BIG_ENDIAN &&
> + proxy->vdev->device_id == VIRTIO_ID_BLOCK && addr < 8) {
> + /* Swap first two words */
> + addr ^= 0x4;
> + }
> + val = virtio_config_readl(proxy->vdev, addr);
> + break;
> + }
> + return val;
> +}
> +
> +static void virtio_pci_config_device_write...
2011 Jul 28
10
[RFC PATCH 0/8] virtio: Support for hibernation (S4)
Hello,
These patches are an initial attempt at supporting hibernation for
virtio drivers.
The default configuration of event_index=on doesn't work; i.e. restore
from a hibernated image only works if the devices have event_index
support turned off. I have not yet dug into this, but is most likely
due to some state not being sync'ed. This could be related to the
hack that is patch 3.
2011 Jul 28
10
[RFC PATCH 0/8] virtio: Support for hibernation (S4)
Hello,
These patches are an initial attempt at supporting hibernation for
virtio drivers.
The default configuration of event_index=on doesn't work; i.e. restore
from a hibernated image only works if the devices have event_index
support turned off. I have not yet dug into this, but is most likely
due to some state not being sync'ed. This could be related to the
hack that is patch 3.