debuggers.hg

view tools/ioemu/patches/xen-domid @ 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/vl.c
2 ===================================================================
3 --- ioemu.orig/vl.c 2007-05-03 19:01:57.000000000 +0100
4 +++ ioemu/vl.c 2007-05-03 19:02:49.000000000 +0100
5 @@ -176,6 +176,7 @@
6 int autostart = 1;
8 char domain_name[1024] = { 'H','V', 'M', 'X', 'E', 'N', '-'};
9 +extern int domid;
11 /***********************************************************/
12 /* x86 ISA bus support */
13 @@ -6130,6 +6131,7 @@
14 "-s wait gdb connection to port %d\n"
15 "-p port change gdb connection port\n"
16 "-l item1,... output log to %s (use -d ? for a list of log items)\n"
17 + "-d domain domain that we're serving\n"
18 "-domain-name domain name that we're serving\n"
19 "-hdachs c,h,s[,t] force hard disk 0 physical geometry and the optional BIOS\n"
20 " translation (t=none or lba) (usually qemu can guess them)\n"
21 @@ -6239,6 +6241,8 @@
22 QEMU_OPTION_daemonize,
23 QEMU_OPTION_option_rom,
24 QEMU_OPTION_semihosting
25 + ,
26 + QEMU_OPTION_d,
27 };
29 typedef struct QEMUOption {
30 @@ -6328,6 +6332,8 @@
31 #if defined(TARGET_ARM)
32 { "semihosting", 0, QEMU_OPTION_semihosting },
33 #endif
34 +
35 + { "d", HAS_ARG, QEMU_OPTION_d },
36 { NULL },
37 };
39 @@ -7010,6 +7016,10 @@
40 case QEMU_OPTION_domainname:
41 strncat(domain_name, optarg, sizeof(domain_name) - 20);
42 break;
43 + case QEMU_OPTION_d:
44 + domid = atoi(optarg);
45 + fprintf(logfile, "domid: %d\n", domid);
46 + break;
47 }
48 }
49 }