trivial: Remove xenfb_enabled from sysemu.h
The define is only used in one other place. Move the code there instead of keeping this xen-specific define in sysemu.h. Message-Id: <20200121161747.10569-1-thuth@redhat.com> Acked-by: Paul Durrant <paul@xen.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
This commit is contained in:
parent
432b119be4
commit
d9018fbbd6
@ -60,7 +60,7 @@ static void xen_init_pv(MachineState *machine)
|
||||
xen_be_register("qnic", &xen_netdev_ops);
|
||||
|
||||
/* configure framebuffer */
|
||||
if (xenfb_enabled) {
|
||||
if (vga_interface_type == VGA_XENFB) {
|
||||
xen_config_dev_vfb(0, "vnc");
|
||||
xen_config_dev_vkbd(0);
|
||||
}
|
||||
|
@ -32,7 +32,6 @@ typedef enum {
|
||||
} VGAInterfaceType;
|
||||
|
||||
extern int vga_interface_type;
|
||||
#define xenfb_enabled (vga_interface_type == VGA_XENFB)
|
||||
|
||||
extern int graphic_width;
|
||||
extern int graphic_height;
|
||||
|
Loading…
Reference in New Issue
Block a user