debuggers.hg

view tools/ioemu/patches/xen-domain-name @ 0:7d21f7218375

Exact replica of unstable on 051908 + README-this
author Mukesh Rathor
date Mon May 19 15:34:57 2008 -0700 (2008-05-19)
parents
children
line source
1 Index: ioemu/sdl.c
2 ===================================================================
3 --- ioemu.orig/sdl.c 2007-05-03 18:17:58.000000000 +0100
4 +++ ioemu/sdl.c 2007-05-03 19:01:57.000000000 +0100
5 @@ -213,14 +213,14 @@
6 static void sdl_update_caption(void)
7 {
8 char buf[1024];
9 - strcpy(buf, "QEMU");
10 + strcpy(buf, domain_name);
11 if (!vm_running) {
12 strcat(buf, " [Stopped]");
13 }
14 if (gui_grab) {
15 strcat(buf, " - Press Ctrl-Alt to exit grab");
16 }
17 - SDL_WM_SetCaption(buf, "QEMU");
18 + SDL_WM_SetCaption(buf, domain_name);
19 }
21 static void sdl_hide_cursor(void)
22 Index: ioemu/vl.c
23 ===================================================================
24 --- ioemu.orig/vl.c 2007-05-03 19:00:51.000000000 +0100
25 +++ ioemu/vl.c 2007-05-03 19:01:57.000000000 +0100
26 @@ -175,6 +175,8 @@
27 int semihosting_enabled = 0;
28 int autostart = 1;
30 +char domain_name[1024] = { 'H','V', 'M', 'X', 'E', 'N', '-'};
31 +
32 /***********************************************************/
33 /* x86 ISA bus support */
35 @@ -6128,6 +6130,7 @@
36 "-s wait gdb connection to port %d\n"
37 "-p port change gdb connection port\n"
38 "-l item1,... output log to %s (use -d ? for a list of log items)\n"
39 + "-domain-name domain name that we're serving\n"
40 "-hdachs c,h,s[,t] force hard disk 0 physical geometry and the optional BIOS\n"
41 " translation (t=none or lba) (usually qemu can guess them)\n"
42 "-L path set the directory for the BIOS, VGA BIOS and keymaps\n"
43 @@ -6217,6 +6220,7 @@
44 QEMU_OPTION_g,
45 QEMU_OPTION_std_vga,
46 QEMU_OPTION_monitor,
47 + QEMU_OPTION_domainname,
48 QEMU_OPTION_serial,
49 QEMU_OPTION_parallel,
50 QEMU_OPTION_loadvm,
51 @@ -6300,6 +6304,7 @@
52 { "localtime", 0, QEMU_OPTION_localtime },
53 { "std-vga", 0, QEMU_OPTION_std_vga },
54 { "monitor", 1, QEMU_OPTION_monitor },
55 + { "domain-name", 1, QEMU_OPTION_domainname },
56 { "serial", 1, QEMU_OPTION_serial },
57 { "parallel", 1, QEMU_OPTION_parallel },
58 { "loadvm", HAS_ARG, QEMU_OPTION_loadvm },
59 @@ -7002,6 +7007,9 @@
60 case QEMU_OPTION_semihosting:
61 semihosting_enabled = 1;
62 break;
63 + case QEMU_OPTION_domainname:
64 + strncat(domain_name, optarg, sizeof(domain_name) - 20);
65 + break;
66 }
67 }
68 }
69 Index: ioemu/vl.h
70 ===================================================================
71 --- ioemu.orig/vl.h 2007-05-03 19:00:05.000000000 +0100
72 +++ ioemu/vl.h 2007-05-03 19:01:57.000000000 +0100
73 @@ -1405,4 +1405,5 @@
75 void kqemu_record_dump(void);
77 +extern char domain_name[];
78 #endif /* VL_H */