[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v3 14/16] virtio: split virtio gpu bits rom virtio-p
From: |
Juan Quintela |
Subject: |
[Qemu-devel] [PATCH v3 14/16] virtio: split virtio gpu bits rom virtio-pci.h |
Date: |
Thu, 13 Dec 2018 22:00:55 +0100 |
Reviewed-by: Laurent Vivier <address@hidden>
Signed-off-by: Juan Quintela <address@hidden>
---
hw/display/virtio-gpu-pci.c | 14 ++++++++++++++
hw/display/virtio-vga.c | 1 +
hw/virtio/virtio-pci.h | 14 --------------
3 files changed, 15 insertions(+), 14 deletions(-)
diff --git a/hw/display/virtio-gpu-pci.c b/hw/display/virtio-gpu-pci.c
index cece4aa495..fa126cf3e4 100644
--- a/hw/display/virtio-gpu-pci.c
+++ b/hw/display/virtio-gpu-pci.c
@@ -19,6 +19,20 @@
#include "hw/virtio/virtio-pci.h"
#include "hw/virtio/virtio-gpu.h"
+typedef struct VirtIOGPUPCI VirtIOGPUPCI;
+
+/*
+ * virtio-gpu-pci: This extends VirtioPCIProxy.
+ */
+#define TYPE_VIRTIO_GPU_PCI "virtio-gpu-pci"
+#define VIRTIO_GPU_PCI(obj) \
+ OBJECT_CHECK(VirtIOGPUPCI, (obj), TYPE_VIRTIO_GPU_PCI)
+
+struct VirtIOGPUPCI {
+ VirtIOPCIProxy parent_obj;
+ VirtIOGPU vdev;
+};
+
static Property virtio_gpu_pci_properties[] = {
DEFINE_VIRTIO_GPU_PCI_PROPERTIES(VirtIOPCIProxy),
DEFINE_PROP_END_OF_LIST(),
diff --git a/hw/display/virtio-vga.c b/hw/display/virtio-vga.c
index ab2e369b28..797994cf00 100644
--- a/hw/display/virtio-vga.c
+++ b/hw/display/virtio-vga.c
@@ -3,6 +3,7 @@
#include "hw/pci/pci.h"
#include "vga_int.h"
#include "hw/virtio/virtio-pci.h"
+#include "hw/virtio/virtio-gpu.h"
#include "qapi/error.h"
/*
diff --git a/hw/virtio/virtio-pci.h b/hw/virtio/virtio-pci.h
index 59016d553b..91981b39f9 100644
--- a/hw/virtio/virtio-pci.h
+++ b/hw/virtio/virtio-pci.h
@@ -17,11 +17,9 @@
#include "hw/pci/msi.h"
#include "hw/virtio/virtio-bus.h"
-#include "hw/virtio/virtio-gpu.h"
#include "hw/virtio/virtio-crypto.h"
typedef struct VirtIOPCIProxy VirtIOPCIProxy;
-typedef struct VirtIOGPUPCI VirtIOGPUPCI;
typedef struct VirtIOCryptoPCI VirtIOCryptoPCI;
/* virtio-pci-bus */
@@ -184,18 +182,6 @@ static inline void
virtio_pci_disable_modern(VirtIOPCIProxy *proxy)
*/
#define TYPE_VIRTIO_INPUT_PCI "virtio-input-pci"
-/*
- * virtio-gpu-pci: This extends VirtioPCIProxy.
- */
-#define TYPE_VIRTIO_GPU_PCI "virtio-gpu-pci"
-#define VIRTIO_GPU_PCI(obj) \
- OBJECT_CHECK(VirtIOGPUPCI, (obj), TYPE_VIRTIO_GPU_PCI)
-
-struct VirtIOGPUPCI {
- VirtIOPCIProxy parent_obj;
- VirtIOGPU vdev;
-};
-
/*
* virtio-crypto-pci: This extends VirtioPCIProxy.
*/
--
2.19.2
- Re: [Qemu-devel] [PATCH v3 06/16] virtio: split virtio 9p bits from virtio-pci, (continued)
- [Qemu-devel] [PATCH v3 04/16] virtio: split virtio rng bits from virtio-pci, Juan Quintela, 2018/12/13
- [Qemu-devel] [PATCH v3 09/16] virtio: split vhost scsi bits from virtio-pci, Juan Quintela, 2018/12/13
- [Qemu-devel] [PATCH v3 12/16] virtio: split virtio net bits rom virtio-pci, Juan Quintela, 2018/12/13
- [Qemu-devel] [PATCH v3 11/16] virtio: split virtio blk bits rom virtio-pci, Juan Quintela, 2018/12/13
- [Qemu-devel] [PATCH v3 07/16] virtio: split vhost user blk bits from virtio-pci, Juan Quintela, 2018/12/13
- [Qemu-devel] [PATCH v3 14/16] virtio: split virtio gpu bits rom virtio-pci.h,
Juan Quintela <=
- [Qemu-devel] [PATCH v3 13/16] virtio: split virtio serial bits rom virtio-pci, Juan Quintela, 2018/12/13
- [Qemu-devel] [PATCH v3 15/16] virtio: split virtio crypto bits rom virtio-pci.h, Juan Quintela, 2018/12/13
- [Qemu-devel] [PATCH v3 16/16] virtio: virtio 9p really requires CONFIG_VIRTFS to work, Juan Quintela, 2018/12/13
- Re: [Qemu-devel] [PATCH v3 00/16] Virtio devices split from virtio-pci, Gonglei (Arei), 2018/12/14