aboutsummaryrefslogtreecommitdiffstats
path: root/src/hw/virtio-ring.h
Commit message (Collapse)AuthorAgeFilesLines
* kvmtool: support larger virtio queueskvmtoolGerd Hoffmann2019-03-201-1/+1
| | | | | | | | | | | | Queues have 256 entries on kvmtool, support that. Needs more memory for virtqueues now. But with the move to 32bit drivers for virtio this should not be much of an issue any more. Known problems: * Linux kernel doesn't find virtio-blk devices after seabios initialized them, due to kvmtool not implementing device reset. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
* virtio: IOMMU supportJason Wang2017-07-071-0/+1
| | | | | | | | | Since we don't enable IOMMU at all, we can then simply enable the IOMMU support by claiming the support of VIRITO_F_IOMMU_PLATFORM. This fixes booting failure when iommu_platform is set from qemu cli. Acked-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Jason Wang <jasowang@redhat.com>
* virtio: Move standard definitions from virtio-ring.h to standard headersKevin O'Connor2015-10-151-7/+0
| | | | | | | Move PAGE_SHIFT / virt_to_phys() to memmap.h and smp_[rw]mb() to x86.h. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* virtio: Simplify vring alignment codeKevin O'Connor2015-10-151-20/+9
| | | | | | | | | Don't do phys_to_virt(virt_to_phys(vaddr)) for page alignment - page alignment can be determined directly from the virtual address. Use the ALIGN() macro to make the code more readable. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* virtio: add version 1.0 support to vp_notifyGerd Hoffmann2015-07-011-0/+1
| | | | Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
* virtio: add version 1.0 structs and #definesGerd Hoffmann2015-07-011-0/+5
| | | | Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
* virtio: add struct vp_deviceGerd Hoffmann2015-07-011-1/+2
| | | | | | | | For virtio 1.0 support we will need more state than just the (legacy mode) ioaddr for each virtio-pci device. Prepare for that by adding a new struct for it. For now it carries the ioaddr only. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
* Move code centered around specific hardware devices to src/hw/Kevin O'Connor2013-09-021-0/+131
Move many C files from the src/ directory to the new src/hw/ directory. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>