mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-25 12:40:08 +00:00
7ba7e49e6a
Allow failure with vmware_vga device creation and use standard VGA instead. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
20 lines
336 B
C
20 lines
336 B
C
#ifndef QEMU_VMWARE_VGA_H
|
|
#define QEMU_VMWARE_VGA_H
|
|
|
|
#include "qemu-common.h"
|
|
|
|
/* vmware_vga.c */
|
|
static inline bool pci_vmsvga_init(PCIBus *bus)
|
|
{
|
|
PCIDevice *dev;
|
|
|
|
dev = pci_try_create(bus, -1, "vmware-svga");
|
|
if (!dev || qdev_init(&dev->qdev) < 0) {
|
|
return false;
|
|
} else {
|
|
return true;
|
|
}
|
|
}
|
|
|
|
#endif
|