dm: virtio-gpu: basic framework

Virtio-gpu is a virtio based graphic adapter. It supports 2D mode
which can transfer the guest vm's framebuffer into service vm's
buffers for displaying. It can co-work with Intel GPU VF(SRIOV)
device and provide thransport for the accelerated contents. With
this, guest vm can benefit Intel GPU hardware to accelerate media
coding, 3D rendering and compute.

Tracked-On: #7210
Signed-off-by: Sun, Peng <peng.p.sun@linux.intel.com>
Reviewed-by: Zhao, yakui <yakui.zhao@intel.com>
Acked-by: Wang, Yu1 <yu1.wang@intel.com>
This commit is contained in:
Sun, Peng
2022-02-23 12:57:56 +08:00
committed by acrnsi-robot
parent 1bc2921c27
commit 37a4cdc2e0
3 changed files with 442 additions and 0 deletions

View File

@@ -208,6 +208,7 @@ enum {
#define VIRTIO_TYPE_COREU 0xFFF8
#define VIRTIO_TYPE_GPIO 0xFFF7
#define VIRTIO_TYPE_I2C 0xFFF6
#define VIRTIO_TYPE_GPU 0x1100
/*
* PCI vendor/device IDs
@@ -219,6 +220,7 @@ enum {
#define VIRTIO_DEV_BLOCK 0x1001
#define VIRTIO_DEV_CONSOLE 0x1003
#define VIRTIO_DEV_RANDOM 0x1005
#define VIRTIO_DEV_GPU 0x1050
/*
* ACRN virtio device IDs