mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
hw/display: add vhost-user-vga & gpu-pci
Add new virtio-gpu devices with a "vhost-user" property. The associated vhost-user backend is used to handle the virtio rings and provide rendering results thanks to the vhost-user-gpu protocol. Example usage: -object vhost-user-backend,id=vug,cmd="./vhost-user-gpu" -device vhost-user-vga,vhost-user=vug Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-id: 20190524130946.31736-10-marcandre.lureau@redhat.com Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
c68082c43a
commit
267f664658
10 changed files with 779 additions and 23 deletions
|
@ -16,22 +16,7 @@
|
|||
#include "hw/pci/pci.h"
|
||||
#include "hw/virtio/virtio.h"
|
||||
#include "hw/virtio/virtio-bus.h"
|
||||
#include "hw/virtio/virtio-pci.h"
|
||||
#include "hw/virtio/virtio-gpu.h"
|
||||
|
||||
typedef struct VirtIOGPUPCIBase VirtIOGPUPCIBase;
|
||||
|
||||
/*
|
||||
* virtio-gpu-pci-base: This extends VirtioPCIProxy.
|
||||
*/
|
||||
#define TYPE_VIRTIO_GPU_PCI_BASE "virtio-gpu-pci-base"
|
||||
#define VIRTIO_GPU_PCI_BASE(obj) \
|
||||
OBJECT_CHECK(VirtIOGPUPCIBase, (obj), TYPE_VIRTIO_GPU_PCI_BASE)
|
||||
|
||||
struct VirtIOGPUPCIBase {
|
||||
VirtIOPCIProxy parent_obj;
|
||||
VirtIOGPUBase *vgpu;
|
||||
};
|
||||
#include "hw/virtio/virtio-gpu-pci.h"
|
||||
|
||||
static Property virtio_gpu_pci_base_properties[] = {
|
||||
DEFINE_VIRTIO_GPU_PCI_PROPERTIES(VirtIOPCIProxy),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue