Commit 94909d9fd931367a3d5fabfb7bf5439eb05568e9
1 parent
28b85ed8
xen: add -vga xenfb option, configure xenfb (Gerd Hoffmann)
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7228 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
4 changed files
with
12 additions
and
1 deletions
hw/xen_machine_pv.c
... | ... | @@ -82,6 +82,12 @@ static void xen_init_pv(ram_addr_t ram_size, int vga_ram_size, |
82 | 82 | xen_be_register("qdisk", &xen_blkdev_ops); |
83 | 83 | xen_be_register("qnic", &xen_netdev_ops); |
84 | 84 | |
85 | + /* configure framebuffer */ | |
86 | + if (xenfb_enabled) { | |
87 | + xen_config_dev_vfb(0, "vnc"); | |
88 | + xen_config_dev_vkbd(0); | |
89 | + } | |
90 | + | |
85 | 91 | /* configure disks */ |
86 | 92 | for (i = 0; i < 16; i++) { |
87 | 93 | index = drive_get_index(IF_XEN, 0, i); | ... | ... |
qemu-options.hx
... | ... | @@ -465,7 +465,7 @@ Rotate graphical output 90 deg left (only PXA LCD). |
465 | 465 | ETEXI |
466 | 466 | |
467 | 467 | DEF("vga", HAS_ARG, QEMU_OPTION_vga, |
468 | - "-vga [std|cirrus|vmware|none]\n" | |
468 | + "-vga [std|cirrus|vmware|xenfb|none]\n" | |
469 | 469 | " select video card type\n") |
470 | 470 | STEXI |
471 | 471 | @item -vga @var{type} | ... | ... |
sysemu.h
vl.c
... | ... | @@ -216,6 +216,7 @@ static int rtc_date_offset = -1; /* -1 means no change */ |
216 | 216 | int cirrus_vga_enabled = 1; |
217 | 217 | int std_vga_enabled = 0; |
218 | 218 | int vmsvga_enabled = 0; |
219 | +int xenfb_enabled = 0; | |
219 | 220 | #ifdef TARGET_SPARC |
220 | 221 | int graphic_width = 1024; |
221 | 222 | int graphic_height = 768; |
... | ... | @@ -4225,12 +4226,15 @@ static void select_vgahw (const char *p) |
4225 | 4226 | cirrus_vga_enabled = 0; |
4226 | 4227 | std_vga_enabled = 0; |
4227 | 4228 | vmsvga_enabled = 0; |
4229 | + xenfb_enabled = 0; | |
4228 | 4230 | if (strstart(p, "std", &opts)) { |
4229 | 4231 | std_vga_enabled = 1; |
4230 | 4232 | } else if (strstart(p, "cirrus", &opts)) { |
4231 | 4233 | cirrus_vga_enabled = 1; |
4232 | 4234 | } else if (strstart(p, "vmware", &opts)) { |
4233 | 4235 | vmsvga_enabled = 1; |
4236 | + } else if (strstart(p, "xenfb", &opts)) { | |
4237 | + xenfb_enabled = 1; | |
4234 | 4238 | } else if (!strstart(p, "none", &opts)) { |
4235 | 4239 | invalid_vga: |
4236 | 4240 | fprintf(stderr, "Unknown vga type: %s\n", p); | ... | ... |