aboutsummaryrefslogtreecommitdiff
path: root/stubs/ramfb.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2018-10-15 10:52:09 -0600
committerAlex Williamson <alex.williamson@redhat.com>2018-10-15 10:52:09 -0600
commit7f623d0834238ce6566afcbeeb325f3d943c2741 (patch)
treead65cdc9ab240537337c72e9e989f0250c1f6d45 /stubs/ramfb.c
parentff56877e911782dedc9a424233fd3f62369c258c (diff)
stubs: add ramfb
Needed to make sure code using ramfb (vfio) compiles properly even on platforms without fw_cfg (and therefore no ramfb) support. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'stubs/ramfb.c')
-rw-r--r--stubs/ramfb.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/stubs/ramfb.c b/stubs/ramfb.c
new file mode 100644
index 0000000000..48143f3354
--- /dev/null
+++ b/stubs/ramfb.c
@@ -0,0 +1,13 @@
+#include "qemu/osdep.h"
+#include "qapi/error.h"
+#include "hw/display/ramfb.h"
+
+void ramfb_display_update(QemuConsole *con, RAMFBState *s)
+{
+}
+
+RAMFBState *ramfb_setup(Error **errp)
+{
+ error_setg(errp, "ramfb support not available");
+ return NULL;
+}