Debian Codegraph @

.bochsrc

raw ◀ ▶
1 Debian patch touch this file
1 # You may now use double quotes around pathnames, in case
2 # your pathname includes spaces.
3
4 #=======================================================================
5 # PLUGIN_CTRL:
6 # Controls the presence of optional device plugins. These plugins are loaded
7 # directly with this option and some of them install a config option that is
8 # only available when the plugin device is loaded. The value "1" means to load
9 # the plugin and "0" will unload it (if loaded before).
10 #
11 # These plugins will be loaded by default (if present): 'biosdev', 'extfpuirq',
12 # 'gameport', 'iodebug','parallel', 'serial', 'speaker' and 'unmapped'.
13 #
14 # These plugins are also supported, but they are usually loaded directly with
15 # their bochsrc option: 'e1000', 'es1370', 'ne2k', 'pcidev', 'pcipnic', 'sb16',
16 # 'usb_ehci', 'usb_ohci', 'usb_uhci', 'usb_xhci' and 'voodoo'.
17 #=======================================================================
18 #plugin_ctrl: unmapped=0, e1000=1 # unload 'unmapped' and load 'e1000'
19
20 #=======================================================================
21 # CONFIG_INTERFACE
22 #
23 # The configuration interface is a series of menus or dialog boxes that
24 # allows you to change all the settings that control Bochs's behavior.
25 # Depending on the platform there are up to 3 choices of configuration
26 # interface: a text mode version called "textconfig" and two graphical versions
27 # called "win32config" and "wx". The text mode version uses stdin/stdout or
28 # gui console (if available / runtime config) and is always compiled in, unless
29 # Bochs is compiled for wx only. The choice "win32config" is only available on
30 # win32/win64 and it is the default on these platforms. The choice "wx" is only
31 # available when Bochs is compiled with wxWidgets support. If you do not write
32 # a config_interface line, Bochs will choose a default for you.
33 #
34 # NOTE: if you use the "wx" configuration interface, you must also use
35 # the "wx" display library.
36 #=======================================================================
37 #config_interface: textconfig
•38 config_interface: wx
39
40 #=======================================================================
41 # DISPLAY_LIBRARY
42 #
43 # The display library is the code that displays the Bochs VGA screen. Bochs
44 # has a selection of about 10 different display library implementations for
45 # different platforms. If you run configure with multiple --with-* options,
46 # the display_library command lets you choose which one you want to run with.
47 # If you do not write a display_library line, Bochs will choose a default for
48 # you.
49 #
50 # The choices are:
51 # x use X windows interface, cross platform
52 # sdl use SDL 1.2.x library, cross platform
53 # sdl2 use SDL 2.x library, cross platform
54 # term text only, uses curses/ncurses library, cross platform
55 # rfb provides an interface to AT&T's VNC viewer, cross platform
56 # vncsrv use LibVNCServer for extended RFB(VNC) support
57 # wx use wxWidgets library, cross platform
58 # nogui no display at all
59 #
60 # NOTE: if you use the "wx" configuration interface, you must also use
61 # the "wx" display library.
62 #
63 # Specific options:
64 # Some display libraries now support specific options to control their
65 # behaviour. These options are supported by more than one display library:
66 #
67 # "cmdmode" - call a headerbar button handler after pressing F7 (sdl, sdl2,
68 # win32, x)
69 # "fullscreen" - startup in fullscreen mode (sdl, sdl2)
70 # "gui_debug" - use GTK debugger gui (sdl, sdl2, x) / Win32 debugger gui (sdl,
71 # sdl2, win32). When using the "globalini" extension the
72 # debugger uses ini file from BXSHARE path (see below).
73 # "hideIPS" - disable IPS output in status bar (rfb, sdl, sdl2, term, vncsrv,
74 # win32, wx, x)
75 # "nokeyrepeat" - turn off host keyboard repeat (sdl, sdl2, win32, x)
76 # "no_gui_console" - use system console instead of builtin gui console
77 # (rfb, sdl, sdl2, vncsrv, x)
78 # "timeout" - time (in seconds) to wait for client (rfb, vncsrv)
79 #
80 # See the examples below for other currently supported options.
81 # Setting up options without specifying display library is also supported.
82 #=======================================================================
83 #display_library: amigaos
84 #display_library: carbon
85 #display_library: macintosh
86 #display_library: nogui
87 #display_library: rfb
88 #display_library: sdl
89 #display_library: sdl2
90 #display_library: term
91 #display_library: vncsrv
92 # "traphotkeys" - system hotkeys not handled by host OS, but sent to guest
93 # (win32 in mouse capture and fullscreen mode: alt-tab, win,
94 # alt-space, alt-esc, ctrl-esc)
95 # "autoscale" - scale small simulation window by factor 2, 4 or 8 depending
96 # on desktop window size
97 #display_library: win32, options="traphotkeys, autoscale"
98 #display_library: wx
99 #display_library: x, options="gui_debug:globalini"
100
101 #=======================================================================
102 # CPU:
103 # This defines cpu-related parameters inside Bochs:
104 #
105 # MODEL:
106 # Selects CPU configuration to emulate from pre-defined list of all
107 # supported configurations. When this option is used and the value
108 # is different from 'bx_generic', the parameters of the CPUID option
109 # have no effect anymore.
110 #
111 # CPU configurations that can be selected:
112 # -----------------------------------------------------------------
113 # i386 Intel 386SX
114 # i486dx4 Intel 486DX4
115 # pentium Intel Pentium (P54C)
116 # pentium_mmx Intel Pentium MMX
117 # amd_k6_2_chomper AMD-K6(tm) 3D processor (Chomper)
118 # athlon_xp AMD Athlon(tm) XP Processor
119 # p2_klamath Intel Pentium II (Klamath)
120 # p3_katmai Intel Pentium III (Katmai)
121 # p4_willamette Intel(R) Pentium(R) 4 (Willamette)
122 # core_duo_t2400_yonah Intel(R) Core(TM) Duo CPU T2400 (Yonah)
123 # atom_n270 Intel(R) Atom(TM) CPU N270
124 # p4_prescott_celeron_336 Intel(R) Celeron(R) 336 (Prescott)
125 # athlon64_clawhammer AMD Athlon(tm) 64 Processor 2800+ (Clawhammer)
126 # athlon64_venice AMD Athlon(tm) 64 Processor 3000+ (Venice)
127 # turion64_tyler AMD Turion(tm) 64 X2 Mobile TL-60 (Tyler)
128 # phenom_8650_toliman AMD Phenom X3 8650 (Toliman)
129 # core2_penryn_t9600 Intel Mobile Core 2 Duo T9600 (Penryn)
130 # corei5_lynnfield_750 Intel(R) Core(TM) i5 750 (Lynnfield)
131 # corei5_arrandale_m520 Intel(R) Core(TM) i5 M 520 (Arrandale)
132 # corei7_sandy_bridge_2600k Intel(R) Core(TM) i7-2600K (Sandy Bridge)
133 # zambezi AMD FX(tm)-4100 Quad-Core Processor (Zambezi)
134 # trinity_apu AMD A8-5600K APU (Trinity)
135 # ryzen AMD Ryzen 7 1700
136 # corei7_ivy_bridge_3770k Intel(R) Core(TM) i7-3770K CPU (Ivy Bridge)
137 # corei7_haswell_4770 Intel(R) Core(TM) i7-4770 CPU (Haswell)
138 # broadwell_ult Intel(R) Processor 5Y70 CPU (Broadwell)
139 # corei7_skylake_x Intel(R) Core(TM) i7-7800X CPU (Skylake)
140 # corei3_cnl Intel(R) Core(TM) i3-8121U CPU (Cannonlake)
141 # corei7_icelake_u QuadCore Intel Core i7-1065G7 (IceLake)
142 # tigerlake 11th Gen Intel(R) Core(TM) i5-1135G7 (TigerLake)
143 # sapphire_rapids Intel(R) Xeon(R) w9-3475X (Sappire Rapids)
144 # arrow_lake 15th Gen Intel(R) Core(TM) Ultra 5 245K (ArrowLake)
145 #
146 # ADD_FEATURES:
147 # Enable one of more CPU feature in the CPU configuration selected by MODEL.
148 # Could be useful for testing CPU with newer imaginary configurations by
149 # adding a specific feature or set of features to existing MODEL. The list
150 # of features to add supplied through space or comma separated string.
151 #
152 # EXCLUDE_FEATURES:
153 # Disable one of more CPU feature from CPU configuration selected by MODEL.
154 # Could be useful for testing CPU without a specific feature or set of
155 # features. When experiening issues booting a modern OS it could be useful
156 # to disable CPU features(s) to see if they responsible for the failures.
157 # The list of features to exclude supplied through space or comma separated
158 # string.
159 #
160 # COUNT:
161 # Set the number of processors:cores per processor:threads per core when
162 # Bochs is compiled for SMP emulation. Bochs currently supports up to
163 # 14 threads (legacy APIC) or 254 threads (xAPIC or higher) running
164 # simultaniosly. If Bochs is compiled without SMP support, it won't accept
165 # values different from 1.
166 #
167 # QUANTUM:
168 # Maximum amount of instructions allowed to execute by processor before
169 # returning control to another cpu. This option exists only in Bochs
170 # binary compiled with SMP support.
171 #
172 # RESET_ON_TRIPLE_FAULT:
173 # Reset the CPU when triple fault occur (highly recommended) rather than
174 # PANIC. Remember that if you trying to continue after triple fault the
175 # simulation will be completely bogus !
176 #
177 # CPUID_LIMIT_WINNT:
178 # Determine whether to limit maximum CPUID function to 2. This mode is
179 # required to workaround WinNT installation and boot issues.
180 #
181 # MSRS:
182 # Define path to user CPU Model Specific Registers (MSRs) specification.
183 # See example in msrs.def.
184 #
185 # IGNORE_BAD_MSRS:
186 # Ignore MSR references that Bochs does not understand; print a warning
187 # message instead of generating #GP exception. This option is enabled
188 # by default but will not be available if configurable MSRs are enabled.
189 #
190 # MWAIT_IS_NOP:
191 # When this option is enabled MWAIT will not put the CPU into a sleep state.
192 # This option exists only if Bochs compiled with --enable-monitor-mwait.
193 #
194 # IPS:
195 # Emulated Instructions Per Second. This is the number of IPS that bochs
196 # is capable of running on your machine. You can recompile Bochs with
197 # --enable-show-ips option enabled, to find your host's capability.
198 # Measured IPS value will then be logged into your log file or shown
199 # in the status bar (if supported by the gui).
200 #
201 # IPS is used to calibrate many time-dependent events within the bochs
202 # simulation. For example, changing IPS affects the frequency of VGA
203 # updates, the duration of time before a key starts to autorepeat, and
204 # the measurement of BogoMips and other benchmarks.
205 #
206 # Examples:
207 #
208 # Bochs Machine/Compiler Mips
209 # ______________________________________________________________________
210 # 2.4.6 3.4Ghz Intel Core i7 2600 with Win7x64/g++ 4.5.2 85 to 95 Mips
211 # 2.3.7 3.2Ghz Intel Core 2 Q9770 with WinXP/g++ 3.4 50 to 55 Mips
212 # 2.3.7 2.6Ghz Intel Core 2 Duo with WinXP/g++ 3.4 38 to 43 Mips
213 # 2.2.6 2.6Ghz Intel Core 2 Duo with WinXP/g++ 3.4 21 to 25 Mips
214 # 2.2.6 2.1Ghz Athlon XP with Linux 2.6/g++ 3.4 12 to 15 Mips
215 #=======================================================================
216 cpu: model=core2_penryn_t9600, count=1, ips=50000000, reset_on_triple_fault=1, ignore_bad_msrs=1, msrs="msrs.def"
217 cpu: cpuid_limit_winnt=0
218
219 #=======================================================================
220 # MEMORY
221 # Set the amount of physical memory you want to emulate.
222 #
223 # GUEST:
224 # Set amount of guest physical memory to emulate. The default is 32MB,
225 # the maximum amount limited only by physical address space limitations.
226 #
227 # HOST:
228 # Set amount of host memory you want to allocate for guest RAM emulation.
229 # It is possible to allocate less memory than you want to emulate in guest
230 # system. This will fake guest to see the non-existing memory. Once guest
231 # system touches new memory block it will be dynamically taken from the
232 # memory pool. You will be warned (by FATAL PANIC) in case guest already
233 # used all allocated host memory and wants more.
234 #
235 # BLOCK_SIZE:
236 # Memory block size select granularity of host memory allocation. Very
237 # large memory configurations might requre larger memory blocks which
238 # configurations with small memory might want memory block smaller.
239 # Default memory block size is 128K.
240 #
241 #=======================================================================
242 memory: guest=512, host=256, block_size=512
243
244 #=======================================================================
245 # ROMIMAGE:
246 # The ROM BIOS controls what the PC does when it first powers on.
247 # Normally, you can use a precompiled BIOS in the source or binary
248 # distribution called BIOS-bochs-latest. The default ROM BIOS is usually loaded
249 # starting at address 0xfffe0000, and it is exactly 128k long. The legacy
250 # version of the Bochs BIOS is usually loaded starting at address 0xffff0000,
251 # and it is exactly 64k long.
252 # The usage of external large BIOS images (up to 512k) at memory top is
253 # now supported, but we still recommend to use the BIOS distributed with Bochs.
254 #
255 # FILE
256 # Name of the BIOS image file. You can use the environment variable $BXSHARE
257 # to specify the location of the BIOS.
258 #
259 # ADDRESS
260 # The start address is optional, since it can be calculated from image size.
261 #
262 # OPTIONS
263 # The Bochs BIOS currently only supports the option "fastboot" to skip the
264 # boot menu delay.
265 #
266 # FLASH_DATA
267 # This parameter defines the file name for the flash BIOS config space loaded
268 # at startup if existing and saved on exit if modified. The Bochs BIOS doesn't
269 # use this feature yet.
270 #
271 # Please note that if you use the BIOS-bochs-legacy romimage BIOS option,
272 # you cannot use a PCI enabled VGA ROM BIOS.
273 # Please note that if you use a SeaBIOS binary in romimage BIOS option,
274 # you must use a PCI enabled VGA ROM BIOS.
275 #=======================================================================
•276 romimage: file=/usr/share/bochs/BIOS-bochs-latest, options=fastboot
277 #romimage: file=$BXSHARE/BIOS-bochs-legacy
278 #romimage: file=$BXSHARE/bios.bin-1.13.0 # http://www.seabios.org/SeaBIOS
279 #romimage: file=$BXSHARE/i440fx.bin, flash_data=escd.bin
280 #romimage: file=asus_p6np5.bin, flash_data=escd.bin
281 #romimage: file=mybios.bin, address=0xfff80000 # 512k at memory top
282
283 #=======================================================================
284 # VGAROMIMAGE
285 # You now need to load a VGA ROM BIOS into C0000.
286 # Please note that if you use the BIOS-bochs-legacy romimage BIOS option,
287 # you cannot use a PCI enabled VGA ROM BIOS option such as the cirrus
288 # option shown below.
289 #=======================================================================
•290 vgaromimage: file=/usr/share/vgabios/vgabios.bin
291 #vgaromimage: file=bios/VGABIOS-lgpl-latest-cirrus.bin
292 #vgaromimage: file=$BXSHARE/vgabios-cirrus.bin-1.13.0 # http://www.seabios.org/SeaVGABIOS
293 #vgaromimage: file=bios/VGABIOS-elpin-2.40
294
295 #=======================================================================
296 # OPTROMIMAGE[1-4]:
297 # You may now load up to 4 optional ROM images. Be sure to use a
298 # read-only area, typically between C8000 and EFFFF. These optional
299 # ROM images should not overwrite the rombios (located at
300 # F0000-FFFFF) and the videobios (located at C0000-C7FFF).
301 # Those ROM images will be initialized by the bios if they contain
302 # the right signature (0x55AA) and a valid checksum.
303 # It can also be a convenient way to upload some arbitrary code/data
304 # in the simulation, that can be retrieved by the boot loader
305 #=======================================================================
306 #optromimage1: file=optionalrom.bin, address=0xd0000
307 #optromimage2: file=optionalrom.bin, address=0xd1000
308 #optromimage3: file=optionalrom.bin, address=0xd2000
309 #optromimage4: file=optionalrom.bin, address=0xd3000
310
311 #optramimage1: file=/path/file1.img, address=0x0010000
312 #optramimage2: file=/path/file2.img, address=0x0020000
313 #optramimage3: file=/path/file3.img, address=0x0030000
314 #optramimage4: file=/path/file4.img, address=0x0040000
315
316 #=======================================================================
317 # VGA:
318 # This defines parameters related to the VGA display
319 #
320 # EXTENSION
321 # Here you can specify the display extension to be used. With the value
322 # 'none' you can use standard VGA with no extension. Other supported
323 # values are 'vbe' for Bochs VBE, 'cirrus' for Cirrus SVGA support and
324 # 'voodoo' for Voodoo Graphics support (see 'voodoo' option).
325 #
326 # UPDATE_FREQ
327 # This parameter specifies the number of display updates per second.
328 # The VGA update timer by default uses the realtime engine with a value
329 # of 10 (valid: 1 to 75). This parameter can be changed at runtime.
330 # The special value 0 enables support for using the frame rate of the
331 # emulated graphics device.
332 #
333 # REALTIME
334 # If set to 1 (default), the VGA timer is based on realtime, otherwise it
335 # is driven by the cpu and depends on the ips setting. If the host is slow
336 # (low ips, update_freq) and the guest uses HLT appropriately, setting this
337 # to 0 and "clock: sync=none" may improve the responsiveness of the guest
338 # GUI when the guest is otherwise idle.
339 #
340 # DDC
341 # This parameter defines the behaviour of the DDC emulation that returns
342 # the monitor EDID data. By default the 'builtin' values for 'Bochs Screen'
343 # are used. Other choices are 'disabled' (no DDC emulation) and 'file'
344 # (read monitor EDID from file / path name separated with a colon).
345 #
346 # VBE_MEMSIZE
347 # With this parameter the size of the memory for the Bochs VBE extension
348 # can be defined. Valid values are 4, 8, 16 and 32 MB (default is 16 MB).
349 # Examples:
350 # vga: extension=cirrus, update_freq=10, ddc=builtin
351 #=======================================================================
352 #vga: extension=vbe, update_freq=5, realtime=1, ddc=file:monitor.bin
353
354 #=======================================================================
355 # VOODOO:
356 # This defines the Voodoo Graphics emulation (experimental). Currently
357 # supported models are 'voodoo1', 'voodoo2', 'banshee' and 'voodoo3'. The
358 # Voodoo2 support is not yet complete, but almost usable. The Banshee and
359 # Voodoo3 support is under construction, but basically usable. The 2D/3D cards
360 # require an external VGA BIOS the vga extension option to be set to 'voodoo'.
361 # If the i440BX PCI chipset is selected, they can be assigned to AGP (slot #5).
362 # The gui screen update timing for all models is controlled by the related 'vga'
363 # options.
364 #
365 # Examples:
366 # voodoo: enabled=1, model=voodoo2
367 #=======================================================================
368 #voodoo: enabled=1, model=voodoo1
369
370 #=======================================================================
371 # KEYBOARD:
372 # This defines parameters related to the emulated keyboard
373 #
374 # TYPE:
375 # Type of keyboard return by a "identify keyboard" command to the
376 # keyboard controller. It must be one of "xt", "at" or "mf".
377 # Defaults to "mf". It should be ok for almost everybody. A known
378 # exception is french macs, that do have a "at"-like keyboard.
379 #
380 # SERIAL_DELAY:
381 # Approximate time in microseconds that it takes one character to
382 # be transferred from the keyboard to controller over the serial path.
383 #
384 # PASTE_DELAY:
385 # Approximate time in microseconds between attempts to paste
386 # characters to the keyboard controller. This leaves time for the
387 # guest os to deal with the flow of characters. The ideal setting
388 # depends on how your operating system processes characters. The
389 # default of 100000 usec (.1 seconds) was chosen because it works
390 # consistently in Windows.
391 # If your OS is losing characters during a paste, increase the paste
392 # delay until it stops losing characters.
393 #
394 # KEYMAP:
395 # This enables a remap of a physical localized keyboard to a
396 # virtualized us keyboard, as the PC architecture expects.
397 # Using a language specifier instead of a file name is also supported.
398 # A keymap is also required by the paste feature.
399 #
400 # USER_SHORTCUT:
401 # This defines the keyboard shortcut to be sent when you press the "user"
402 # button in the headerbar. The shortcut string is a combination of maximum
403 # 3 key names (listed below) separated with a '-' character.
404 # Valid key names:
405 # "alt", "bksl", "bksp", "ctrl", "del", "down", "end", "enter", "esc",
406 # "f1", ... "f12", "home", "ins", "left", "menu", "minus", "pgdwn", "pgup",
407 # "plus", "power", "print", "right", "scrlck", "shift", "space", "tab", "up"
408 # and "win".
409
410 # Examples:
411 # keyboard: type=mf, serial_delay=200, paste_delay=100000
412 # keyboard: keymap=gui/keymaps/x11-pc-de.map
413 # keyboard: user_shortcut=ctrl-alt-del
414 #=======================================================================
415 #keyboard: type=mf, serial_delay=150
416
417 #=======================================================================
418 # MOUSE:
419 # This defines parameters for the emulated mouse type, the initial status
420 # of the mouse capture and the runtime method to toggle it.
421 #
422 # TYPE:
423 # With the mouse type option you can select the type of mouse to emulate.
424 # The default value is 'ps2'. The other choices are 'imps2' (wheel mouse
425 # on PS/2), 'serial', 'serial_wheel', 'serial_msys' (one com port requires
426 # setting 'mode=mouse') 'inport' and 'bus' (if present). To connect a mouse
427 # to a USB port, see the 'usb_uhci', 'usb_ohci', 'usb_ehci' or 'usb_xhci'
428 # options (requires PCI and USB support).
429 #
430 # ENABLED:
431 # The Bochs gui creates mouse "events" unless the 'enabled' option is
432 # set to 0. The hardware emulation itself is not disabled by this.
433 # Unless you have a particular reason for enabling the mouse by default,
434 # it is recommended that you leave it off. You can also toggle the mouse
435 # usage at runtime (RFB, SDL, Win32, wxWidgets and X11 - see below).
436 #
437 # TOGGLE:
438 # The default method to toggle the mouse capture at runtime is to press the
439 # CTRL key and the middle mouse button ('ctrl+mbutton'). This option allows
440 # to change the method to 'ctrl+f10' (like DOSBox), 'ctrl+alt' (legacy QEMU),
441 # 'ctrl+alt+g' (QEMU current) or 'f12'.
442 #
443 # Examples:
444 # mouse: enabled=1
445 # mouse: type=imps2, enabled=1
446 # mouse: type=serial, enabled=1
447 # mouse: enabled=0, toggle=ctrl+f10
448 #=======================================================================
449 mouse: enabled=0
450
451 #=======================================================================
452 # PCI:
453 # This defines the parameters to set up the Bochs PCI emulation:
454 #
455 # ENABLED:
456 # If Bochs is compiled with PCI support, it is enabled by default.
457 #
458 # CHIPSET:
459 # Currently the chipsets i430FX, i440FX and i440BX (limited) are supported and
460 # the default is i440FX.
461 #
462 # SLOTx:
463 # It is possible to specify the devices connected to PCI slots. Up to 5 slots
464 # are available. For combined PCI/ISA devices assigning to slot is mandatory
465 # if the PCI model should be emulated (cirrus, ne2k and pcivga). Setting up
466 # slot for PCI-only devices is also supported, but they are auto-assigned if
467 # not specified (e1000, es1370, pcidev, pcipnic, usb_ehci, usb_ohci, usb_xhci,
468 # voodoo). All device models except the network devices ne2k and e1000 can be
469 # used only once in the slot configuration. In case of the i440BX chipset, the
470 # slot #5 is the AGP slot. Currently only the 'voodoo' device can be assigned
471 # to AGP.
472 #
473 # ADVOPTS:
474 # With the advanced PCI options it is possible to control the behaviour of the
475 # PCI chipset. These options can be specified as comma-separated values.
476 # By default the "Bochs i440FX" chipset enables the ACPI and HPET devices, but
477 # original i440FX doesn't support them. The options 'noacpi' and 'nohpet' make
478 # it possible to disable them. The option 'noagp' disables the incomplete AGP
479 # subsystem of the i440BX chipset.
480 #
481 # Example:
482 # pci: enabled=1, chipset=i440fx, slot1=pcivga, slot2=ne2k, advopts=noacpi
483 #=======================================================================
484 pci: enabled=1, chipset=i440fx
485
486 #=======================================================================
487 # CLOCK:
488 # This defines the parameters of the clock inside Bochs:
489 #
490 # SYNC:
491 # This defines the method how to synchronize the Bochs internal time
492 # with realtime. With the value 'none' the Bochs time relies on the IPS
493 # value and no host time synchronization is used. The 'slowdown' method
494 # sacrifices performance to preserve reproducibility while allowing host
495 # time correlation. The 'realtime' method sacrifices reproducibility to
496 # preserve performance and host-time correlation.
497 # It is possible to enable both synchronization methods.
498 #
499 # RTC_SYNC:
500 # If this option is enabled together with the realtime synchronization,
501 # the RTC runs at realtime speed. This feature is disabled by default.
502 #
503 # TIME0:
504 # Specifies the start (boot) time of the virtual machine. Use a time
505 # value as returned by the time(2) system call or a string as returned
506 # by the ctime(3) system call. If no time0 value is set or if time0
507 # equal to 1 (special case) or if time0 equal 'local', the simulation
508 # will be started at the current local host time. If time0 equal to 2
509 # (special case) or if time0 equal 'utc', the simulation will be started
510 # at the current utc time.
511 #
512 # Syntax:
513 # clock: sync=[none|slowdown|realtime|both], time0=[timeValue|local|utc]
514 #
515 # Example:
516 # clock: sync=none, time0=local # Now (localtime)
517 # clock: sync=slowdown, time0=315529200 # Tue Jan 1 00:00:00 1980
518 # clock: sync=none, time0="Mon Jan 1 00:00:00 1990" # 631148400
519 # clock: sync=realtime, time0=938581955 # Wed Sep 29 07:12:35 1999
520 # clock: sync=realtime, time0="Sat Jan 1 00:00:00 2000" # 946681200
521 # clock: sync=none, time0=1 # Now (localtime)
522 # clock: sync=none, time0=utc # Now (utc/gmt)
523 #
524 # Default value are sync=none, rtc_sync=0, time0=local
525 #=======================================================================
526 #clock: sync=none, time0=local
527
528 #=======================================================================
529 # CMOSIMAGE:
530 # This defines a binary image file with size 128 bytes that can be loaded into
531 # the CMOS RAM at startup. The rtc_init parameter controls whether initialize
532 # the RTC with values stored in the image. By default the time0 argument given
533 # to the clock option is used. With 'rtc_init=image' the image is the source
534 # for the initial time.
535 #
536 # Example:
537 # cmosimage: file=cmos.img, rtc_init=image
538 #=======================================================================
539 #cmosimage: file=cmos.img, rtc_init=time0
540
541 #=======================================================================
542 # private_colormap: Request that the GUI create and use it's own
543 # non-shared colormap. This colormap will be used
544 # when in the bochs window. If not enabled, a
545 # shared colormap scheme may be used. Not implemented
546 # on all GUI's.
547 #
548 # Examples:
549 # private_colormap: enabled=1
550 # private_colormap: enabled=0
551 #=======================================================================
552 private_colormap: enabled=0
553
554 #=======================================================================
555 # FLOPPYA:
556 # Point this to pathname of floppy image file or device
557 # This should be of a bootable floppy(image/device) if you're
558 # booting from 'a' (or 'floppy').
559 #
560 # You can set the initial status of the media to 'ejected' or 'inserted'.
561 # floppya: 2_88=path, status=ejected (2.88M 3.5" media)
562 # floppya: 1_44=path, status=inserted (1.44M 3.5" media)
563 # floppya: 1_2=path, status=ejected (1.2M 5.25" media)
564 # floppya: 720k=path, status=inserted (720K 3.5" media)
565 # floppya: 360k=path, status=inserted (360K 5.25" media)
566 # floppya: 320k=path, status=inserted (320K 5.25" media)
567 # floppya: 180k=path, status=inserted (180K 5.25" media)
568 # floppya: 160k=path, status=inserted (160K 5.25" media)
569 # floppya: image=path, status=inserted (guess media type from image size)
570 # floppya: 1_44=vvfat:path, status=inserted (use directory as VFAT media)
571 # floppya: type=1_44 (1.44M 3.5" floppy drive, no media)
572 #
573 # The path should be the name of a disk image file. On Unix, you can use a raw
574 # device name such as /dev/fd0 on Linux. On win32 platforms, use drive letters
575 # such as a: or b: as the path. The parameter 'image' works with image files
576 # only. In that case the size must match one of the supported types.
577 # The parameter 'type' can be used to enable the floppy drive without media
578 # and status specified. Usually the drive type is set up based on the media type.
579 # The optional parameter 'write_protected' can be used to control the media
580 # write protect switch. By default it is turned off.
581 #=======================================================================
582 floppya: 1_44=/dev/fd0, status=inserted
583 #floppya: image=../1.44, status=inserted
584 #floppya: 1_44=/dev/fd0H1440, status=inserted
585 #floppya: 1_2=../1_2, status=inserted
586 #floppya: 1_44=a:, status=inserted
587 #floppya: 1_44=a.img, status=inserted, write_protected=1
588 #floppya: 1_44=/dev/rfd0a, status=inserted
589
590 #=======================================================================
591 # FLOPPYB:
592 # See FLOPPYA above for syntax
593 #=======================================================================
594 #floppyb: 1_44=b:, status=inserted
595 #floppyb: 1_44=b.img, status=inserted
596
597 #=======================================================================
598 # ATA0, ATA1, ATA2, ATA3
599 # ATA controller for hard disks and cdroms
600 #
601 # ata[0-3]: enabled=[0|1], ioaddr1=addr, ioaddr2=addr, irq=number
602 #
603 # These options enables up to 4 ata channels. For each channel
604 # the two base io addresses and the irq must be specified.
605 #
606 # ata0 and ata1 are enabled by default with the values shown below
607 #
608 # Examples:
609 # ata0: enabled=1, ioaddr1=0x1f0, ioaddr2=0x3f0, irq=14
610 # ata1: enabled=1, ioaddr1=0x170, ioaddr2=0x370, irq=15
611 # ata2: enabled=1, ioaddr1=0x1e8, ioaddr2=0x3e0, irq=11
612 # ata3: enabled=1, ioaddr1=0x168, ioaddr2=0x360, irq=9
613 #=======================================================================
614 ata0: enabled=1, ioaddr1=0x1f0, ioaddr2=0x3f0, irq=14
615 ata1: enabled=1, ioaddr1=0x170, ioaddr2=0x370, irq=15
616 ata2: enabled=0, ioaddr1=0x1e8, ioaddr2=0x3e0, irq=11
617 ata3: enabled=0, ioaddr1=0x168, ioaddr2=0x360, irq=9
618
619 #=======================================================================
620 # ATA[0-3]-MASTER, ATA[0-3]-SLAVE
621 #
622 # This defines the type and characteristics of all attached ata devices:
623 # type= type of attached device [disk|cdrom]
624 # mode= only valid for disks [flat|concat|dll|sparse|vmware3|vmware4]
625 # [undoable|growing|volatile|vpc|vbox|vvfat]
626 # path= path of the image / directory
627 # cylinders= only valid for disks
628 # heads= only valid for disks
629 # spt= only valid for disks
630 # status= only valid for cdroms [inserted|ejected]
631 # biosdetect= type of biosdetection [auto|cmos|none]
632 # translation=type of translation of the bios, only for disks [none|lba|large|rechs|auto]
633 # model= string returned by identify device command
634 # journal= optional filename of the redolog for undoable, volatile and vvfat disks
635 #
636 # Point this at a hard disk image file, cdrom iso file, or physical cdrom
637 # device. To create a hard disk image, try running bximage. It will help you
638 # choose the size and then suggest a line that works with it.
639 #
640 # In UNIX it may be possible to use a raw device as a Bochs hard disk,
641 # but WE DON'T RECOMMEND IT. In Windows there is no easy way.
642 #
643 # In windows, the drive letter + colon notation should be used for cdroms.
644 # Depending on versions of windows and drivers, you may only be able to
645 # access the "first" cdrom in the system. On MacOSX, use path="drive"
646 # to access the physical drive.
647 #
648 # The path is mandatory for hard disks. Disk geometry autodetection works with
649 # images created by bximage if CHS is set to 0/0/0 (cylinders are calculated
650 # using heads=16 and spt=63). For other hard disk images and modes the
651 # cylinders, heads, and spt are mandatory. In all cases the disk size reported
652 # from the image must be exactly C*H*S*512.
653 #
654 # Default values are:
655 # mode=flat, biosdetect=auto, translation=auto, model="Generic 1234"
656 #
657 # The biosdetect option has currently no effect on the bios
658 #
659 # Examples:
660 # ata0-master: type=disk, mode=flat, path=10M.sample, cylinders=306, heads=4, spt=17
661 # ata0-slave: type=disk, mode=flat, path=20M.sample, cylinders=615, heads=4, spt=17
662 # ata1-master: type=disk, mode=flat, path=30M.sample, cylinders=615, heads=6, spt=17
663 # ata1-slave: type=disk, mode=flat, path=46M.sample, cylinders=940, heads=6, spt=17
664 # ata2-master: type=disk, mode=flat, path=62M.sample, cylinders=940, heads=8, spt=17
665 # ata2-slave: type=disk, mode=flat, path=112M.sample, cylinders=900, heads=15, spt=17
666 # ata3-master: type=disk, mode=flat, path=483M.sample, cylinders=1024, heads=15, spt=63
667 # ata3-slave: type=cdrom, path=iso.sample, status=inserted
668 #=======================================================================
669 ata0-master: type=disk, mode=flat, path="30M.sample"
670 #ata0-master: type=disk, mode=flat, path="30M.sample", cylinders=615, heads=6, spt=17
671 #ata0-master: type=disk, mode=flat, path="c.img", cylinders=0 # autodetect
672 #ata0-slave: type=disk, mode=vvfat, path=/bochs/images/vvfat, journal=vvfat.redolog
673 #ata0-slave: type=cdrom, path=D:, status=inserted
674 #ata0-slave: type=cdrom, path=/dev/cdrom, status=inserted
675 #ata0-slave: type=cdrom, path="drive", status=inserted
676 #ata0-slave: type=cdrom, path=/dev/rcd0d, status=inserted
677
678 #=======================================================================
679 # BOOT:
680 # This defines the boot sequence. Now you can specify up to 3 boot drives,
681 # which can be 'floppy', 'disk', 'cdrom' or 'network' (boot ROM).
682 # Legacy 'a' and 'c' are also supported.
683 # The new boot choice 'usb' is only supported by the i440fx.bin BIOS.
684 # Examples:
685 # boot: floppy
686 # boot: cdrom, disk
687 # boot: network, usb, disk
688 # boot: cdrom, floppy, disk
689 #=======================================================================
690 #boot: floppy
•691 #boot: disk
692 boot: cdrom
693
694 #=======================================================================
695 # FLOPPY_BOOTSIG_CHECK: disabled=[0|1]
696 # Enables or disables the 0xaa55 signature check on boot floppies
697 # Defaults to disabled=0
698 # Examples:
699 # floppy_bootsig_check: disabled=0
700 # floppy_bootsig_check: disabled=1
701 #=======================================================================
702 floppy_bootsig_check: disabled=0
703
704 #=======================================================================
705 # LOG:
706 # Give the path of the log file you'd like Bochs debug and misc. verbiage
707 # to be written to. If you don't use this option or set the filename to
708 # '-' the output is written to the console. If you really don't want it,
709 # make it "/dev/null" (Unix) or "nul" (win32). :^(
710 #
711 # Examples:
712 # log: ./bochs.out
713 # log: /dev/tty
714 #=======================================================================
•715 log: /dev/stdout
716 #log: /dev/null
•717 #log: /tmp/bochsout.txt
718
719 #=======================================================================
720 # LOGPREFIX:
721 # This handles the format of the string prepended to each log line.
722 # You may use those special tokens :
723 # %t : 11 decimal digits timer tick
724 # %i : 8 hexadecimal digits of cpu current eip (ignored in SMP configuration)
725 # %e : 1 character event type ('i'nfo, 'd'ebug, 'p'anic, 'e'rror)
726 # %d : 5 characters string of the device, between brackets
727 #
728 # Default : %t%e%d
729 # Examples:
730 # logprefix: %t-%e-@%i-%d
731 # logprefix: %i%e%d
732 #=======================================================================
733 #logprefix: %t%e%d
734
735 #=======================================================================
736 # LOG CONTROLS
737 #
738 # Bochs has four severity levels for event logging.
739 # panic: cannot proceed. If you choose to continue after a panic,
740 # don't be surprised if you get strange behavior or crashes.
741 # error: something went wrong, but it is probably safe to continue the
742 # simulation.
743 # info: interesting or useful messages.
744 # debug: messages useful only when debugging the code. This may
745 # spit out thousands per second.
746 #
747 # For events of each level, you can choose to exit Bochs ('fatal'), 'ask',
748 # 'warn', 'report' or 'ignore'. The choices 'ask' and 'warn' are not supported
749 # by all guis, since they should bring up a dialog box. The 'warn' dialog is
750 # designed to confirm errors and the 'ask' dialog is usually used for panics
751 # and asks the user how to proceed.
752 #
753 # It is also possible to specify the 'action' to do for each Bochs facility
754 # separately (e.g. crash on panics from everything except the cdrom, and only
755 # report those). See the 'log function' module list in the user documentation.
756 #
757 # If you are experiencing many panics, it can be helpful to change
758 # the panic action to report instead of fatal. However, be aware
759 # that anything executed after a panic is uncharted territory and can
760 # cause bochs to become unstable. The panic is a "graceful exit," so
761 # if you disable it you may get a spectacular disaster instead.
762 #=======================================================================
763 panic: action=ask
764 error: action=report
765 info: action=report
766 debug: action=ignore, pci=report # report BX_DEBUG from module 'pci'
767
768 #=======================================================================
769 # DEBUGGER_LOG:
770 # Give the path of the log file you'd like Bochs to log debugger output.
771 # If you really don't want it, make it /dev/null or '-'. :^(
772 #
773 # Examples:
774 # debugger_log: ./debugger.out
775 #=======================================================================
776 #debugger_log: /dev/null
777 #debugger_log: debugger.out
778 debugger_log: -
779
780 #=======================================================================
781 # COM1, COM2, COM3, COM4:
782 # This defines a serial port (UART type 16550A). In the 'term' mode you can
783 # specify a device to use as com1. This can be a real serial line, or a pty.
784 # To use a pty (under X/Unix), create two windows (xterms, usually). One of
785 # them will run bochs, and the other will act as com1. Find out the tty the com1
786 # window using the `tty' command, and use that as the `dev' parameter.
787 # Then do `sleep 1000000' in the com1 window to keep the shell from
788 # messing with things, and run bochs in the other window. Serial I/O to
789 # com1 (port 0x3f8) will all go to the other window.
790 # In socket* and pipe* (win32 only) modes Bochs becomes either socket/named pipe
791 # client or server. In client mode it connects to an already running server (if
792 # connection fails Bochs treats com port as not connected). In server mode it
793 # opens socket/named pipe and waits until a client application connects to it
794 # before starting simulation. This mode is useful for remote debugging (e.g.
795 # with gdb's "target remote host:port" command or windbg's command line option
796 # -k com:pipe,port=\\.\pipe\pipename). Socket modes use simple TCP communication,
797 # pipe modes use duplex byte mode pipes.
798 # Other serial modes are 'null' (no input/output), 'file' (output to a file
799 # specified as the 'dev' parameter and changeable at runtime), 'raw' (use the
800 # real serial port - partly implemented on win32), 'mouse' (standard serial
801 # mouse - requires mouse option setting 'type=serial', 'type=serial_wheel' or
802 # 'type=serial_msys').
803 #
804 # Examples:
805 # com1: enabled=1, mode=null
806 # com1: enabled=1, mode=mouse
807 # com2: enabled=1, mode=file, dev=serial.out
808 # com3: enabled=1, mode=raw, dev=com1
809 # com3: enabled=1, mode=socket-client, dev=localhost:8888
810 # com3: enabled=1, mode=socket-server, dev=localhost:8888
811 # com4: enabled=1, mode=pipe-client, dev=\\.\pipe\mypipe
812 # com4: enabled=1, mode=pipe-server, dev=\\.\pipe\mypipe
813 #=======================================================================
•814 com1: enabled=1, mode=term, dev=/dev/#com#
815
816
817 #=======================================================================
818 # PARPORT1, PARPORT2:
819 # This defines a parallel (printer) port. When turned on and an output file is
820 # defined the emulated printer port sends characters printed by the guest OS
821 # into the output file. On some platforms a device filename can be used to
822 # send the data to the real parallel port (e.g. "/dev/lp0" on Linux, "lpt1" on
823 # win32 platforms). The output file can be changed at runtime.
824 #
825 # Examples:
826 # parport1: enabled=1, file="parport.out"
827 # parport2: enabled=1, file="/dev/lp0"
828 # parport1: enabled=0
829 #=======================================================================
•830 parport1: enabled=1, file="/dev/lp0"
831
832 #=======================================================================
833 # SOUND:
834 # This defines the lowlevel sound driver(s) for the wave (PCM) input / output
835 # and the MIDI output feature and (if necessary) the devices to be used.
836 # It can have several of the following properties.
837 # All properties are in the format sound: property=value
838 #
839 # waveoutdrv:
840 # This defines the driver to be used for the waveout feature.
841 # Possible values are 'file' (all wave data sent to file), 'dummy' (no
842 # output), 'pulse', 'sdl' (both cross-platform) and the platform-dependant
843 # drivers 'alsa', 'oss', 'osx' and 'win'.
844 # waveout:
845 # This defines the device to be used for wave output (if necessary) or
846 # the output file for the 'file' driver.
847 # waveindrv:
848 # This defines the driver to be used for the wavein feature.
849 # Possible values are 'dummy' (recording silence), 'pulse', 'sdl' (both
850 # cross-platform) and platform-dependent drivers 'alsa', 'oss' and 'win'.
851 # wavein:
852 # This defines the device to be used for wave input (if necessary).
853 # midioutdrv:
854 # This defines the driver to be used for the MIDI output feature.
855 # Possible values are 'file' (all MIDI data sent to file), 'dummy' (no
856 # output) and platform-dependent drivers 'alsa', 'oss', 'osx' and 'win'.
857 # midiout:
858 # This defines the device to be used for MIDI output (if necessary).
859 # driver:
860 # This defines the driver to be used for all sound features with one
861 # property. Possible values are 'default' (platform default) and all
862 # other choices described above. Overriding one or more settings with
863 # the specific driver parameter is possible.
864 #
865 # Example for different drivers:
866 # sound: waveoutdrv=sdl, waveindrv=alsa, midioutdrv=dummy
867 #=======================================================================
•868 sound: driver=default, waveout=/dev/dsp, wavein=, midiout=
869
870 #=======================================================================
871 # SPEAKER:
872 # This defines the PC speaker output mode. In the 'sound' mode the beep
873 # is generated by the square wave generator which is a part of the
874 # lowlevel sound support. In this mode the 'volume' parameter can be used
875 # to set the output volume (0 - 15). The 'system' mode is only available on
876 # Linux and Windows. On Linux /dev/console is used for output and on Windows
877 # the Beep() function. The 'gui' mode forwards the beep to the related
878 # gui methods (currently only used by the Carbon gui).
879 #=======================================================================
880 speaker: enabled=1, mode=sound, volume=15
881
882 #=======================================================================
883 # SB16:
884 # This defines the SB16 sound emulation. It can have several of the
885 # following properties.
886 # All properties are in the format sb16: property=value
887 #
888 # enabled:
889 # This optional property controls the presence of the SB16 emulation.
890 # The emulation is turned on unless this property is used and set to 0.
891 # midimode: This parameter specifies what to do with the MIDI output.
892 # 0 = no output
893 # 1 = output to device specified with the sound option (system dependent)
894 # 2 = MIDI or raw data output to file (depends on file name extension)
895 # 3 = dual output (mode 1 and 2 at the same time)
896 # midifile: This is the file where the midi output is stored (midimode 2 or 3).
897 # wavemode: This parameter specifies what to do with the PCM output.
898 # 0 = no output
899 # 1 = output to device specified with the sound option (system dependent)
900 # 2 = VOC, WAV or raw data output to file (depends on file name extension)
901 # 3 = dual output (mode 1 and 2 at the same time)
902 # wavefile: This is the file where the wave output is stored (wavemode 2 or 3).
903 # loglevel:
904 # 0=no log
905 # 1=resource changes, midi program and bank changes
906 # 2=severe errors
907 # 3=all errors
908 # 4=all errors plus all port accesses
909 # 5=all errors and port accesses plus a lot of extra info
910 # log: The file to write the sb16 emulator messages to.
911 # dmatimer:
912 # microseconds per second for a DMA cycle. Make it smaller to fix
913 # non-continuous sound. 1000000 is usually a good value. This needs a
914 # reasonably correct setting for the IPS parameter of the CPU option
915 # and also depends on the clock sync setting.
916 #
917 # Examples for output modes:
918 # sb16: midimode=2, midifile="output.mid", wavemode=1 # MIDI to file
919 # sb16: midimode=1, wavemode=3, wavefile="output.wav" # wave to file and device
920 #=======================================================================
921 #sb16: midimode=1, wavemode=1, loglevel=2, log=sb16.log, dmatimer=900000
922
923 #=======================================================================
924 # ES1370:
925 # This defines the ES1370 sound emulation (recording and playback - except
926 # DAC1+DAC2 output at the same time). The parameter 'enabled' controls the
927 # presence of the device. The wave and MIDI output can be sent to device, file
928 # or both using the parameters 'wavemode', 'wavefile', 'midimode' and
929 # 'midifile'. See the description of these parameters at the SB16 directive.
930 #
931 # Examples:
932 # es1370: enabled=1, wavemode=1 # use 'sound' parameters
933 # es1370: enabled=1, wavemode=2, wavefile=output.voc # send output to file
934 #=======================================================================
935 #es1370: enabled=1, wavemode=1
936
937 #=======================================================================
938 # ne2k: NE2000 compatible ethernet adapter
939 #
940 # Format:
941 # ne2k: card=CARD, enabled=1, type=TYPE, ioaddr=IOADDR, irq=IRQ, mac=MACADDR,
942 # ethmod=MODULE, ethdev=DEVICE, script=SCRIPT, bootrom=BOOTROM
943 #
944 # CARD: This is the zero-based card number to configure with this ne2k config
945 # line. Up to 4 devices are supported now (0...3). If not specified, the
946 # following parameters apply to card #0.
947 #
948 # TYPE: This is the card type to emulate ("isa" or "pci"). If not specified,
949 # card #0 defaults to "pci" if assigned to a pci slot. For the additional cards
950 # the type parameter should be set up.
951 #
952 # IOADDR, IRQ: You probably won't need to change ioaddr and irq, unless there
953 # are IRQ conflicts. These arguments are ignored when assign the ne2k to a
954 # PCI slot or set the type to 'pci'.
955 #
956 # MAC: The MAC address MUST NOT match the address of any machine on the net.
957 # Also, the first byte must be an even number (bit 0 set means a multicast
958 # address), and you cannot use ff:ff:ff:ff:ff:ff because that's the broadcast
959 # address. For the ethertap module, you must use fe:fd:00:00:00:01. There may
960 # be other restrictions too. To be safe, just use the b0:c4... address.
961 #
962 # ETHDEV: The ethdev value is the name of the network interface on your host
963 # platform. On UNIX machines, you can get the name by running ifconfig. On
964 # Windows machines, you must run niclist to get the name of the ethdev.
965 # Niclist source code is in misc/niclist.c and it is included in Windows
966 # binary releases.
967 # The 'socket' module uses this parameter to specify the UDP port for
968 # receiving packets and (optional) the host to connect.
969 #
970 # SCRIPT: The script value is optional, and is the name of a script that
971 # is executed after bochs initialize the network interface. You can use
972 # this script to configure this network interface, or enable masquerading.
973 # This is mainly useful for the tun/tap devices that only exist during
974 # Bochs execution. The network interface name is supplied to the script
975 # as first parameter.
976 # The 'slirp' module uses this parameter to specify a config file for
977 # setting up an alternative IP configuration or additional features.
978 # The 'vnet' module also uses this parameter to specify a config file similar
979 # to slirp, but with only a few settings.
980 #
981 # BOOTROM: The bootrom value is optional, and is the name of the ROM image
982 # to load. Note that this feature is only implemented for the PCI version of
983 # the NE2000. For the ISA version using one of the 'optromimage[1-4]' options
984 # must be used instead of this one.
985 #
986 # If you don't want to make connections to any physical networks,
987 # you can use the following 'ethmod's to simulate a virtual network.
988 # null: All packets are discarded, but logged to a few files.
989 # vde: Virtual Distributed Ethernet
990 # vnet: ARP, ICMP-echo(ping), DHCP, DNS, FTP and TFTP are simulated.
991 # The virtual host uses 192.168.10.1.
992 # DHCP assigns 192.168.10.15 to the guest.
993 # FTP/TFTP using the 'ethdev' value for the root directory.
994 # TFTP doesn't overwrite files, DNS for server and client only.
995 # socket: Connect up to 6 Bochs instances with external program 'bxhub'
996 # (simulating an ethernet hub). It provides the same services as the
997 # 'vnet' module and assigns IP addresses like 'slirp' (10.0.2.x).
998 #
999 #=======================================================================
•1000 # ne2k: ioaddr=0x300, irq=9, mac=b0:c4:20:00:00:00, ethmod=#kernel#, ethdev=#eth#
1001 # ne2k: ioaddr=0x300, irq=9, mac=fe:fd:00:00:00:01, ethmod=tap, ethdev=tap0
1002 # ne2k: ioaddr=0x300, irq=9, mac=fe:fd:00:00:00:01, ethmod=tuntap, ethdev=/dev/net/tun0, script=./tunconfig
1003 # ne2k: ioaddr=0x300, irq=9, mac=b0:c4:20:00:00:01, ethmod=null, ethdev=eth0
1004 # ne2k: ioaddr=0x300, irq=9, mac=b0:c4:20:00:00:01, ethmod=vde, ethdev="/tmp/vde.ctl"
1005 # ne2k: ioaddr=0x300, irq=9, mac=b0:c4:20:00:00:01, ethmod=vnet, ethdev="c:/temp"
1006 # ne2k: mac=b0:c4:20:00:00:01, ethmod=socket, ethdev=40000 # use localhost
1007 # ne2k: mac=b0:c4:20:00:00:01, ethmod=socket, ethdev=mymachine:40000
1008 # ne2k: mac=b0:c4:20:00:00:01, ethmod=slirp, script=slirp.conf, bootrom=ne2k_pci.rom
1009
1010 #=======================================================================
1011 # pcipnic: Bochs/Etherboot pseudo-NIC
1012 #
1013 # Format:
1014 # pcipnic: enabled=1, mac=MACADDR, ethmod=MODULE, ethdev=DEVICE, script=SCRIPT,
1015 # bootrom=BOOTROM
1016 #
1017 # The pseudo-NIC accepts the same syntax (for mac, ethmod, ethdev, script,
1018 # bootrom) and supports the same networking modules as the NE2000 adapter.
1019 #=======================================================================
1020 #pcipnic: enabled=1, mac=b0:c4:20:00:00:00, ethmod=vnet
1021
1022 #=======================================================================
1023 # e1000: Intel(R) 82540EM Gigabit Ethernet adapter
1024 #
1025 # Format:
1026 # e1000: card=CARD, enabled=1, mac=MACADDR, ethmod=MODULE, ethdev=DEVICE,
1027 # script=SCRIPT, bootrom=BOOTROM
1028 #
1029 # The E1000 accepts the same syntax (for card, mac, ethmod, ethdev, script,
1030 # bootrom) and supports the same networking modules as the NE2000 adapter.
1031 # It also supports up to 4 devices selected with the card parameter.
1032 #=======================================================================
1033 #e1000: enabled=1, mac=52:54:00:12:34:56, ethmod=slirp, script=slirp.conf
1034
1035 #=======================================================================
1036 # USB_UHCI:
1037 # This option controls the presence of the USB root hub which is a part
1038 # of the i440FX PCI chipset. With the portX parameter you can connect devices
1039 # to the hub (currently supported: 'mouse', 'tablet', 'keypad', 'keyboard',
1040 # 'disk', 'cdrom', 'floppy', 'hub' and 'printer').
1041 #
1042 # If you connect the mouse or tablet to one of the ports, Bochs forwards the
1043 # mouse movement data to the USB device instead of the selected mouse type.
1044 # When connecting the keypad to one of the ports, Bochs forwards the input of
1045 # the numeric keypad to the USB device instead of the PS/2 keyboard. If the
1046 # keyboard is selected, all key events are sent to the USB device.
1047 #
1048 # To connect a disk image as a USB hardisk you can use the 'disk' device. Use
1049 # the 'path' option in the optionsX parameter to specify the path to the image
1050 # separated with a colon. To use other disk image modes similar to ATA disks
1051 # the syntax 'path:mode:filename' must be used (see below).
1052 #
1053 # To emulate a USB cdrom you can use the 'cdrom' device and the path to an
1054 # ISO image or raw device name can be set with the 'path' option in the
1055 # optionsX parameter also separated with a colon. An option to insert/eject
1056 # media is available in the runtime configuration.
1057 #
1058 # To emulate a USB floppy you can use the 'floppy' device and the path to a
1059 # floppy image can be set with the 'path' option in the optionsX parameter
1060 # separated with a colon. To use the VVFAT image mode similar to the legacy
1061 # floppy the syntax 'path:vvfat:directory' must be used (see below).
1062 # An option to insert/eject media is available in the runtime configuration.
1063 #
1064 # The device name 'hub' connects an external hub with max. 8 ports (default: 4)
1065 # to the root hub. To specify the number of ports you have to use the 'ports'
1066 # option in the optionsX parameter with the value separated with a colon.
1067 # Connecting devices to the external hub ports is only available in the runtime
1068 # configuration.
1069 #
1070 # The device 'printer' emulates the HP Deskjet 920C printer. The PCL data is
1071 # sent to a file specified in the 'file' option with the optionsX parameter.
1072 # The current code appends the PCL code to the file if the file already existed.
1073 # The output file can be changed at runtime.
1074 #
1075 # The optionsX parameter can be used to assign specific options to the device
1076 # connected to the corresponding USB port. The option 'speed' can be used to set
1077 # the speed reported by device ('low', 'full', 'high' or 'super'). The available
1078 # speed choices depend on both HC and device. The option 'debug' turns on debug
1079 # output for the device at connection time. The option 'pcap' turns on packet
1080 # logging in PCAP format.
1081 #
1082 # For the USB 'disk' device the optionsX parameter can be used to specify an
1083 # alternative redolog file (journal) of some image modes. For 'vvfat' mode USB
1084 # disks the optionsX parameter can be used to specify the disk size (range
1085 # 128M ... 128G). If the size is not specified, it defaults to 504M.
1086 # For the USB 'floppy' device the optionsX parameter can be used to specify an
1087 # alternative device ID to be reported. Currently only the model "teac" is
1088 # supported (can fix hw detection in some guest OS). The USB floppy also
1089 # accepts the parameter "write_protected" with valid values 0 and 1 to select
1090 # the access mode (default is 0).
1091 #
1092 # For a high- or super-speed USB 'disk' device the optionsX parameter can include
1093 # the 'proto:bbb' or 'proto:uasp' parameter specifying to use either the bulk-only
1094 # Protocol (default) or the USB Attached SCSI Protocol. If no such parameter
1095 # is given, the 'bbb' protocol is used. A Guest that doesn't support UASP
1096 # should revert to bbb even if the 'uasp' attribute is given. See the usb_ehci:
1097 # or usb_xhci: section below for an example. (Only 1 LUN is available at this time)
1098 #=======================================================================
1099 #usb_uhci: enabled=1
1100 #usb_uhci: port1=mouse, port2=disk, options2="path:usbstick.img"
1101 #usb_uhci: port1=hub, options1="ports:6, pcap:outfile.pcap"
1102 #usb_uhci: port2=disk, options2="path:undoable:usbdisk.img, journal:u.redolog"
1103 #usb_uhci: port2=disk, options2=""path:usbdisk2.img, sect_size:1024"
1104 #usb_uhci: port2=disk, options2="path:vvfat:vvfat, debug, speed:full"
1105 #usb_uhci: port2=cdrom, options2="path:image.iso"
1106 #usb_uhci: port1=printer, options1="file:printdata.bin"
1107 #usb_uhci: port2=floppy, options2="path:vvfat:diskette, model:teac"
1108
1109 #=======================================================================
1110 # USB_OHCI:
1111 # This option controls the presence of the USB OHCI host controller with a
1112 # 2-port hub. The portX parameter accepts the same device types with the same
1113 # syntax as the UHCI controller (see above). The optionsX parameter is also
1114 # available on OHCI.
1115 #=======================================================================
1116 #usb_ohci: enabled=1
1117 #usb_ohci: enabled=1, port1=printer:usbprinter.bin
1118
1119 #=======================================================================
1120 # USB_EHCI:
1121 # This option controls the presence of the USB EHCI host controller with a
1122 # 6-port hub. The portX parameter accepts the same device types with the
1123 # same syntax as the UHCI controller (see above). The optionsX parameter is
1124 # also available on EHCI.
1125 # The HC will default to three UHCI companion controllers, but you can specify
1126 # either UHCI or OHCI. Each companion controller will be evenly divided
1127 # with 2 ports each, the first 2 on the first companion, and so on.
1128 #=======================================================================
1129 #usb_ehci: enabled=1
1130 #usb_ehci: enabled=1, companion=uhci
1131 #usb_ehci: enabled=1, companion=ohci
1132 #usb_ehci: port1=disk, options1="speed:high, path:hdd.img, proto:bbb"
1133 #usb_ehci: port1=disk, options1="speed:high, path:hdd.img, proto:uasp"
1134
1135 #=======================================================================
1136 # USB_XHCI:
1137 # This option controls the presence of the USB xHCI host controller with a
1138 # default 4-port hub. The portX parameter accepts the same device types
1139 # with the same syntax as the UHCI controller (see above). The optionsX
1140 # parameter is also available on xHCI.
1141 #
1142 # The xHCI emulation allows you to set the number of ports used with a range
1143 # of 2 to 10, requiring an even numbered count.
1144 #
1145 # NOTE: The first half of the ports, (ports 1 and 2 on a 4-port hub) are
1146 # USB3 only and support super-speed devices. The second half ports (ports
1147 # 3 and 4) are USB2 and support speed settings of low, full, or high.
1148 # The xHCI also allows for different host controllers using the model=
1149 # parameter. Currently, the two allowed options are "uPD720202" and
1150 # "uPD720201". The first defaults to 2 sockets (4 ports) and the later
1151 # defaults to 4 sockets (8 ports).
1152 #=======================================================================
1153 #usb_xhci: enabled=1 # defaults to the uPD720202 w/4 ports
1154 #usb_xhci: enabled=1, n_ports=6 # defaults to the uPD720202 w/6 ports
1155 #usb_xhci: enabled=1, model=uPD720202 # defaults to 4 ports
1156 #usb_xhci: enabled=1, model=uPD720202, n_ports=6 # change to 6 ports
1157 #usb_xhci: enabled=1, model=uPD720201 # defaults to 8 ports
1158 #usb_xhci: enabled=1, model=uPD720201, n_ports=10 # change to 10 ports
1159 #usb_xhci: port1=disk, options1="speed:super, path:hdd.img, proto:bbb"
1160 #usb_xhci: port1=disk, options1="speed:super, path:hdd.img, proto:uasp"
1161 #usb_xhci: port3=disk, options3="speed:high, path:hdd.img, proto:uasp"
1162
1163 #=======================================================================
1164 # USB Debugger:
1165 # This is the experimental USB Debugger for the Windows Platform.
1166 # Specify a type (none, uhci, ohci, ehci, xhci) and one or more triggers.
1167 # (Currently, only xhci is supported, with some uhci in the process)
1168 # Triggers:
1169 # reset: will break and load the debugger on a port reset
1170 # enable: will break and load the debugger on a port enable
1171 # doorbell: will break and load the debugger a xHCI Command Ring addition
1172 # event: will break and load the debugger on a xHCI Event Ring addition
1173 # data: will break and load the debugger on a xHCI Data Ring addition
1174 # start_frame: will break and load the debugger on start of frame
1175 # (this is different for each controller type)
1176 # non_exist: will break and load the debugger on a non-existant port access
1177 # (experimental and is under development)
1178 #=======================================================================
1179 #usb_debug: type=xhci, reset=1, enable=1, start_frame=1, doorbell=1, event=1, data=1, non_exist=1
1180
1181 #=======================================================================
1182 # PCIDEV:
1183 # PCI host device mapping
1184 # WARNING: This Bochs feature is not maintained yet and may fail.
1185 #=======================================================================
1186 #pcidev: vendor=0x1234, device=0x5678
1187
1188 #=======================================================================
1189 # GDBSTUB:
1190 # Enable GDB stub. See user documentation for details.
1191 # Default value is enabled=0.
1192 # WARNING: This Bochs feature is not maintained yet and may fail.
1193 #=======================================================================
1194 #gdbstub: enabled=0, port=1234, text_base=0, data_base=0, bss_base=0
1195
1196 #=======================================================================
1197 # MAGIC_BREAK:
1198 # This enables the "magic breakpoint" feature when using the debugger.
1199 # The useless cpu instructions XCHG %REGW, %REGW causes Bochs to enter the
1200 # debugger mode. This might be useful for software development.
1201 #
1202 # You can specify multiple at once:
1203 #
1204 # cx dx bx sp bp si di
1205 #
1206 # Example for breaking on "XCHGW %DI, %DI" or "XCHG %SP, %SP" execution
1207 # magic_break: enabled=1 di sp
1208 #
1209 # If nothing is specified, the default will be used: XCHGW %BX, %BX
1210 # magic_break: enabled=1
1211 #
1212 # Note: Windows XP ntldr can cause problems with XCHGW %BX, %BX
1213 #=======================================================================
1214 # magic_break: enabled=1
1215
1216 #=======================================================================
1217 # DEBUG_SYMBOLS:
1218 # This loads symbols from the specified file for use in Bochs' internal
1219 # debugger. Symbols are loaded into global context. This is equivalent to
1220 # issuing ldsym debugger command at start up.
1221 #
1222 # Example:
1223 # debug_symbols: file="kernel.sym"
1224 # debug_symbols: file="kernel.sym", offset=0x80000000
1225 #=======================================================================
1226 #debug_symbols: file="kernel.sym"
1227
1228 #print_timestamps: enabled=1
1229
1230 #=======================================================================
1231 # PORT_E9_HACK:
1232 # The 0xE9 port doesn't exists in normal ISA architecture. However, we
1233 # define a convention here, to display on the console of the system running
1234 # Bochs anything that is written to it. The idea is to provide debug output
1235 # very early when writing BIOS or OS code for example, without having to
1236 # bother with setting up a serial port or etc. Reading from port 0xE9 will
1237 # will return 0xe9 to let you know if the feature is available.
1238 # Leave this 0 unless you have a reason to use it. By enabling the
1239 # 'all_rings' option, you can utilize the port e9 hack from ring3.
1240 #
1241 # Example:
1242 # port_e9_hack: enabled=1
1243 # port_e9_hack: enabled=1, all_rings=1
1244 #=======================================================================
1245 #port_e9_hack: enabled=1, all_rings=1
1246
1247 #=======================================================================
1248 # IODEBUG:
1249 # I/O Interface to Bochs Debugger plugin allows the code running inside
1250 # Bochs to monitor memory ranges, trace individual instructions, and
1251 # observe register values during execution. By enabling the 'all_rings'
1252 # option, you can utilize the iodebug ports from ring3. For more
1253 # information, refer to "Advanced debugger usage" documentation.
1254 #
1255 # Example:
1256 # iodebug: all_rings=1
1257 #=======================================================================
1258 #iodebug: all_rings=1