Revision 5824d651 vl.c
b/vl.c | ||
---|---|---|
3937 | 3937 |
|
3938 | 3938 |
static void help(int exitcode) |
3939 | 3939 |
{ |
3940 |
/* Please keep in synch with QEMU_OPTION_ enums, qemu_options[] |
|
3941 |
and qemu-doc.texi */ |
|
3942 | 3940 |
printf("QEMU PC emulator version " QEMU_VERSION ", Copyright (c) 2003-2008 Fabrice Bellard\n" |
3943 | 3941 |
"usage: %s [options] [disk_image]\n" |
3944 | 3942 |
"\n" |
3945 | 3943 |
"'disk_image' is a raw hard image image for IDE hard disk 0\n" |
3946 | 3944 |
"\n" |
3947 |
"Standard options:\n" |
|
3948 |
"-h or -help display this help and exit\n" |
|
3949 |
"-M machine select emulated machine (-M ? for list)\n" |
|
3950 |
"-cpu cpu select CPU (-cpu ? for list)\n" |
|
3951 |
"-smp n set the number of CPUs to 'n' [default=1]\n" |
|
3952 |
"-fda/-fdb file use 'file' as floppy disk 0/1 image\n" |
|
3953 |
"-hda/-hdb file use 'file' as IDE hard disk 0/1 image\n" |
|
3954 |
"-hdc/-hdd file use 'file' as IDE hard disk 2/3 image\n" |
|
3955 |
"-cdrom file use 'file' as IDE cdrom image (cdrom is ide1 master)\n" |
|
3956 |
"-drive [file=file][,if=type][,bus=n][,unit=m][,media=d][,index=i]\n" |
|
3957 |
" [,cyls=c,heads=h,secs=s[,trans=t]][,snapshot=on|off]\n" |
|
3958 |
" [,cache=writethrough|writeback|none][,format=f][,serial=s]\n" |
|
3959 |
" use 'file' as a drive image\n" |
|
3960 |
"-mtdblock file use 'file' as on-board Flash memory image\n" |
|
3961 |
"-sd file use 'file' as SecureDigital card image\n" |
|
3962 |
"-pflash file use 'file' as a parallel flash image\n" |
|
3963 |
"-boot [a|c|d|n] boot on floppy (a), hard disk (c), CD-ROM (d), or network (n)\n" |
|
3964 |
"-snapshot write to temporary files instead of disk image files\n" |
|
3965 |
"-m megs set virtual RAM size to megs MB [default=%d]\n" |
|
3966 |
#ifndef _WIN32 |
|
3967 |
"-k language use keyboard layout (for example \"fr\" for French)\n" |
|
3968 |
#endif |
|
3969 |
#ifdef HAS_AUDIO |
|
3970 |
"-audio-help print list of audio drivers and their options\n" |
|
3971 |
"-soundhw c1,... enable audio support\n" |
|
3972 |
" and only specified sound cards (comma separated list)\n" |
|
3973 |
" use -soundhw ? to get the list of supported cards\n" |
|
3974 |
" use -soundhw all to enable all of them\n" |
|
3975 |
#endif |
|
3976 |
"-usb enable the USB driver (will be the default soon)\n" |
|
3977 |
"-usbdevice name add the host or guest USB device 'name'\n" |
|
3978 |
"-name string set the name of the guest\n" |
|
3979 |
"-uuid %%08x-%%04x-%%04x-%%04x-%%012x\n" |
|
3980 |
" specify machine UUID\n" |
|
3981 |
"\n" |
|
3982 |
"Display options:\n" |
|
3983 |
"-nographic disable graphical output and redirect serial I/Os to console\n" |
|
3984 |
#ifdef CONFIG_CURSES |
|
3985 |
"-curses use a curses/ncurses interface instead of SDL\n" |
|
3986 |
#endif |
|
3987 |
#ifdef CONFIG_SDL |
|
3988 |
"-no-frame open SDL window without a frame and window decorations\n" |
|
3989 |
"-alt-grab use Ctrl-Alt-Shift to grab mouse (instead of Ctrl-Alt)\n" |
|
3990 |
"-no-quit disable SDL window close capability\n" |
|
3991 |
"-sdl enable SDL\n" |
|
3992 |
#endif |
|
3993 |
"-portrait rotate graphical output 90 deg left (only PXA LCD)\n" |
|
3994 |
"-vga [std|cirrus|vmware|none]\n" |
|
3995 |
" select video card type\n" |
|
3996 |
"-full-screen start in full screen\n" |
|
3997 |
#if defined(TARGET_PPC) || defined(TARGET_SPARC) |
|
3998 |
"-g WxH[xDEPTH] Set the initial graphical resolution and depth\n" |
|
3999 |
#endif |
|
4000 |
"-vnc display start a VNC server on display\n" |
|
4001 |
"\n" |
|
4002 |
"Network options:\n" |
|
4003 |
"-net nic[,vlan=n][,macaddr=addr][,model=type][,name=str]\n" |
|
4004 |
" create a new Network Interface Card and connect it to VLAN 'n'\n" |
|
4005 |
#ifdef CONFIG_SLIRP |
|
4006 |
"-net user[,vlan=n][,name=str][,hostname=host]\n" |
|
4007 |
" connect the user mode network stack to VLAN 'n' and send\n" |
|
4008 |
" hostname 'host' to DHCP clients\n" |
|
4009 |
#endif |
|
4010 |
#ifdef _WIN32 |
|
4011 |
"-net tap[,vlan=n][,name=str],ifname=name\n" |
|
4012 |
" connect the host TAP network interface to VLAN 'n'\n" |
|
4013 |
#else |
|
4014 |
"-net tap[,vlan=n][,name=str][,fd=h][,ifname=name][,script=file][,downscript=dfile]\n" |
|
4015 |
" connect the host TAP network interface to VLAN 'n' and use the\n" |
|
4016 |
" network scripts 'file' (default=%s)\n" |
|
4017 |
" and 'dfile' (default=%s);\n" |
|
4018 |
" use '[down]script=no' to disable script execution;\n" |
|
4019 |
" use 'fd=h' to connect to an already opened TAP interface\n" |
|
4020 |
#endif |
|
4021 |
"-net socket[,vlan=n][,name=str][,fd=h][,listen=[host]:port][,connect=host:port]\n" |
|
4022 |
" connect the vlan 'n' to another VLAN using a socket connection\n" |
|
4023 |
"-net socket[,vlan=n][,name=str][,fd=h][,mcast=maddr:port]\n" |
|
4024 |
" connect the vlan 'n' to multicast maddr and port\n" |
|
4025 |
#ifdef CONFIG_VDE |
|
4026 |
"-net vde[,vlan=n][,name=str][,sock=socketpath][,port=n][,group=groupname][,mode=octalmode]\n" |
|
4027 |
" connect the vlan 'n' to port 'n' of a vde switch running\n" |
|
4028 |
" on host and listening for incoming connections on 'socketpath'.\n" |
|
4029 |
" Use group 'groupname' and mode 'octalmode' to change default\n" |
|
4030 |
" ownership and permissions for communication port.\n" |
|
4031 |
#endif |
|
4032 |
"-net none use it alone to have zero network devices; if no -net option\n" |
|
4033 |
" is provided, the default is '-net nic -net user'\n" |
|
4034 |
#ifdef CONFIG_SLIRP |
|
4035 |
"-tftp dir allow tftp access to files in dir [-net user]\n" |
|
4036 |
"-bootp file advertise file in BOOTP replies\n" |
|
4037 |
#ifndef _WIN32 |
|
4038 |
"-smb dir allow SMB access to files in 'dir' [-net user]\n" |
|
4039 |
#endif |
|
4040 |
"-redir [tcp|udp]:host-port:[guest-host]:guest-port\n" |
|
4041 |
" redirect TCP or UDP connections from host to guest [-net user]\n" |
|
4042 |
#endif |
|
4043 |
"\n" |
|
4044 |
"-bt hci,null dumb bluetooth HCI - doesn't respond to commands\n" |
|
4045 |
"-bt hci,host[:id]\n" |
|
4046 |
" use host's HCI with the given name\n" |
|
4047 |
"-bt hci[,vlan=n]\n" |
|
4048 |
" emulate a standard HCI in virtual scatternet 'n'\n" |
|
4049 |
"-bt vhci[,vlan=n]\n" |
|
4050 |
" add host computer to virtual scatternet 'n' using VHCI\n" |
|
4051 |
"-bt device:dev[,vlan=n]\n" |
|
4052 |
" emulate a bluetooth device 'dev' in scatternet 'n'\n" |
|
4053 |
"\n" |
|
4054 |
#ifdef TARGET_I386 |
|
4055 |
"\n" |
|
4056 |
"i386 target only:\n" |
|
4057 |
"-win2k-hack use it when installing Windows 2000 to avoid a disk full bug\n" |
|
4058 |
"-rtc-td-hack use it to fix time drift in Windows ACPI HAL\n" |
|
4059 |
"-no-fd-bootchk disable boot signature checking for floppy disks\n" |
|
4060 |
"-no-acpi disable ACPI\n" |
|
4061 |
"-no-hpet disable HPET\n" |
|
4062 |
"-acpitable [sig=str][,rev=n][,oem_id=str][,oem_table_id=str][,oem_rev=n][,asl_compiler_id=str][,asl_compiler_rev=n][,data=file1[:file2]...]\n" |
|
4063 |
" ACPI table description\n" |
|
4064 |
#endif |
|
4065 |
"Linux boot specific:\n" |
|
4066 |
"-kernel bzImage use 'bzImage' as kernel image\n" |
|
4067 |
"-append cmdline use 'cmdline' as kernel command line\n" |
|
4068 |
"-initrd file use 'file' as initial ram disk\n" |
|
4069 |
"\n" |
|
4070 |
"Debug/Expert options:\n" |
|
4071 |
"-serial dev redirect the serial port to char device 'dev'\n" |
|
4072 |
"-parallel dev redirect the parallel port to char device 'dev'\n" |
|
4073 |
"-monitor dev redirect the monitor to char device 'dev'\n" |
|
4074 |
"-pidfile file write PID to 'file'\n" |
|
4075 |
"-S freeze CPU at startup (use 'c' to start execution)\n" |
|
4076 |
"-s wait gdb connection to port\n" |
|
4077 |
"-p port set gdb connection port [default=%s]\n" |
|
4078 |
"-d item1,... output log to %s (use -d ? for a list of log items)\n" |
|
4079 |
"-hdachs c,h,s[,t]\n" |
|
4080 |
" force hard disk 0 physical geometry and the optional BIOS\n" |
|
4081 |
" translation (t=none or lba) (usually qemu can guess them)\n" |
|
4082 |
"-L path set the directory for the BIOS, VGA BIOS and keymaps\n" |
|
4083 |
"-bios file set the filename for the BIOS\n" |
|
4084 |
#ifdef USE_KQEMU |
|
4085 |
"-kernel-kqemu enable KQEMU full virtualization (default is user mode only)\n" |
|
4086 |
"-no-kqemu disable KQEMU kernel module usage\n" |
|
4087 |
#endif |
|
4088 |
#ifdef CONFIG_KVM |
|
4089 |
"-enable-kvm enable KVM full virtualization support\n" |
|
4090 |
#endif |
|
4091 |
"-no-reboot exit instead of rebooting\n" |
|
4092 |
"-no-shutdown stop before shutdown\n" |
|
4093 |
"-loadvm [tag|id]\n" |
|
4094 |
" start right away with a saved state (loadvm in monitor)\n" |
|
4095 |
#ifndef _WIN32 |
|
4096 |
"-daemonize daemonize QEMU after initializing\n" |
|
4097 |
#endif |
|
4098 |
"-option-rom rom load a file, rom, into the option ROM space\n" |
|
4099 |
#if defined(TARGET_SPARC) || defined(TARGET_PPC) |
|
4100 |
"-prom-env variable=value\n" |
|
4101 |
" set OpenBIOS nvram variables\n" |
|
4102 |
#endif |
|
4103 |
"-clock force the use of the given methods for timer alarm.\n" |
|
4104 |
" To see what timers are available use -clock ?\n" |
|
4105 |
"-localtime set the real time clock to local time [default=utc]\n" |
|
4106 |
"-startdate select initial date of the clock\n" |
|
4107 |
"-icount [N|auto]\n" |
|
4108 |
" enable virtual instruction counter with 2^N clock ticks per instruction\n" |
|
4109 |
"-echr chr set terminal escape character instead of ctrl-a\n" |
|
4110 |
"-virtioconsole c\n" |
|
4111 |
" set virtio console\n" |
|
4112 |
"-show-cursor show cursor\n" |
|
4113 |
#if defined(TARGET_ARM) || defined(TARGET_M68K) |
|
4114 |
"-semihosting semihosting mode\n" |
|
4115 |
#endif |
|
4116 |
#if defined(TARGET_ARM) |
|
4117 |
"-old-param old param mode\n" |
|
4118 |
#endif |
|
4119 |
"-tb-size n set TB size\n" |
|
4120 |
"-incoming p prepare for incoming migration, listen on port p\n" |
|
4121 |
#ifndef _WIN32 |
|
4122 |
"-chroot dir Chroot to dir just before starting the VM.\n" |
|
4123 |
"-runas user Change to user id user just before starting the VM.\n" |
|
4124 |
#endif |
|
3945 |
#define DEF(option, opt_arg, opt_enum, opt_help) \ |
|
3946 |
opt_help |
|
3947 |
#define DEFHEADING(text) stringify(text) "\n" |
|
3948 |
#include "qemu-options.h" |
|
3949 |
#undef DEF |
|
3950 |
#undef DEFHEADING |
|
3951 |
#undef GEN_DOCS |
|
4125 | 3952 |
"\n" |
4126 | 3953 |
"During emulation, the following keys are useful:\n" |
4127 | 3954 |
"ctrl-alt-f toggle full screen\n" |
... | ... | |
4144 | 3971 |
#define HAS_ARG 0x0001 |
4145 | 3972 |
|
4146 | 3973 |
enum { |
4147 |
/* Please keep in synch with help, qemu_options[] and |
|
4148 |
qemu-doc.texi */ |
|
4149 |
/* Standard options: */ |
|
4150 |
QEMU_OPTION_h, |
|
4151 |
QEMU_OPTION_M, |
|
4152 |
QEMU_OPTION_cpu, |
|
4153 |
QEMU_OPTION_smp, |
|
4154 |
QEMU_OPTION_fda, |
|
4155 |
QEMU_OPTION_fdb, |
|
4156 |
QEMU_OPTION_hda, |
|
4157 |
QEMU_OPTION_hdb, |
|
4158 |
QEMU_OPTION_hdc, |
|
4159 |
QEMU_OPTION_hdd, |
|
4160 |
QEMU_OPTION_cdrom, |
|
4161 |
QEMU_OPTION_drive, |
|
4162 |
QEMU_OPTION_mtdblock, |
|
4163 |
QEMU_OPTION_sd, |
|
4164 |
QEMU_OPTION_pflash, |
|
4165 |
QEMU_OPTION_boot, |
|
4166 |
QEMU_OPTION_snapshot, |
|
4167 |
QEMU_OPTION_m, |
|
4168 |
QEMU_OPTION_k, |
|
4169 |
QEMU_OPTION_audio_help, |
|
4170 |
QEMU_OPTION_soundhw, |
|
4171 |
QEMU_OPTION_usb, |
|
4172 |
QEMU_OPTION_usbdevice, |
|
4173 |
QEMU_OPTION_name, |
|
4174 |
QEMU_OPTION_uuid, |
|
4175 |
|
|
4176 |
/* Display options: */ |
|
4177 |
QEMU_OPTION_nographic, |
|
4178 |
QEMU_OPTION_curses, |
|
4179 |
QEMU_OPTION_no_frame, |
|
4180 |
QEMU_OPTION_alt_grab, |
|
4181 |
QEMU_OPTION_no_quit, |
|
4182 |
QEMU_OPTION_sdl, |
|
4183 |
QEMU_OPTION_portrait, |
|
4184 |
QEMU_OPTION_vga, |
|
4185 |
QEMU_OPTION_full_screen, |
|
4186 |
QEMU_OPTION_g, |
|
4187 |
QEMU_OPTION_vnc, |
|
4188 |
|
|
4189 |
/* Network options: */ |
|
4190 |
QEMU_OPTION_net, |
|
4191 |
QEMU_OPTION_tftp, |
|
4192 |
QEMU_OPTION_bootp, |
|
4193 |
QEMU_OPTION_smb, |
|
4194 |
QEMU_OPTION_redir, |
|
4195 |
QEMU_OPTION_bt, |
|
4196 |
|
|
4197 |
/* i386 target only: */ |
|
4198 |
QEMU_OPTION_win2k_hack, |
|
4199 |
QEMU_OPTION_rtc_td_hack, |
|
4200 |
QEMU_OPTION_no_fd_bootchk, |
|
4201 |
QEMU_OPTION_no_acpi, |
|
4202 |
QEMU_OPTION_no_hpet, |
|
4203 |
QEMU_OPTION_acpitable, |
|
4204 |
|
|
4205 |
/* Linux boot specific: */ |
|
4206 |
QEMU_OPTION_kernel, |
|
4207 |
QEMU_OPTION_append, |
|
4208 |
QEMU_OPTION_initrd, |
|
4209 |
|
|
4210 |
/* Debug/Expert options: */ |
|
4211 |
QEMU_OPTION_serial, |
|
4212 |
QEMU_OPTION_parallel, |
|
4213 |
QEMU_OPTION_monitor, |
|
4214 |
QEMU_OPTION_pidfile, |
|
4215 |
QEMU_OPTION_S, |
|
4216 |
QEMU_OPTION_s, |
|
4217 |
QEMU_OPTION_p, |
|
4218 |
QEMU_OPTION_d, |
|
4219 |
QEMU_OPTION_hdachs, |
|
4220 |
QEMU_OPTION_L, |
|
4221 |
QEMU_OPTION_bios, |
|
4222 |
QEMU_OPTION_kernel_kqemu, |
|
4223 |
QEMU_OPTION_no_kqemu, |
|
4224 |
QEMU_OPTION_enable_kvm, |
|
4225 |
QEMU_OPTION_no_reboot, |
|
4226 |
QEMU_OPTION_no_shutdown, |
|
4227 |
QEMU_OPTION_loadvm, |
|
4228 |
QEMU_OPTION_daemonize, |
|
4229 |
QEMU_OPTION_option_rom, |
|
4230 |
QEMU_OPTION_prom_env, |
|
4231 |
QEMU_OPTION_clock, |
|
4232 |
QEMU_OPTION_localtime, |
|
4233 |
QEMU_OPTION_startdate, |
|
4234 |
QEMU_OPTION_icount, |
|
4235 |
QEMU_OPTION_echr, |
|
4236 |
QEMU_OPTION_virtiocon, |
|
4237 |
QEMU_OPTION_show_cursor, |
|
4238 |
QEMU_OPTION_semihosting, |
|
4239 |
QEMU_OPTION_old_param, |
|
4240 |
QEMU_OPTION_tb_size, |
|
4241 |
QEMU_OPTION_incoming, |
|
4242 |
QEMU_OPTION_chroot, |
|
4243 |
QEMU_OPTION_runas, |
|
3974 |
#define DEF(option, opt_arg, opt_enum, opt_help) \ |
|
3975 |
opt_enum, |
|
3976 |
#define DEFHEADING(text) |
|
3977 |
#include "qemu-options.h" |
|
3978 |
#undef DEF |
|
3979 |
#undef DEFHEADING |
|
3980 |
#undef GEN_DOCS |
|
4244 | 3981 |
}; |
4245 | 3982 |
|
4246 | 3983 |
typedef struct QEMUOption { |
... | ... | |
4250 | 3987 |
} QEMUOption; |
4251 | 3988 |
|
4252 | 3989 |
static const QEMUOption qemu_options[] = { |
4253 |
/* Please keep in synch with help, QEMU_OPTION_ enums, and |
|
4254 |
qemu-doc.texi */ |
|
4255 |
/* Standard options: */ |
|
4256 | 3990 |
{ "h", 0, QEMU_OPTION_h }, |
4257 |
{ "help", 0, QEMU_OPTION_h }, |
|
4258 |
{ "M", HAS_ARG, QEMU_OPTION_M }, |
|
4259 |
{ "cpu", HAS_ARG, QEMU_OPTION_cpu }, |
|
4260 |
{ "smp", HAS_ARG, QEMU_OPTION_smp }, |
|
4261 |
{ "fda", HAS_ARG, QEMU_OPTION_fda }, |
|
4262 |
{ "fdb", HAS_ARG, QEMU_OPTION_fdb }, |
|
4263 |
{ "hda", HAS_ARG, QEMU_OPTION_hda }, |
|
4264 |
{ "hdb", HAS_ARG, QEMU_OPTION_hdb }, |
|
4265 |
{ "hdc", HAS_ARG, QEMU_OPTION_hdc }, |
|
4266 |
{ "hdd", HAS_ARG, QEMU_OPTION_hdd }, |
|
4267 |
{ "cdrom", HAS_ARG, QEMU_OPTION_cdrom }, |
|
4268 |
{ "drive", HAS_ARG, QEMU_OPTION_drive }, |
|
4269 |
{ "mtdblock", HAS_ARG, QEMU_OPTION_mtdblock }, |
|
4270 |
{ "sd", HAS_ARG, QEMU_OPTION_sd }, |
|
4271 |
{ "pflash", HAS_ARG, QEMU_OPTION_pflash }, |
|
4272 |
{ "boot", HAS_ARG, QEMU_OPTION_boot }, |
|
4273 |
{ "snapshot", 0, QEMU_OPTION_snapshot }, |
|
4274 |
{ "m", HAS_ARG, QEMU_OPTION_m }, |
|
4275 |
#ifndef _WIN32 |
|
4276 |
{ "k", HAS_ARG, QEMU_OPTION_k }, |
|
4277 |
#endif |
|
4278 |
#ifdef HAS_AUDIO |
|
4279 |
{ "audio-help", 0, QEMU_OPTION_audio_help }, |
|
4280 |
{ "soundhw", HAS_ARG, QEMU_OPTION_soundhw }, |
|
4281 |
#endif |
|
4282 |
{ "usb", 0, QEMU_OPTION_usb }, |
|
4283 |
{ "usbdevice", HAS_ARG, QEMU_OPTION_usbdevice }, |
|
4284 |
{ "name", HAS_ARG, QEMU_OPTION_name }, |
|
4285 |
{ "uuid", HAS_ARG, QEMU_OPTION_uuid }, |
|
4286 |
|
|
4287 |
/* Display options: */ |
|
4288 |
{ "nographic", 0, QEMU_OPTION_nographic }, |
|
4289 |
#ifdef CONFIG_CURSES |
|
4290 |
{ "curses", 0, QEMU_OPTION_curses }, |
|
4291 |
#endif |
|
4292 |
#ifdef CONFIG_SDL |
|
4293 |
{ "no-frame", 0, QEMU_OPTION_no_frame }, |
|
4294 |
{ "alt-grab", 0, QEMU_OPTION_alt_grab }, |
|
4295 |
{ "no-quit", 0, QEMU_OPTION_no_quit }, |
|
4296 |
{ "sdl", 0, QEMU_OPTION_sdl }, |
|
4297 |
#endif |
|
4298 |
{ "portrait", 0, QEMU_OPTION_portrait }, |
|
4299 |
{ "vga", HAS_ARG, QEMU_OPTION_vga }, |
|
4300 |
{ "full-screen", 0, QEMU_OPTION_full_screen }, |
|
4301 |
#if defined(TARGET_PPC) || defined(TARGET_SPARC) |
|
4302 |
{ "g", 1, QEMU_OPTION_g }, |
|
4303 |
#endif |
|
4304 |
{ "vnc", HAS_ARG, QEMU_OPTION_vnc }, |
|
4305 |
|
|
4306 |
/* Network options: */ |
|
4307 |
{ "net", HAS_ARG, QEMU_OPTION_net}, |
|
4308 |
#ifdef CONFIG_SLIRP |
|
4309 |
{ "tftp", HAS_ARG, QEMU_OPTION_tftp }, |
|
4310 |
{ "bootp", HAS_ARG, QEMU_OPTION_bootp }, |
|
4311 |
#ifndef _WIN32 |
|
4312 |
{ "smb", HAS_ARG, QEMU_OPTION_smb }, |
|
4313 |
#endif |
|
4314 |
{ "redir", HAS_ARG, QEMU_OPTION_redir }, |
|
4315 |
#endif |
|
4316 |
{ "bt", HAS_ARG, QEMU_OPTION_bt }, |
|
4317 |
#ifdef TARGET_I386 |
|
4318 |
/* i386 target only: */ |
|
4319 |
{ "win2k-hack", 0, QEMU_OPTION_win2k_hack }, |
|
4320 |
{ "rtc-td-hack", 0, QEMU_OPTION_rtc_td_hack }, |
|
4321 |
{ "no-fd-bootchk", 0, QEMU_OPTION_no_fd_bootchk }, |
|
4322 |
{ "no-acpi", 0, QEMU_OPTION_no_acpi }, |
|
4323 |
{ "no-hpet", 0, QEMU_OPTION_no_hpet }, |
|
4324 |
{ "acpitable", HAS_ARG, QEMU_OPTION_acpitable }, |
|
4325 |
#endif |
|
4326 |
|
|
4327 |
/* Linux boot specific: */ |
|
4328 |
{ "kernel", HAS_ARG, QEMU_OPTION_kernel }, |
|
4329 |
{ "append", HAS_ARG, QEMU_OPTION_append }, |
|
4330 |
{ "initrd", HAS_ARG, QEMU_OPTION_initrd }, |
|
4331 |
|
|
4332 |
/* Debug/Expert options: */ |
|
4333 |
{ "serial", HAS_ARG, QEMU_OPTION_serial }, |
|
4334 |
{ "parallel", HAS_ARG, QEMU_OPTION_parallel }, |
|
4335 |
{ "monitor", HAS_ARG, QEMU_OPTION_monitor }, |
|
4336 |
{ "pidfile", HAS_ARG, QEMU_OPTION_pidfile }, |
|
4337 |
{ "S", 0, QEMU_OPTION_S }, |
|
4338 |
{ "s", 0, QEMU_OPTION_s }, |
|
4339 |
{ "p", HAS_ARG, QEMU_OPTION_p }, |
|
4340 |
{ "d", HAS_ARG, QEMU_OPTION_d }, |
|
4341 |
{ "hdachs", HAS_ARG, QEMU_OPTION_hdachs }, |
|
4342 |
{ "L", HAS_ARG, QEMU_OPTION_L }, |
|
4343 |
{ "bios", HAS_ARG, QEMU_OPTION_bios }, |
|
4344 |
#ifdef USE_KQEMU |
|
4345 |
{ "kernel-kqemu", 0, QEMU_OPTION_kernel_kqemu }, |
|
4346 |
{ "no-kqemu", 0, QEMU_OPTION_no_kqemu }, |
|
4347 |
#endif |
|
4348 |
#ifdef CONFIG_KVM |
|
4349 |
{ "enable-kvm", 0, QEMU_OPTION_enable_kvm }, |
|
4350 |
#endif |
|
4351 |
{ "no-reboot", 0, QEMU_OPTION_no_reboot }, |
|
4352 |
{ "no-shutdown", 0, QEMU_OPTION_no_shutdown }, |
|
4353 |
{ "loadvm", HAS_ARG, QEMU_OPTION_loadvm }, |
|
4354 |
{ "daemonize", 0, QEMU_OPTION_daemonize }, |
|
4355 |
{ "option-rom", HAS_ARG, QEMU_OPTION_option_rom }, |
|
4356 |
#if defined(TARGET_SPARC) || defined(TARGET_PPC) |
|
4357 |
{ "prom-env", HAS_ARG, QEMU_OPTION_prom_env }, |
|
4358 |
#endif |
|
4359 |
{ "clock", HAS_ARG, QEMU_OPTION_clock }, |
|
4360 |
{ "localtime", 0, QEMU_OPTION_localtime }, |
|
4361 |
{ "startdate", HAS_ARG, QEMU_OPTION_startdate }, |
|
4362 |
{ "icount", HAS_ARG, QEMU_OPTION_icount }, |
|
4363 |
{ "echr", HAS_ARG, QEMU_OPTION_echr }, |
|
4364 |
{ "virtioconsole", HAS_ARG, QEMU_OPTION_virtiocon }, |
|
4365 |
{ "show-cursor", 0, QEMU_OPTION_show_cursor }, |
|
4366 |
#if defined(TARGET_ARM) || defined(TARGET_M68K) |
|
4367 |
{ "semihosting", 0, QEMU_OPTION_semihosting }, |
|
4368 |
#endif |
|
4369 |
#if defined(TARGET_ARM) |
|
4370 |
{ "old-param", 0, QEMU_OPTION_old_param }, |
|
4371 |
#endif |
|
4372 |
{ "tb-size", HAS_ARG, QEMU_OPTION_tb_size }, |
|
4373 |
{ "incoming", HAS_ARG, QEMU_OPTION_incoming }, |
|
4374 |
{ "chroot", HAS_ARG, QEMU_OPTION_chroot }, |
|
4375 |
{ "runas", HAS_ARG, QEMU_OPTION_runas }, |
|
3991 |
#define DEF(option, opt_arg, opt_enum, opt_help) \ |
|
3992 |
{ option, opt_arg, opt_enum }, |
|
3993 |
#define DEFHEADING(text) |
|
3994 |
#include "qemu-options.h" |
|
3995 |
#undef DEF |
|
3996 |
#undef DEFHEADING |
|
3997 |
#undef GEN_DOCS |
|
4376 | 3998 |
{ NULL }, |
4377 | 3999 |
}; |
4378 | 4000 |
|
... | ... | |
5038 | 4660 |
case QEMU_OPTION_S: |
5039 | 4661 |
autostart = 0; |
5040 | 4662 |
break; |
4663 |
#ifndef _WIN32 |
|
5041 | 4664 |
case QEMU_OPTION_k: |
5042 | 4665 |
keyboard_layout = optarg; |
5043 | 4666 |
break; |
4667 |
#endif |
|
5044 | 4668 |
case QEMU_OPTION_localtime: |
5045 | 4669 |
rtc_utc = 0; |
5046 | 4670 |
break; |
5047 | 4671 |
case QEMU_OPTION_vga: |
5048 | 4672 |
select_vgahw (optarg); |
5049 | 4673 |
break; |
4674 |
#if defined(TARGET_PPC) || defined(TARGET_SPARC) |
|
5050 | 4675 |
case QEMU_OPTION_g: |
5051 | 4676 |
{ |
5052 | 4677 |
const char *p; |
... | ... | |
5081 | 4706 |
graphic_depth = depth; |
5082 | 4707 |
} |
5083 | 4708 |
break; |
4709 |
#endif |
|
5084 | 4710 |
case QEMU_OPTION_echr: |
5085 | 4711 |
{ |
5086 | 4712 |
char *r; |
... | ... | |
5191 | 4817 |
case QEMU_OPTION_vnc: |
5192 | 4818 |
vnc_display = optarg; |
5193 | 4819 |
break; |
4820 |
#ifdef TARGET_I386 |
|
5194 | 4821 |
case QEMU_OPTION_no_acpi: |
5195 | 4822 |
acpi_enabled = 0; |
5196 | 4823 |
break; |
5197 | 4824 |
case QEMU_OPTION_no_hpet: |
5198 | 4825 |
no_hpet = 1; |
5199 | 4826 |
break; |
4827 |
#endif |
|
5200 | 4828 |
case QEMU_OPTION_no_reboot: |
5201 | 4829 |
no_reboot = 1; |
5202 | 4830 |
break; |
... | ... | |
5213 | 4841 |
exit(1); |
5214 | 4842 |
} |
5215 | 4843 |
break; |
4844 |
#ifndef _WIN32 |
|
5216 | 4845 |
case QEMU_OPTION_daemonize: |
5217 | 4846 |
daemonize = 1; |
5218 | 4847 |
break; |
4848 |
#endif |
|
5219 | 4849 |
case QEMU_OPTION_option_rom: |
5220 | 4850 |
if (nb_option_roms >= MAX_OPTION_ROMS) { |
5221 | 4851 |
fprintf(stderr, "Too many option ROMs\n"); |
... | ... | |
5224 | 4854 |
option_rom[nb_option_roms] = optarg; |
5225 | 4855 |
nb_option_roms++; |
5226 | 4856 |
break; |
4857 |
#if defined(TARGET_ARM) || defined(TARGET_M68K) |
|
5227 | 4858 |
case QEMU_OPTION_semihosting: |
5228 | 4859 |
semihosting_enabled = 1; |
5229 | 4860 |
break; |
4861 |
#endif |
|
5230 | 4862 |
case QEMU_OPTION_name: |
5231 | 4863 |
qemu_name = optarg; |
5232 | 4864 |
break; |
... | ... | |
5302 | 4934 |
case QEMU_OPTION_incoming: |
5303 | 4935 |
incoming = optarg; |
5304 | 4936 |
break; |
4937 |
#ifndef _WIN32 |
|
5305 | 4938 |
case QEMU_OPTION_chroot: |
5306 | 4939 |
chroot_dir = optarg; |
5307 | 4940 |
break; |
5308 | 4941 |
case QEMU_OPTION_runas: |
5309 | 4942 |
run_as = optarg; |
5310 | 4943 |
break; |
4944 |
#endif |
|
5311 | 4945 |
} |
5312 | 4946 |
} |
5313 | 4947 |
} |
Also available in: Unified diff