diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2018-10-15 10:52:09 -0600 |
---|---|---|
committer | Alex Williamson <alex.williamson@redhat.com> | 2018-10-15 10:52:09 -0600 |
commit | b290659fc3dd8fc51ea35511ea44d7656a3c9396 (patch) | |
tree | 18f30006093da8b5efd785afd00f16ffcbb44db1 /include/hw/vfio | |
parent | 7f623d0834238ce6566afcbeeb325f3d943c2741 (diff) | |
download | qemu-b290659fc3dd8fc51ea35511ea44d7656a3c9396.zip qemu-b290659fc3dd8fc51ea35511ea44d7656a3c9396.tar.gz qemu-b290659fc3dd8fc51ea35511ea44d7656a3c9396.tar.bz2 |
hw/vfio/display: add ramfb support
So we have a boot display when using a vgpu as primary display.
ramfb depends on a fw_cfg file. fw_cfg files can not be added and
removed at runtime, therefore a ramfb-enabled vfio device can't be
hotplugged.
Add a nohotplug variant of the vfio-pci device (as child class). Add
the ramfb property to the nohotplug variant only. So to enable the vgpu
display with boot support use this:
-device vfio-pci-nohotplug,display=on,ramfb=on,sysfsdev=...
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'include/hw/vfio')
-rw-r--r-- | include/hw/vfio/vfio-common.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hw/vfio/vfio-common.h b/include/hw/vfio/vfio-common.h index 6be9a93..e46a289 100644 --- a/include/hw/vfio/vfio-common.h +++ b/include/hw/vfio/vfio-common.h @@ -26,6 +26,7 @@ #include "qemu/queue.h" #include "qemu/notify.h" #include "ui/console.h" +#include "hw/display/ramfb.h" #ifdef CONFIG_LINUX #include <linux/vfio.h> #endif @@ -147,6 +148,7 @@ typedef struct VFIODMABuf { typedef struct VFIODisplay { QemuConsole *con; + RAMFBState *ramfb; struct { VFIORegion buffer; DisplaySurface *surface; |