Skip to content

RFC virtio-gpu:

Gerd Hoffmann qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest15 patches 28 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/15virtio-pci: add flags to enable/disable legacy/modernhw/virtio/virtio-pci.c hw/virtio/virtio-pci.h+39 -135 replies
2/15virtio-pci: make QEMU_VIRTIO_PCI_QUEUE_MEM_MULT smallerhw/virtio/virtio-pci.c+1 -10 replies
3/15virtio-pci: make pci bars configurablehw/virtio/virtio-pci.c hw/virtio/virtio-pci.h+23 -42 replies
4/15virtio-pci: make modern bar 64bit prefetchablehw/virtio/virtio-pci.c+9 -31 reply
5/15virtio-gpu/2d: add hardware spec include fileinclude/hw/virtio/virtgpu_hw.h+203 -02 replies
6/15virtio-gpu/2d: add virtio gpu core codehw/display/Makefile.objs hw/display/virtio-gpu.c include/hw/virtio/virtio-gpu.h +1 more+1066 -07 replies
7/15virtio-gpu-pci: add virtio pci supporthw/display/Makefile.objs hw/display/virtio-gpu-pci.c hw/virtio/virtio-pci.h +1 more+88 -02 replies
8/15virtio-gpu-pci: virtio-1.0 adaptions [fixup]hw/display/virtio-gpu-pci.c+4 -73 replies
9/15virtio-vga: add virtio gpu device with vga compatibilitydefault-configs/x86_64-softmmu.mak hw/display/Makefile.objs hw/display/virtio-vga.c+155 -00 replies
10/15virtio-vga: virtio-1.0 adaptions [fixup]hw/display/virtio-vga.c+6 -30 replies
11/15virtio-vga: add '-vga virtio' supporthw/pci/pci.c include/sysemu/sysemu.h vl.c+16 -12 replies
12/15virtio-vga: add vgabios configurationMakefile roms/Makefile roms/config.vga-virtio+8 -22 replies
13/15virtio-vga: add vgabios binarypc-bios/vgabios-virtio.bin+0 -00 replies
14/15virtio-gpu: add to display-vga testtests/Makefile tests/display-vga-test.c+21 -00 replies
15/15virtio-gpu: maskerade as -device VGAhw/display/vga-pci.c hw/display/virtio-vga.c+4 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Qemu-devel] [RfC PATCH 00/15] virtio-gpu:

Hi,

After a loooong break, here is the next version of virtio-gpu patches. It is the first batch, with the 2d bits, virgl (3d/opengl) support will follow later on.

The dust of the virtio-1.0 merge has mostly settled, even though not all virtio-1.0 bits are upstream yet (main reason why this is RfC). My plan is to get virtio-gpu merged upstream as soon as all dependencies are in.

This series applies on top of mst's virtio-1.0 branch.

Patches 1-4 are virtio-pci patches which have been posted separately already, included here because the virtio-gpu patches depend on them.

Patches 5-14 are virtio-gpu and virtio-vga patches. Patches 8+10 with the virtio-1.0 changes depend on patches 1-4. I've kept them separate for now, to simplify review and also to make adaptions easier in case patches 1-4 are changed during review. Patch series is not fully bisectable because of this. For the non-RfC patch series they will of course be squashed in.

Patch 15 is a dirty hack to simplify testing with libvirt, this will be dropped for the merge, we'll need proper libvirt support instead.

If you wanna play with this, here are host + guest git trees for your convinience:

    git://git.kraxel.org/qemu tags/virtio-gpu-rfc-2015-02-23
    git://git.kraxel.org/linux virtio-gpu

Usage:
qemu-system-x86_64 -vga virtio [ ... ] qemu-system-x86_64 -device virtio-vga [ ... ] qemu-system-ppc64 -M pseries -device virtio-gpu-pci [ ... ] qemu-system-arm -M virt -device virtio-gpu-device [ ... ]

Gerd Hoffmann (15):
virtio-pci: add flags to enable/disable legacy/modern
virtio-pci: make QEMU_VIRTIO_PCI_QUEUE_MEM_MULT smaller
virtio-pci: make pci bars configurable
virtio-pci: make modern bar 64bit prefetchable virtio-gpu/2d: add hardware spec include file virtio-gpu/2d: add virtio gpu core code
virtio-gpu-pci: add virtio pci support
virtio-gpu-pci: virtio-1.0 adaptions [fixup]
virtio-vga: add virtio gpu device with vga compatibility
virtio-vga: virtio-1.0 adaptions [fixup]
virtio-vga: add '-vga virtio' support
virtio-vga: add vgabios configuration
virtio-vga: add vgabios binary
virtio-gpu: add to display-vga test
[hack] virtio-gpu: maskerade as -device VGA

 Makefile                           |   2 +-
 default-configs/x86_64-softmmu.mak |   1 +
 hw/display/Makefile.objs           |   4 +
 hw/display/vga-pci.c               |   2 +-
 hw/display/virtio-gpu-pci.c        |  68 +++
 hw/display/virtio-gpu.c            | 903 +++++++++++++++++++++++++++++++++++++
 hw/display/virtio-vga.c            | 158 +++++++
 hw/pci/pci.c                       |   2 +
 hw/virtio/virtio-pci.c             |  81 +++-
 hw/virtio/virtio-pci.h             |  23 +
 include/hw/pci/pci.h               |   1 +
 include/hw/virtio/virtgpu_hw.h     | 203 +++++++++
 include/hw/virtio/virtio-gpu.h     | 147 ++++++
 include/sysemu/sysemu.h            |   2 +-
 pc-bios/vgabios-virtio.bin         | Bin 0 -> 37376 bytes
 roms/Makefile                      |   2 +-
 roms/config.vga-virtio             |   6 +
 tests/Makefile                     |   3 +
 tests/display-vga-test.c           |  18 +
 trace-events                       |  14 +
 vl.c                               |  13 +
 21 files changed, 1630 insertions(+), 23 deletions(-)
 create mode 100644 hw/display/virtio-gpu-pci.c
 create mode 100644 hw/display/virtio-gpu.c
 create mode 100644 hw/display/virtio-vga.c
 create mode 100644 include/hw/virtio/virtgpu_hw.h
 create mode 100644 include/hw/virtio/virtio-gpu.h
 create mode 100644 pc-bios/vgabios-virtio.bin
 create mode 100644 roms/config.vga-virtio
Signature · 1 line
1.8.3.1