search for: vmmio

Displaying 10 results from an estimated 10 matches for "vmmio".

Did you mean: mmio
2012 Apr 07
0
[PATCH 05/14] kvm tools: Add virtio-mmio support
...irtio_mmio_get_io_space_block(u32 size) +{ + u32 block = virtio_mmio_io_space_blocks; + virtio_mmio_io_space_blocks += size; + + return block; +} + +static void virtio_mmio_ioevent_callback(struct kvm *kvm, void *param) +{ + struct virtio_mmio_ioevent_param *ioeventfd = param; + struct virtio_mmio *vmmio = ioeventfd->vdev->virtio; + + ioeventfd->vdev->ops->notify_vq(kvm, vmmio->dev, ioeventfd->vq); +} + +static int virtio_mmio_init_ioeventfd(struct kvm *kvm, + struct virtio_device *vdev, u32 vq) +{ + struct virtio_mmio *vmmio = vdev->virtio; + struct ioevent ioevent...
2012 Apr 07
0
[PATCH 05/14] kvm tools: Add virtio-mmio support
...irtio_mmio_get_io_space_block(u32 size) +{ + u32 block = virtio_mmio_io_space_blocks; + virtio_mmio_io_space_blocks += size; + + return block; +} + +static void virtio_mmio_ioevent_callback(struct kvm *kvm, void *param) +{ + struct virtio_mmio_ioevent_param *ioeventfd = param; + struct virtio_mmio *vmmio = ioeventfd->vdev->virtio; + + ioeventfd->vdev->ops->notify_vq(kvm, vmmio->dev, ioeventfd->vq); +} + +static int virtio_mmio_init_ioeventfd(struct kvm *kvm, + struct virtio_device *vdev, u32 vq) +{ + struct virtio_mmio *vmmio = vdev->virtio; + struct ioevent ioevent...
2011 Nov 15
2
[RFC] kvm tools: Add support for virtio-mmio
...= (struct virtio_trans_ops) { + .signal_vq = virtio_mmio__signal_vq, + .signal_config = virtio_mmio__signal_config, + .init = virtio_mmio__init, + }; + return &virtio_pci_trans; +}; + +int virtio_mmio__signal_vq(struct kvm *kvm, struct virtio_trans *vtrans, u32 vq) +{ + struct virtio_mmio *vmmio = vtrans->virtio; + + vmmio->hdr.interrupt_state |= VIRTIO_MMIO_INT_VRING; + kvm__irq_trigger(vmmio->kvm, vmmio->irq); + + return 0; +} + +int virtio_mmio__signal_config(struct kvm *kvm, struct virtio_trans *vtrans) +{ + struct virtio_mmio *vmmio = vtrans->virtio; + + vmmio->hdr.i...
2011 Nov 15
2
[RFC] kvm tools: Add support for virtio-mmio
...= (struct virtio_trans_ops) { + .signal_vq = virtio_mmio__signal_vq, + .signal_config = virtio_mmio__signal_config, + .init = virtio_mmio__init, + }; + return &virtio_pci_trans; +}; + +int virtio_mmio__signal_vq(struct kvm *kvm, struct virtio_trans *vtrans, u32 vq) +{ + struct virtio_mmio *vmmio = vtrans->virtio; + + vmmio->hdr.interrupt_state |= VIRTIO_MMIO_INT_VRING; + kvm__irq_trigger(vmmio->kvm, vmmio->irq); + + return 0; +} + +int virtio_mmio__signal_config(struct kvm *kvm, struct virtio_trans *vtrans) +{ + struct virtio_mmio *vmmio = vtrans->virtio; + + vmmio->hdr.i...
2015 Nov 18
2
[RFC] kvmtool: add support for modern virtio-pci
...virtio = calloc(sizeof(struct virtio_pci), 1); if (!virtio) diff --git a/virtio/mmio.c b/virtio/mmio.c index 5174455..3d61bd6 100644 --- a/virtio/mmio.c +++ b/virtio/mmio.c @@ -123,9 +123,8 @@ static void virtio_mmio_config_in(struct kvm_cpu *vcpu, ioport__write32(data, *(u32 *)(((void *)&vmmio->hdr) + addr)); break; case VIRTIO_MMIO_HOST_FEATURES: - if (vmmio->hdr.host_features_sel == 0) - val = vdev->ops->get_host_features(vmmio->kvm, - vmmio->dev); + val = vdev->ops->get_host_features(vmmio->kvm, + vmmio->dev, vmmio->hdr.host_featur...
2015 Nov 18
2
[RFC] kvmtool: add support for modern virtio-pci
...virtio = calloc(sizeof(struct virtio_pci), 1); if (!virtio) diff --git a/virtio/mmio.c b/virtio/mmio.c index 5174455..3d61bd6 100644 --- a/virtio/mmio.c +++ b/virtio/mmio.c @@ -123,9 +123,8 @@ static void virtio_mmio_config_in(struct kvm_cpu *vcpu, ioport__write32(data, *(u32 *)(((void *)&vmmio->hdr) + addr)); break; case VIRTIO_MMIO_HOST_FEATURES: - if (vmmio->hdr.host_features_sel == 0) - val = vdev->ops->get_host_features(vmmio->kvm, - vmmio->dev); + val = vdev->ops->get_host_features(vmmio->kvm, + vmmio->dev, vmmio->hdr.host_featur...
2012 May 09
1
[PATCH] virtio-mmio: Devices parameter parsing
...meters.txt index c1601e5..8b35051 100644 --- a/Documentation/kernel-parameters.txt +++ b/Documentation/kernel-parameters.txt @@ -110,6 +110,7 @@ parameter is applicable: USB USB support is enabled. USBHID USB Human Interface Device support is enabled. V4L Video For Linux support is enabled. + VMMIO Driver for memory mapped virtio devices is enabled. VGA The VGA console has been enabled. VT Virtual terminal support is enabled. WDT Watchdog support is enabled. @@ -2847,6 +2848,22 @@ bytes respectively. Such letter suffixes can also be entirely omitted. video= [FB] Frame buffer config...
2012 May 09
1
[PATCH] virtio-mmio: Devices parameter parsing
...meters.txt index c1601e5..8b35051 100644 --- a/Documentation/kernel-parameters.txt +++ b/Documentation/kernel-parameters.txt @@ -110,6 +110,7 @@ parameter is applicable: USB USB support is enabled. USBHID USB Human Interface Device support is enabled. V4L Video For Linux support is enabled. + VMMIO Driver for memory mapped virtio devices is enabled. VGA The VGA console has been enabled. VT Virtual terminal support is enabled. WDT Watchdog support is enabled. @@ -2847,6 +2848,22 @@ bytes respectively. Such letter suffixes can also be entirely omitted. video= [FB] Frame buffer config...
2017 Apr 07
34
[RFC 0/3] virtio-iommu: a paravirtualized IOMMU
This is the initial proposal for a paravirtualized IOMMU device using virtio transport. It contains a description of the device, a Linux driver, and a toy implementation in kvmtool. With this prototype, you can translate DMA to guest memory from emulated (virtio), or passed-through (VFIO) devices. In its simplest form, implemented here, the device handles map/unmap requests from the guest. Future
2017 Apr 07
34
[RFC 0/3] virtio-iommu: a paravirtualized IOMMU
This is the initial proposal for a paravirtualized IOMMU device using virtio transport. It contains a description of the device, a Linux driver, and a toy implementation in kvmtool. With this prototype, you can translate DMA to guest memory from emulated (virtio), or passed-through (VFIO) devices. In its simplest form, implemented here, the device handles map/unmap requests from the guest. Future