Displaying 20 results from an estimated 39 matches for "backend_featur".
Did you mean:
backend_feature
2023 Feb 23
0
[PATCH v2 11/13] vdpa: block migration if dev does not have _F_SUSPEND
...f dev->shadow_vqs_enabled at initialization that means the device has
>>> + * been started with x-svq=on, so don't block migration
>>> + */
>>> + if (dev->migration_blocker == NULL && !v->shadow_vqs_enabled) {
>>> + uint64_t backend_features;
>>> +
>>> + /* We don't have dev->backend_features yet */
>>> + ret = vhost_vdpa_call(dev, VHOST_GET_BACKEND_FEATURES,
>>> + &backend_features);
>>> + if (unlikely(ret)) {
>>> +...
2010 Mar 30
1
[PATCH][QEMU][VHOST]fix feature bit handling for mergeable rx buffers
...;
#include <netpacket/packet.h>
#include <net/ethernet.h>
#include <net/if.h>
@@ -38,15 +39,6 @@ unsigned vhost_net_get_features(struct v
return features;
}
-void vhost_net_ack_features(struct vhost_net *net, unsigned features)
-{
- net->dev.acked_features = net->dev.backend_features;
- if (features & (1 << VIRTIO_F_NOTIFY_ON_EMPTY))
- net->dev.acked_features |= (1 << VIRTIO_F_NOTIFY_ON_EMPTY);
- if (features & (1 << VIRTIO_RING_F_INDIRECT_DESC))
- net->dev.acked_features |= (1 << VIRTIO_RING_F_INDIRECT_DESC);
-}
-
static int vhost_net...
2010 Mar 30
1
[PATCH][QEMU][VHOST]fix feature bit handling for mergeable rx buffers
...;
#include <netpacket/packet.h>
#include <net/ethernet.h>
#include <net/if.h>
@@ -38,15 +39,6 @@ unsigned vhost_net_get_features(struct v
return features;
}
-void vhost_net_ack_features(struct vhost_net *net, unsigned features)
-{
- net->dev.acked_features = net->dev.backend_features;
- if (features & (1 << VIRTIO_F_NOTIFY_ON_EMPTY))
- net->dev.acked_features |= (1 << VIRTIO_F_NOTIFY_ON_EMPTY);
- if (features & (1 << VIRTIO_RING_F_INDIRECT_DESC))
- net->dev.acked_features |= (1 << VIRTIO_RING_F_INDIRECT_DESC);
-}
-
static int vhost_net...
2009 Nov 02
2
[PATCHv4 6/6] qemu-kvm: vhost-net implementation
...features |= VIRTIO_F_NOTIFY_ON_EMPTY;
+ if (net->dev.features & (1 << VIRTIO_RING_F_INDIRECT_DESC))
+ features |= VIRTIO_RING_F_INDIRECT_DESC;
+ return features;
+}
+
+void vhost_net_ack_features(struct vhost_net *net, unsigned features)
+{
+ net->dev.acked_features = net->dev.backend_features;
+ if (features & (1 << VIRTIO_F_NOTIFY_ON_EMPTY))
+ net->dev.acked_features |= VIRTIO_F_NOTIFY_ON_EMPTY;
+ if (features & (1 << VIRTIO_RING_F_INDIRECT_DESC))
+ net->dev.acked_features |= VIRTIO_RING_F_INDIRECT_DESC;
+}
+
+static int vhost_net_get_fd(VLANClientState *b...
2009 Nov 02
2
[PATCHv4 6/6] qemu-kvm: vhost-net implementation
...features |= VIRTIO_F_NOTIFY_ON_EMPTY;
+ if (net->dev.features & (1 << VIRTIO_RING_F_INDIRECT_DESC))
+ features |= VIRTIO_RING_F_INDIRECT_DESC;
+ return features;
+}
+
+void vhost_net_ack_features(struct vhost_net *net, unsigned features)
+{
+ net->dev.acked_features = net->dev.backend_features;
+ if (features & (1 << VIRTIO_F_NOTIFY_ON_EMPTY))
+ net->dev.acked_features |= VIRTIO_F_NOTIFY_ON_EMPTY;
+ if (features & (1 << VIRTIO_RING_F_INDIRECT_DESC))
+ net->dev.acked_features |= VIRTIO_RING_F_INDIRECT_DESC;
+}
+
+static int vhost_net_get_fd(VLANClientState *b...
2019 Sep 26
2
[PATCH V2 6/8] mdev: introduce virtio device and its device ops
On Thu, Sep 26, 2019 at 12:04:46PM +0800, Jason Wang wrote:
> > > > I'm not sure how stable above ops are.
> > > It's the kernel internal API, so there's no strict requirement for this. We
> > > will export a version value for userspace for compatibility.
> > Given it's tied to virtio we probably want kernel+userspace
> > feature bits?
>
2019 Sep 26
2
[PATCH V2 6/8] mdev: introduce virtio device and its device ops
On Thu, Sep 26, 2019 at 12:04:46PM +0800, Jason Wang wrote:
> > > > I'm not sure how stable above ops are.
> > > It's the kernel internal API, so there's no strict requirement for this. We
> > > will export a version value for userspace for compatibility.
> > Given it's tied to virtio we probably want kernel+userspace
> > feature bits?
>
2019 Sep 26
0
[PATCH V2 6/8] mdev: introduce virtio device and its device ops
...>>
>> Yes, then I think we could probably have a version field inside e.g
>> device_ops structure. Then it could be fetched from both kernel and
>> userspace driver.
>>
>> Thanks
>>
>
> my point was feature bits not a version number.
Something like backend_feature that current vhost_net did?
Thanks
>
2023 Feb 16
0
[PATCH v3 04/14] vdpa: add vhost_vdpa_suspend
...109,24 @@ static void vhost_vdpa_svqs_stop(struct vhost_dev *dev)
> }
> }
>
> +static void vhost_vdpa_suspend(struct vhost_dev *dev)
> +{
> + struct vhost_vdpa *v = dev->opaque;
> + int r;
> +
> + if (!vhost_vdpa_first_dev(dev) ||
> + !(dev->backend_features & BIT_ULL(VHOST_BACKEND_F_SUSPEND))) {
Shouldn't it be backend_cap?
2023 Mar 06
0
[PATCH v4 01/15] vdpa net: move iova tree creation from init to start
...> > >>> static int vhost_vdpa_net_cvq_start(NetClientState *nc)
> > >>> {
> > >>> - VhostVDPAState *s;
> > >>> + VhostVDPAState *s, *s0;
> > >>> struct vhost_vdpa *v;
> > >>> uint64_t backend_features;
> > >>> int64_t cvq_group;
> > >>> @@ -415,8 +465,6 @@ static int vhost_vdpa_net_cvq_start(NetClientState *nc)
> > >>> return r;
> > >>> }
> > >>>
> > >>> - v->iova_tree = vho...
2019 Apr 11
1
[RFC 2/3] hw/virtio-rdma: VirtIO rdma device
...queue(vdev, 0);
+
+ virtio_cleanup(vdev);
+
+ virtio_rdma_fini_ib(r);
+}
+
+static uint64_t virtio_rdma_get_features(VirtIODevice *vdev, uint64_t features,
+ Error **errp)
+{
+ /* virtio_add_feature(&features, VIRTIO_NET_F_MAC); */
+
+ vdev->backend_features = features;
+
+ return features;
+}
+
+
+static Property virtio_rdma_dev_properties[] = {
+ DEFINE_PROP_STRING("netdev", VirtIORdma, backend_eth_device_name),
+ DEFINE_PROP_STRING("ibdev",VirtIORdma, backend_device_name),
+ DEFINE_PROP_UINT8("ibport", Vir...
2012 Aug 13
27
[RFC-v2 0/6] vhost-scsi: Add support for host virtualized target
From: Nicholas Bellinger <nab at linux-iscsi.org>
Hi Paolo, Stefan, & QEMU folks,
The following is the second RFC series for vhost-scsi patches against mainline
QEMU v1.1.0. The series is available from the following working branch:
git://git.kernel.org/pub/scm/virt/kvm/nab/qemu-kvm.git vhost-scsi-merge
Apologies for the delayed follow-up on this series. The changes detailed
2012 Aug 13
27
[RFC-v2 0/6] vhost-scsi: Add support for host virtualized target
From: Nicholas Bellinger <nab at linux-iscsi.org>
Hi Paolo, Stefan, & QEMU folks,
The following is the second RFC series for vhost-scsi patches against mainline
QEMU v1.1.0. The series is available from the following working branch:
git://git.kernel.org/pub/scm/virt/kvm/nab/qemu-kvm.git vhost-scsi-merge
Apologies for the delayed follow-up on this series. The changes detailed
2012 Jul 24
14
[RFC 0/9] vhost-scsi: Add support for host virtualized target
From: Nicholas Bellinger <nab at linux-iscsi.org>
Hi Anthony + QEMU storage folks,
The following is a reviewable RFC series of vhost-scsi against yesterday's
QEMU.git/master @ commit 401a66357d.
The series is available directly from:
git://git.kernel.org/pub/scm/virt/kvm/nab/qemu-kvm.git vhost-scsi-merge
It contains the squashed + re-ordered patches from Stefan -> Zhi's
2012 Jul 24
14
[RFC 0/9] vhost-scsi: Add support for host virtualized target
From: Nicholas Bellinger <nab at linux-iscsi.org>
Hi Anthony + QEMU storage folks,
The following is a reviewable RFC series of vhost-scsi against yesterday's
QEMU.git/master @ commit 401a66357d.
The series is available directly from:
git://git.kernel.org/pub/scm/virt/kvm/nab/qemu-kvm.git vhost-scsi-merge
It contains the squashed + re-ordered patches from Stefan -> Zhi's
2013 Mar 12
4
[PATCH V2 WIP 0/2] vhost-scsi: new device supporting the tcm_vhost Linux kernel module
This is on top of Paolo and Nick's work.
Current status:
Works now (guest boots fine, no hang any more) with seabios's virtio-scsi disabled.
Rebased to latest qemu.org/master
Change details are in commit log.
TODO:
Make seabios happy.
Paolo Bonzini (2):
virtio-scsi: create VirtIOSCSICommon
vhost-scsi: new device supporting the tcm_vhost Linux kernel module
hw/Makefile.objs
2013 Mar 12
4
[PATCH V2 WIP 0/2] vhost-scsi: new device supporting the tcm_vhost Linux kernel module
This is on top of Paolo and Nick's work.
Current status:
Works now (guest boots fine, no hang any more) with seabios's virtio-scsi disabled.
Rebased to latest qemu.org/master
Change details are in commit log.
TODO:
Make seabios happy.
Paolo Bonzini (2):
virtio-scsi: create VirtIOSCSICommon
vhost-scsi: new device supporting the tcm_vhost Linux kernel module
hw/Makefile.objs
2011 May 19
2
[PATCHv2 0/2] virtio-net: 64 bit features, event index
OK, here's a patch that implements the virtio spec update that I
sent earlier. It supercedes the PUBLISH_USED_IDX patches
I sent out earlier.
Support is added in both userspace and vhost-net.
If you see issues or are just curious, you can
turn the new feature off. For example:
-global virtio-net-pci.event_idx=on
-global virtio-blk-pci.event_idx=off
Also, it's possible to try both
2011 May 19
2
[PATCHv2 0/2] virtio-net: 64 bit features, event index
OK, here's a patch that implements the virtio spec update that I
sent earlier. It supercedes the PUBLISH_USED_IDX patches
I sent out earlier.
Support is added in both userspace and vhost-net.
If you see issues or are just curious, you can
turn the new feature off. For example:
-global virtio-net-pci.event_idx=on
-global virtio-blk-pci.event_idx=off
Also, it's possible to try both
2013 Mar 19
5
[PATCH V3 WIP 0/3] vhost-scsi: new device supporting the tcm_vhost Linux kernel module
This is on top of Paolo and Nick's work.
Current status:
Basically, tcm_vhost + seabios works now. We still have one more issue,
vhost_verify_ring_mappings fails. The hotplug also works with the latest
tcm_vhost.ko hotplug patch.
Asias He (1):
disable vhost_verify_ring_mappings check
Paolo Bonzini (2):
virtio-scsi: create VirtIOSCSICommon
vhost-scsi: new device supporting the