search for: trans_ops

Displaying 4 results from an estimated 4 matches for "trans_ops".

2011 Nov 11
1
[RFC] kvm tools: Implement multiple VQ for virtio-net
...; + mutex_unlock(&ndev->io_lock[queue_num]); while (virt_queue__available(vq)) { @@ -99,7 +102,7 @@ static void *virtio_net_rx_thread(void *p) virt_queue__set_used_elem(vq, head, len); /* We should interrupt guest right now, otherwise latency is huge. */ - ndev->vtrans.trans_ops->signal_vq(kvm, &ndev->vtrans, VIRTIO_NET_RX_QUEUE); + ndev->vtrans.trans_ops->signal_vq(kvm, &ndev->vtrans, queue_num); } } @@ -117,16 +120,21 @@ static void *virtio_net_tx_thread(void *p) struct net_dev *ndev = p; u16 out, in; u16 head; - int len; + int len,...
2011 Nov 11
1
[RFC] kvm tools: Implement multiple VQ for virtio-net
...; + mutex_unlock(&ndev->io_lock[queue_num]); while (virt_queue__available(vq)) { @@ -99,7 +102,7 @@ static void *virtio_net_rx_thread(void *p) virt_queue__set_used_elem(vq, head, len); /* We should interrupt guest right now, otherwise latency is huge. */ - ndev->vtrans.trans_ops->signal_vq(kvm, &ndev->vtrans, VIRTIO_NET_RX_QUEUE); + ndev->vtrans.trans_ops->signal_vq(kvm, &ndev->vtrans, queue_num); } } @@ -117,16 +120,21 @@ static void *virtio_net_tx_thread(void *p) struct net_dev *ndev = p; u16 out, in; u16 head; - int len; + int len,...
2011 Nov 15
2
[RFC] kvm tools: Add support for virtio-mmio
...virtio_mmio__init(struct kvm *kvm, struct virtio_trans *vtrans, void *dev, + int device_id, int subsys_id, int class); +int virtio_mmio__signal_vq(struct kvm *kvm, struct virtio_trans *vtrans, u32 vq); +int virtio_mmio__signal_config(struct kvm *kvm, struct virtio_trans *vtrans); + +struct virtio_trans_ops *virtio_mmio__get_trans_ops(void); + +#endif diff --git a/tools/kvm/include/kvm/virtio-net.h b/tools/kvm/include/kvm/virtio-net.h index 58ae162..a419dc7 100644 --- a/tools/kvm/include/kvm/virtio-net.h +++ b/tools/kvm/include/kvm/virtio-net.h @@ -7,6 +7,7 @@ struct virtio_net_params { const char *...
2011 Nov 15
2
[RFC] kvm tools: Add support for virtio-mmio
...virtio_mmio__init(struct kvm *kvm, struct virtio_trans *vtrans, void *dev, + int device_id, int subsys_id, int class); +int virtio_mmio__signal_vq(struct kvm *kvm, struct virtio_trans *vtrans, u32 vq); +int virtio_mmio__signal_config(struct kvm *kvm, struct virtio_trans *vtrans); + +struct virtio_trans_ops *virtio_mmio__get_trans_ops(void); + +#endif diff --git a/tools/kvm/include/kvm/virtio-net.h b/tools/kvm/include/kvm/virtio-net.h index 58ae162..a419dc7 100644 --- a/tools/kvm/include/kvm/virtio-net.h +++ b/tools/kvm/include/kvm/virtio-net.h @@ -7,6 +7,7 @@ struct virtio_net_params { const char *...