docs queue
As promised, here's a pull request with the patches which do the qemu-doc rST conversion.
Minor changes since the patchset was posted:
* rebased
* the two auto-generated patches have been regenerated, to account for the qemu-options.hx changes that went into master since the patchset was posted
I have also now done the testing of the OSX change to the docs link. We've agreed to leave updating the Windows installer for later.
thanks
-- PMM
The following changes since commit 6b02fca71329ed858423b710699952b7f017034e:
Merge remote-tracking branch 'remotes/palmer/tags/riscv-for-master-5.0-sf4' into staging (2020-03-05 20:53:53 +0000)
are available in the Git repository at:
https://git.linaro.org/people/pmaydell/qemu-arm.git tags/pull-docs-20200306
for you to fetch changes up to 29f9dff79073cfdc336466a950294be91b90f514:
*.hx: Remove all the STEXI/ETEXI blocks (2020-03-06 11:06:55 +0000)
----------------------------------------------------------------
docs:
* Convert qemu-doc from Texinfo to rST
----------------------------------------------------------------
Kashyap Chamarthy (1):
docs/system: Convert qemu-cpu-models.texi to rST
Paolo Bonzini (13):
qemu-doc: convert user-mode emulation to a separate Sphinx manual
qemu-doc: remove target OS documentation
texi2pod: parse @include directives outside "@c man" blocks
qemu-doc: split CPU models doc between MIPS and x86 parts
qemu-doc: split qemu-doc.texi in multiple files
qemu-doc: extract common system emulator documentation from the PC section
qemu-doc: move system requirements chapter inside PC section
qemu-doc: split target sections to separate files
qemu-doc: move qemu-tech.texi into main section
qemu-doc: move included files to docs/system
qemu-doc: remove indices other than findex
docs/system: put qemu-block-drivers body in an included file docs/system: convert Texinfo documentation to rST
Peter Maydell (19):
qemu-doc: Remove the "CPU emulation" part of the "Implementation notes"
docs: Create defs.rst.inc as a place to define substitutions docs/system: Convert security.texi to rST format docs/system: convert managed startup to rST.
docs/system: convert the documentation of deprecated features to rST. hmp-commands.hx: Add rST documentation fragments hmp-commands-info.hx: Add rST documentation fragments doc/scripts/hxtool.py: Strip trailing ':' from DEFHEADING/ARCHHEADING
docs: Roll semihosting option information into qemu-options.hx
docs: Roll -prom-env and -g target-specific info into qemu-options.hx scripts/hxtool-conv: Archive script used in qemu-options.hx conversion qemu-options.hx: Add rST documentation fragments qemu-options.hx: Fix up the autogenerated rST
docs: Split out sections for the manpage into .rst.inc files
docs: Generate qemu.1 manpage with Sphinx
ui/cocoa.m: Update documentation file and pathname
docs: Stop building qemu-doc
docs: Remove old texinfo sources
*.hx: Remove all the STEXI/ETEXI blocks
docs/specs/ivshmem-spec.txt | 4 +-
Makefile | 47 +-
.gitignore | 3 -
MAINTAINERS | 7 +-
docs/conf.py | 6 +
docs/defs.rst.inc | 15 +
docs/index.html.in | 2 +-
docs/index.rst | 1 +
docs/qemu-cpu-models.texi | 677 ---
docs/sphinx/hxtool.py | 10 +-
docs/system/build-platforms.rst | 79 +
docs/system/conf.py | 8 +-
docs/system/cpu-models-mips.rst.inc | 105 +
docs/system/cpu-models-x86.rst.inc | 365 ++
docs/system/deprecated.rst | 446 ++
docs/system/device-url-syntax.rst.inc | 228 +
docs/system/gdb.rst | 81 +
docs/system/images.rst | 85 +
docs/system/index.rst | 22 +-
docs/system/invocation.rst | 18 +
docs/system/ivshmem.rst | 64 +
docs/system/keys.rst | 6 +
docs/system/keys.rst.inc | 35 +
docs/system/license.rst | 11 +
docs/system/linuxboot.rst | 30 +
docs/system/managed-startup.rst | 35 +
docs/system/monitor.rst | 31 +
docs/system/mux-chardev.rst | 6 +
docs/system/mux-chardev.rst.inc | 27 +
docs/system/net.rst | 100 +
docs/system/qemu-block-drivers.rst | 989 +---
docs/system/qemu-block-drivers.rst.inc | 954 ++++
docs/system/qemu-cpu-models.rst | 20 +
docs/system/qemu-manpage.rst | 45 +
docs/system/quickstart.rst | 13 +
docs/{security.texi => system/security.rst} | 82 +-
docs/system/target-arm.rst | 217 +
docs/system/target-i386-desc.rst.inc | 62 +
docs/system/target-i386.rst | 23 +
docs/system/target-m68k.rst | 21 +
docs/system/target-mips.rst | 120 +
docs/system/target-ppc.rst | 47 +
docs/system/target-sparc.rst | 62 +
docs/system/target-sparc64.rst | 37 +
docs/system/target-xtensa.rst | 27 +
docs/system/targets.rst | 19 +
docs/system/tls.rst | 328 ++
docs/system/usb.rst | 137 +
docs/system/vnc-security.rst | 202 +
docs/user/conf.py | 15 +
docs/user/index.rst | 16 +
docs/user/main.rst | 295 ++
hmp-commands-info.hx | 600 +--
hmp-commands.hx | 1451 +++---
qemu-deprecated.texi | 377 --
qemu-doc.texi | 2967 -----------
qemu-option-trace.texi | 28 -
qemu-options.hx | 7333 ++++++++++++++-------------
qemu-tech.texi | 195 -
scripts/hxtool-conv.pl | 137 +
scripts/texi2pod.pl | 36 +-
ui/cocoa.m | 4 +-
62 files changed, 9302 insertions(+), 10111 deletions(-)
create mode 100644 docs/defs.rst.inc
delete mode 100644 docs/qemu-cpu-models.texi
create mode 100644 docs/system/build-platforms.rst
create mode 100644 docs/system/cpu-models-mips.rst.inc
create mode 100644 docs/system/cpu-models-x86.rst.inc
create mode 100644 docs/system/deprecated.rst
create mode 100644 docs/system/device-url-syntax.rst.inc
create mode 100644 docs/system/gdb.rst
create mode 100644 docs/system/images.rst
create mode 100644 docs/system/invocation.rst
create mode 100644 docs/system/ivshmem.rst
create mode 100644 docs/system/keys.rst
create mode 100644 docs/system/keys.rst.inc
create mode 100644 docs/system/license.rst
create mode 100644 docs/system/linuxboot.rst
create mode 100644 docs/system/managed-startup.rst
create mode 100644 docs/system/monitor.rst
create mode 100644 docs/system/mux-chardev.rst
create mode 100644 docs/system/mux-chardev.rst.inc
create mode 100644 docs/system/net.rst
create mode 100644 docs/system/qemu-block-drivers.rst.inc
create mode 100644 docs/system/qemu-cpu-models.rst
create mode 100644 docs/system/qemu-manpage.rst
create mode 100644 docs/system/quickstart.rst
rename docs/{security.texi => system/security.rst} (77%)
create mode 100644 docs/system/target-arm.rst
create mode 100644 docs/system/target-i386-desc.rst.inc
create mode 100644 docs/system/target-i386.rst
create mode 100644 docs/system/target-m68k.rst
create mode 100644 docs/system/target-mips.rst
create mode 100644 docs/system/target-ppc.rst
create mode 100644 docs/system/target-sparc.rst
create mode 100644 docs/system/target-sparc64.rst
create mode 100644 docs/system/target-xtensa.rst
create mode 100644 docs/system/targets.rst
create mode 100644 docs/system/tls.rst
create mode 100644 docs/system/usb.rst
create mode 100644 docs/system/vnc-security.rst
create mode 100644 docs/user/conf.py
create mode 100644 docs/user/index.rst
create mode 100644 docs/user/main.rst
delete mode 100644 qemu-deprecated.texi
delete mode 100644 qemu-doc.texi
delete mode 100644 qemu-option-trace.texi
delete mode 100644 qemu-tech.texi
create mode 100755 scripts/hxtool-conv.pl[PULL 02/33] qemu-doc: remove target OS documentation
From: Paolo Bonzini <[email protected]>
This section covers OSes up to Windows 2000, and as such it is mostly obsolete. Zap it.
Message-id: [email protected]
Message-id: [email protected]
--- qemu-doc.texi | 96 --------------------------------------------------- 1 file changed, 96 deletions(-)
qemu-doc.texi +0 -96
@@ -148,7 +148,6 @@ accelerator is required to use more than one host CPU for emulation. * vnc_security:: VNC security * network_tls:: TLS setup for network services * gdb_usage:: GDB usage -* pcsys_os_specific:: Target OS specific information @end menu @node pcsys_introduction
@@ -1605,101 +1604,6 @@ received: "OK" @end example @end table -@node pcsys_os_specific -@section Target OS specific information - -@subsection Linux - -To have access to SVGA graphic modes under X11, use the @code{vesa} or -the @code{cirrus} X11 driver. For optimal performances, use 16 bit -color depth in the guest and the host OS. - -When using a 2.6 guest Linux kernel, you should add the option -@code{clock=pit} on the kernel command line because the 2.6 Linux -kernels make very strict real time clock checks by default that QEMU -cannot simulate exactly. - -When using a 2.6 guest Linux kernel, verify that the 4G/4G patch is -not activated because QEMU is slower with this patch. The QEMU -Accelerator Module is also much slower in this case. Earlier Fedora -Core 3 Linux kernel (< 2.6.9-1.724_FC3) were known to incorporate this -patch by default. Newer kernels don't have it. - -@subsection Windows - -If you have a slow host, using Windows 95 is better as it gives the -best speed. Windows 2000 is also a good choice. - -@subsubsection SVGA graphic modes support - -QEMU emulates a Cirrus Logic GD5446 Video -card. All Windows versions starting from Windows 95 should recognize -and use this graphic card. For optimal performances, use 16 bit color -depth in the guest and the host OS. - -If you are using Windows XP as guest OS and if you want to use high -resolution modes which the Cirrus Logic BIOS does not support (i.e. >= -1280x1024x16), then you should use the VESA VBE virtual graphic card -(option @option{-std-vga}). - -@subsubsection CPU usage reduction - -Windows 9x does not correctly use the CPU HLT -instruction. The result is that it takes host CPU cycles even when -idle. You can install the utility from -@url{https://web.archive.org/web/20060212132151/http://www.user.cityline.ru/~maxamn/amnhltm.zip} -to solve this problem. Note that no such tool is needed for NT, 2000 or XP. - -@subsubsection Windows 2000 disk full problem - -Windows 2000 has a bug which gives a disk full problem during its -installation. When installing it, use the @option{-win2k-hack} QEMU -option to enable a specific workaround. After Windows 2000 is -installed, you no longer need this option (this option slows down the -IDE transfers). - -@subsubsection Windows 2000 shutdown - -Windows 2000 cannot automatically shutdown in QEMU although Windows 98 -can. It comes from the fact that Windows 2000 does not automatically -use the APM driver provided by the BIOS. - -In order to correct that, do the following (thanks to Struan -Bartlett): go to the Control Panel => Add/Remove Hardware & Next => -Add/Troubleshoot a device => Add a new device & Next => No, select the -hardware from a list & Next => NT Apm/Legacy Support & Next => Next -(again) a few times. Now the driver is installed and Windows 2000 now -correctly instructs QEMU to shutdown at the appropriate moment. - -@subsubsection Share a directory between Unix and Windows - -See @ref{sec_invocation} about the help of the option -@option{'-netdev user,smb=...'}. - -@subsubsection Windows XP security problem - -Some releases of Windows XP install correctly but give a security -error when booting: -@example -A problem is preventing Windows from accurately checking the -license for this computer. Error code: 0x800703e6. -@end example - -The workaround is to install a service pack for XP after a boot in safe -mode. Then reboot, and the problem should go away. Since there is no -network while in safe mode, its recommended to download the full -installation of SP1 or SP2 and transfer that via an ISO or using the -vvfat block device ("-hdb fat:directory_which_holds_the_SP"). - -@subsection MS-DOS and FreeDOS - -@subsubsection CPU usage reduction - -DOS does not correctly use the CPU HLT instruction. The result is that -it takes host CPU cycles even when idle. You can install the utility from -@url{https://web.archive.org/web/20051222085335/http://www.vmware.com/software/dosidle210.zip} -to solve this problem. - @node QEMU System emulator for non PC targets @chapter QEMU System emulator for non PC targets
Signature · 1 line
2.20.1
[PULL 03/33] texi2pod: parse @include directives outside "@c man" blocks
In reply to Peter MaydellFrom: Paolo Bonzini <[email protected]>
This enables splitting the huge qemu-doc.texi file and keeping parallel Texinfo and rST versions of the documentation. texi2pod is not going to live much longer and hardly anyone cares about its upstream status, so the temporary fork should be acceptable.
Message-id: [email protected]
Message-id: [email protected]
--- scripts/texi2pod.pl | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-)
scripts/texi2pod.pl +18 -18
@@ -143,6 +143,24 @@ while(<$inf>) { next; }; + # Single line command handlers. + + /^\@include\s+(.+)$/ and do { + push @instack, $inf; + $inf = gensym(); + $file = postprocess($1); + + # Try cwd and $ibase, then explicit -I paths. + $done = 0; + foreach $path ("", $ibase, @ipath) { + $mypath = $file; + $mypath = $path . "/" . $mypath if ($path ne ""); + open($inf, "<" . $mypath) and ($done = 1, last); + } + die "cannot find $file" if !$done; + next; + }; + next unless $output; # Discard comments. (Can't do it above, because then we'd never see
@@ -242,24 +260,6 @@ while(<$inf>) { s/>/>/g; } - # Single line command handlers. - - /^\@include\s+(.+)$/ and do { - push @instack, $inf; - $inf = gensym(); - $file = postprocess($1); - - # Try cwd and $ibase, then explicit -I paths. - $done = 0; - foreach $path ("", $ibase, @ipath) { - $mypath = $file; - $mypath = $path . "/" . $mypath if ($path ne ""); - open($inf, "<" . $mypath) and ($done = 1, last); - } - die "cannot find $file" if !$done; - next; - }; - /^\@(?:section|unnumbered|unnumberedsec|center)\s+(.+)$/ and $_ = "\n=head2 $1\n"; /^\@subsection\s+(.+)$/
Signature · 1 line
2.20.1
[PULL 04/33] qemu-doc: split CPU models doc between MIPS and x86 parts
In reply to Peter MaydellFrom: Paolo Bonzini <[email protected]>
The MIPS CPU models end up in the middle of the PC documentation. Move them to a separate file so that they can be placed in the right section.
The man page still includes both x86 and MIPS content.
Message-id: [email protected]
Message-id: [email protected]
---
Makefile | 11 +-
MAINTAINERS | 3 +-
docs/system/cpu-models-mips.texi | 157 +++++++++++++
.../cpu-models-x86.texi} | 221 ++----------------
docs/system/qemu-cpu-models.texi | 28 +++
qemu-doc.texi | 12 +-
6 files changed, 213 insertions(+), 219 deletions(-)
create mode 100644 docs/system/cpu-models-mips.texi
rename docs/{qemu-cpu-models.texi => system/cpu-models-x86.texi} (71%)
create mode 100644 docs/system/qemu-cpu-models.texiMakefile +6 -5
@@ -354,7 +354,7 @@ endif DOCS+=$(MANUAL_BUILDDIR)/system/qemu-block-drivers.7 DOCS+=docs/interop/qemu-qmp-ref.html docs/interop/qemu-qmp-ref.txt docs/interop/qemu-qmp-ref.7 DOCS+=docs/interop/qemu-ga-ref.html docs/interop/qemu-ga-ref.txt docs/interop/qemu-ga-ref.7 -DOCS+=docs/qemu-cpu-models.7 +DOCS+=docs/system/qemu-cpu-models.7 DOCS+=$(MANUAL_BUILDDIR)/index.html ifdef CONFIG_VIRTFS DOCS+=$(MANUAL_BUILDDIR)/tools/virtfs-proxy-helper.1
@@ -780,7 +780,7 @@ distclean: clean rm -f docs/interop/qemu-qmp-ref.txt docs/interop/qemu-ga-ref.txt rm -f docs/interop/qemu-qmp-ref.pdf docs/interop/qemu-ga-ref.pdf rm -f docs/interop/qemu-qmp-ref.html docs/interop/qemu-ga-ref.html - rm -f docs/qemu-cpu-models.7 + rm -f docs/system/qemu-cpu-models.7 rm -rf .doctrees $(call clean-manual,devel) $(call clean-manual,interop)
@@ -861,7 +861,7 @@ ifdef CONFIG_POSIX $(INSTALL_DIR) "$(DESTDIR)$(mandir)/man7" $(INSTALL_DATA) docs/interop/qemu-qmp-ref.7 "$(DESTDIR)$(mandir)/man7" $(INSTALL_DATA) $(MANUAL_BUILDDIR)/system/qemu-block-drivers.7 "$(DESTDIR)$(mandir)/man7" - $(INSTALL_DATA) docs/qemu-cpu-models.7 "$(DESTDIR)$(mandir)/man7" + $(INSTALL_DATA) docs/system/qemu-cpu-models.7 "$(DESTDIR)$(mandir)/man7" ifeq ($(CONFIG_TOOLS),y) $(INSTALL_DATA) $(MANUAL_BUILDDIR)/tools/qemu-img.1 "$(DESTDIR)$(mandir)/man1" $(INSTALL_DIR) "$(DESTDIR)$(mandir)/man8"
@@ -1111,7 +1111,7 @@ docs/interop/qemu-ga-qapi.texi: qga/qapi-generated/qga-qapi-doc.texi qemu.1: qemu-doc.texi qemu-options.texi qemu-monitor.texi qemu-monitor-info.texi qemu.1: qemu-option-trace.texi -docs/qemu-cpu-models.7: docs/qemu-cpu-models.texi +docs/system/qemu-cpu-models.7: docs/system/qemu-cpu-models.texi docs/system/cpu-models-x86.texi docs/system/cpu-models-mips.texi html: qemu-doc.html docs/interop/qemu-qmp-ref.html docs/interop/qemu-ga-ref.html sphinxdocs info: qemu-doc.info docs/interop/qemu-qmp-ref.info docs/interop/qemu-ga-ref.info
@@ -1123,7 +1123,8 @@ qemu-doc.html qemu-doc.info qemu-doc.pdf qemu-doc.txt: \ qemu-tech.texi qemu-option-trace.texi \ qemu-deprecated.texi qemu-monitor.texi \ qemu-monitor-info.texi \ - docs/qemu-cpu-models.texi docs/security.texi + docs/system/cpu-models-x86.texi docs/system/cpu-models-mips.texi \ + docs/security.texi docs/interop/qemu-ga-ref.dvi docs/interop/qemu-ga-ref.html \ docs/interop/qemu-ga-ref.info docs/interop/qemu-ga-ref.pdf \
MAINTAINERS +2 -1
@@ -215,6 +215,7 @@ S: Maintained F: target/mips/ F: default-configs/*mips* F: disas/*mips* +F: docs/system/cpu-models-mips.texi F: hw/intc/mips_gic.c F: hw/mips/ F: hw/misc/mips_*
@@ -319,7 +320,7 @@ F: tests/tcg/i386/ F: tests/tcg/x86_64/ F: hw/i386/ F: disas/i386.c -F: docs/qemu-cpu-models.texi +F: docs/system/cpu-models-x86.texi T: git https://github.com/ehabkost/qemu.git x86-next Xtensa TCG CPUs
docs/system/cpu-models-mips.texi new file +157 -0
157 lines not on this page · raw message
docs/system/cpu-models-x86.texi renamed from docs/qemu-cpu-models.texi +13 -208
289 lines not on this page · raw message
docs/system/qemu-cpu-models.texi new file +28 -0
@@ -0,0 +1,28 @@ +@c man begin SYNOPSIS +QEMU / KVM CPU model configuration +@c man end + +@set qemu_system_x86 qemu-system-x86_64 + +@c man begin DESCRIPTION + +@include cpu-models-x86.texi +@include cpu-models-mips.texi + +@c man end + +@ignore + +@setfilename qemu-cpu-models +@settitle QEMU / KVM CPU model configuration + +@c man begin SEEALSO +The HTML documentation of QEMU for more precise information and Linux +user mode emulator invocation. +@c man end + +@c man begin AUTHOR +Daniel P. Berrange +@c man end + +@end ignore
qemu-doc.texi +7 -5
@@ -139,7 +139,7 @@ accelerator is required to use more than one host CPU for emulation. * pcsys_keys:: Keys in the graphical frontends * mux_keys:: Keys in the character backend multiplexer * pcsys_monitor:: QEMU Monitor -* cpu_models:: CPU models +* cpu_models_x86:: Supported CPU model configurations on x86 hosts * disk_images:: Disk Images * pcsys_network:: Network emulation * pcsys_other_devs:: Other Devices
@@ -614,10 +614,7 @@ The monitor understands integers expressions for every integer argument. You can use register names to get the value of specifics CPU registers by prefixing them with @emph{$}. -@node cpu_models -@section CPU models - -@include docs/qemu-cpu-models.texi +@include docs/system/cpu-models-x86.texi @node disk_images @section Disk Images
@@ -1864,6 +1861,7 @@ Set the emulated machine type. The default is sun4u. @cindex system emulation (MIPS) @menu +* recommendations_cpu_models_MIPS:: Supported CPU model configurations on MIPS hosts * nanoMIPS System emulator :: @end menu
@@ -1980,6 +1978,10 @@ PC style serial port MIPSnet network emulation @end itemize +@lowersections +@include docs/system/cpu-models-mips.texi +@raisesections + @node nanoMIPS System emulator @subsection nanoMIPS System emulator @cindex system emulation (nanoMIPS)
Signature · 1 line
2.20.1
[PULL 07/33] qemu-doc: move system requirements chapter inside PC section
In reply to Peter MaydellFrom: Paolo Bonzini <[email protected]>
The system requirements documented in this chapter are limited to x86 KVM targets. Clean them up and move them to the target section.
Message-id: [email protected]
Message-id: [email protected]
--- qemu-doc.texi | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-)
qemu-doc.texi +8 -14
@@ -38,7 +38,6 @@ * Introduction:: * QEMU System emulator:: * QEMU System emulator targets:: -* System requirements:: * Security:: * Implementation notes:: * Deprecated features::
@@ -190,6 +189,7 @@ various targets are mentioned in the following sections. @menu * pcsys_devices:: Peripherals * cpu_models_x86:: Supported CPU model configurations on x86 hosts +* pcsys_req:: OS requirements @end menu @node pcsys_devices
@@ -267,6 +267,13 @@ CS4231A is the chip used in Windows Sound System and GUSMAX products @include docs/system/cpu-models-x86.texi @raisesections +@node pcsys_req +@subsection OS requirements + +On x86_64 hosts, the default set of CPU features enabled by the KVM accelerator +require the host to be running Linux v4.5 or newer. Red Hat Enterprise Linux +7 is also supported, since the required functionality was backported. + @node PowerPC System emulator @section PowerPC System emulator @cindex system emulation (PowerPC)
@@ -1038,19 +1045,6 @@ so should only be used with trusted guest OS. @c man end -@node System requirements -@chapter System requirements - -@section KVM kernel module - -On x86_64 hosts, the default set of CPU features enabled by the KVM accelerator -require the host to be running Linux v4.5 or newer. - -The OpteronG[345] CPU models require KVM support for RDTSCP, which was -added with Linux 4.5 which is supported by the major distros. And even -if RHEL7 has kernel 3.10, KVM there has the required functionality there -to make it close to a 4.5 or newer kernel. - @include docs/security.texi @include qemu-tech.texi
Signature · 1 line
2.20.1
[PULL 01/33] qemu-doc: convert user-mode emulation to a separate Sphinx manual
In reply to Peter MaydellFrom: Paolo Bonzini <[email protected]>
The final addition to the set of QEMU manuals is the user-mode emulation manual, which right now is included in qemu-doc.texi. Extract it and convert it to rST, so that qemu-doc.texi covers only full system emulation.
Message-id: [email protected]
Message-id: [email protected] [PMM: Fix makefile conflicts; add user manual to
index.rst and index.html.in; don't specify empty man_pages list; fixed a few comments to say 'user' rather than 'system']
--- Makefile | 8 +- docs/index.html.in | 1 + docs/index.rst | 1 + docs/user/conf.py | 15 ++ docs/user/index.rst | 16 +++ docs/user/main.rst | 295 ++++++++++++++++++++++++++++++++++++++ qemu-doc.texi | 337 -------------------------------------------- 7 files changed, 335 insertions(+), 338 deletions(-) create mode 100644 docs/user/conf.py create mode 100644 docs/user/index.rst create mode 100644 docs/user/main.rst
Makefile +7 -1
@@ -787,6 +787,7 @@ distclean: clean $(call clean-manual,specs) $(call clean-manual,system) $(call clean-manual,tools) + $(call clean-manual,user) for d in $(TARGET_DIRS); do \ rm -rf $$d || exit 1 ; \ done
@@ -845,6 +846,7 @@ install-sphinxdocs: sphinxdocs $(call install-manual,specs) $(call install-manual,system) $(call install-manual,tools) + $(call install-manual,user) install-doc: $(DOCS) install-sphinxdocs $(INSTALL_DIR) "$(DESTDIR)$(qemu_docdir)"
@@ -1039,7 +1041,8 @@ sphinxdocs: $(MANUAL_BUILDDIR)/devel/index.html \ $(MANUAL_BUILDDIR)/interop/index.html \ $(MANUAL_BUILDDIR)/specs/index.html \ $(MANUAL_BUILDDIR)/system/index.html \ - $(MANUAL_BUILDDIR)/tools/index.html + $(MANUAL_BUILDDIR)/tools/index.html \ + $(MANUAL_BUILDDIR)/user/index.html # Canned command to build a single manual # Arguments: $1 = manual name, $2 = Sphinx builder ('html' or 'man')
@@ -1074,6 +1077,9 @@ $(MANUAL_BUILDDIR)/system/index.html: $(call manual-deps,system) $(MANUAL_BUILDDIR)/tools/index.html: $(call manual-deps,tools) $(SRC_PATH)/qemu-img-cmds.hx $(SRC_PATH)/docs/qemu-option-trace.rst.inc $(call build-manual,tools,html) +$(MANUAL_BUILDDIR)/user/index.html: $(call manual-deps,user) + $(call build-manual,user,html) + $(call define-manpage-rule,interop,qemu-ga.8) $(call define-manpage-rule,system,qemu-block-drivers.7)
docs/index.html.in +1 -0
@@ -14,6 +14,7 @@ <li><a href="specs/index.html">System Emulation Guest Hardware Specifications</a></li> <li><a href="system/index.html">System Emulation User's Guide</a></li> <li><a href="tools/index.html">Tools Guide</a></li> + <li><a href="user/index.html">User Mode Emulation User's Guide</a></li> </ul> </body> </html>
docs/index.rst +1 -0
@@ -15,3 +15,4 @@ Welcome to QEMU's documentation! specs/index system/index tools/index + user/index
docs/user/conf.py new file +15 -0
@@ -0,0 +1,15 @@ +# -*- coding: utf-8 -*- +# +# QEMU documentation build configuration file for the 'user' manual. +# +# This includes the top level conf file and then makes any necessary tweaks. +import sys +import os + +qemu_docdir = os.path.abspath("..") +parent_config = os.path.join(qemu_docdir, "conf.py") +exec(compile(open(parent_config, "rb").read(), parent_config, 'exec')) + +# This slightly misuses the 'description', but is the best way to get +# the manual title to appear in the sidebar. +html_theme_options['description'] = u'User Mode Emulation User''s Guide'
docs/user/index.rst new file +16 -0
@@ -0,0 +1,16 @@ +.. This is the top level page for the 'user' manual. + + +QEMU User Mode Emulation User's Guide +===================================== + +This manual is the overall guide for users using QEMU +for user-mode emulation. In this mode, QEMU can launch +processes compiled for one CPU on another CPU. + +Contents: + +.. toctree:: + :maxdepth: 2 + + main
docs/user/main.rst new file +295 -0
295 lines not on this page · raw message
qemu-doc.texi +0 -337
349 lines not on this page · raw message
Signature · 1 line
2.20.1
[PULL 11/33] qemu-doc: move included files to docs/system
In reply to Peter MaydellFrom: Paolo Bonzini <[email protected]>
Since qemu-doc.texi is mostly including files from docs/system, move the existing include files there for consistency.
Message-id: [email protected]
Message-id: [email protected]
---
Makefile | 8 ++++----
MAINTAINERS | 5 +++--
qemu-deprecated.texi => docs/system/deprecated.texi | 0
.../system/qemu-option-trace.texi | 0
docs/{ => system}/security.texi | 0
qemu-doc.texi | 4 ++--
qemu-options.hx | 2 +-
7 files changed, 10 insertions(+), 9 deletions(-)
rename qemu-deprecated.texi => docs/system/deprecated.texi (100%)
rename qemu-option-trace.texi => docs/system/qemu-option-trace.texi (100%)
rename docs/{ => system}/security.texi (100%)Makefile +4 -4
@@ -1110,7 +1110,7 @@ docs/interop/qemu-ga-qapi.texi: qga/qapi-generated/qga-qapi-doc.texi @cp -p $< $@ qemu.1: qemu-doc.texi qemu-options.texi qemu-monitor.texi qemu-monitor-info.texi -qemu.1: qemu-option-trace.texi +qemu.1: docs/system/qemu-option-trace.texi docs/system/qemu-cpu-models.7: docs/system/qemu-cpu-models.texi docs/system/cpu-models-x86.texi docs/system/cpu-models-mips.texi html: qemu-doc.html docs/interop/qemu-qmp-ref.html docs/interop/qemu-ga-ref.html sphinxdocs
@@ -1120,8 +1120,7 @@ txt: qemu-doc.txt docs/interop/qemu-qmp-ref.txt docs/interop/qemu-ga-ref.txt qemu-doc.html qemu-doc.info qemu-doc.pdf qemu-doc.txt: \ qemu-options.texi \ - qemu-option-trace.texi \ - qemu-deprecated.texi qemu-monitor.texi \ + qemu-monitor.texi \ qemu-monitor-info.texi \ docs/system/quickstart.texi \ docs/system/invocation.texi \
@@ -1140,7 +1139,8 @@ qemu-doc.html qemu-doc.info qemu-doc.pdf qemu-doc.txt: \ docs/system/build-platforms.texi \ docs/system/license.texi \ docs/system/cpu-models-x86.texi docs/system/cpu-models-mips.texi \ - docs/security.texi + docs/system/deprecated.texi docs/system/qemu-option-trace.texi \ + docs/system/security.texi docs/interop/qemu-ga-ref.dvi docs/interop/qemu-ga-ref.html \ docs/interop/qemu-ga-ref.info docs/interop/qemu-ga-ref.pdf \
MAINTAINERS +3 -2
@@ -2234,7 +2234,7 @@ M: Stefan Hajnoczi <[email protected]> S: Maintained F: trace/ F: trace-events -F: qemu-option-trace.texi +F: docs/system/qemu-option-trace.texi F: scripts/tracetool.py F: scripts/tracetool/ F: scripts/qemu-trace-stap*
@@ -2804,7 +2804,8 @@ F: contrib/gitdm/* Incompatible changes R: [email protected] -F: qemu-deprecated.texi +F: docs/system/deprecated.texi +F: docs/system/deprecated.rst Build System ------------
docs/system/deprecated.texi renamed from qemu-deprecated.texi +0 -0
docs/system/qemu-option-trace.texi renamed from qemu-option-trace.texi +0 -0
docs/system/security.texi renamed from docs/security.texi +0 -0
qemu-doc.texi +2 -2
@@ -189,9 +189,9 @@ various targets are mentioned in the following sections. @include docs/system/target-m68k.texi @include docs/system/target-xtensa.texi -@include docs/security.texi +@include docs/system/security.texi -@include qemu-deprecated.texi +@include docs/system/deprecated.texi @include docs/system/build-platforms.texi
qemu-options.hx +1 -1
@@ -4221,7 +4221,7 @@ HXCOMM This line is not accurate, as some sub-options are backend-specific but HXCOMM HX does not support conditional compilation of text. @item -trace [[enable=]@var{pattern}][,events=@var{file}][,file=@var{file}] @findex -trace -@include qemu-option-trace.texi +@include docs/system/qemu-option-trace.texi ETEXI DEF("plugin", HAS_ARG, QEMU_OPTION_plugin, "-plugin [file=]<file>[,arg=<string>]\n"
Signature · 1 line
2.20.1
[PULL 14/33] docs: Create defs.rst.inc as a place to define substitutions
In reply to Peter MaydellRather than accumulating generally useful rST substitution definitions in individual rST files, create a defs.rst.inc where we can define these. To start with it has the |qemu_system| definition from qemu-block-drivers.rst.
Add a comment noting a pitfall where putting literal markup in the definition of |qemu_system| makes it misrender manpage output; this means the point-of-use must handle the literal markup (which is almost always done by having it inside a parsed-literal block).
Message-id: [email protected]
--- Makefile | 1 + docs/conf.py | 6 ++++++ docs/defs.rst.inc | 11 +++++++++++ docs/system/qemu-block-drivers.rst | 2 -- 4 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 docs/defs.rst.inc
Makefile +1 -0
@@ -1052,6 +1052,7 @@ sphinxdocs: $(MANUAL_BUILDDIR)/devel/index.html \ build-manual = $(call quiet-command,CONFDIR="$(qemu_confdir)" $(SPHINX_BUILD) $(if $(V),,-q) -W -b $2 -D version=$(VERSION) -D release="$(FULL_VERSION)" -d .doctrees/$1-$2 $(SRC_PATH)/docs/$1 $(MANUAL_BUILDDIR)/$1 ,"SPHINX","$(MANUAL_BUILDDIR)/$1") # We assume all RST files in the manual's directory are used in it manual-deps = $(wildcard $(SRC_PATH)/docs/$1/*.rst) \ + $(SRC_PATH)/docs/defs.rst.inc \ $(SRC_PATH)/docs/$1/conf.py $(SRC_PATH)/docs/conf.py # Macro to write out the rule and dependencies for building manpages # Usage: $(call define-manpage-rule,manualname,manpage1 manpage2...[,extradeps])
docs/conf.py +6 -0
@@ -132,6 +132,12 @@ suppress_warnings = ["ref.option"] # style document building; our Makefile always sets the variable. confdir = os.getenv('CONFDIR', "/etc/qemu") rst_epilog = ".. |CONFDIR| replace:: ``" + confdir + "``\n" +# We slurp in the defs.rst.inc and literally include it into rst_epilog, +# because Sphinx's include:: directive doesn't work with absolute paths +# and there isn't any one single relative path that will work for all +# documents and for both via-make and direct sphinx-build invocation. +with open(os.path.join(qemu_docdir, 'defs.rst.inc')) as f: + rst_epilog += f.read() # -- Options for HTML output ----------------------------------------------
docs/defs.rst.inc new file +11 -0
@@ -0,0 +1,11 @@ +.. + Generally useful rST substitution definitions. This is included for + all rST files as part of the epilogue by docs/conf.py. conf.py + also defines some dynamically generated substitutions like CONFDIR. + + Note that |qemu_system| is intended to be used inside a parsed-literal + block: the definition must not include extra literal formatting with + ``..``: this works in the HTML output but the manpages will end up + misrendered with following normal text incorrectly in boldface. + +.. |qemu_system| replace:: qemu-system-x86_64
docs/system/qemu-block-drivers.rst +0 -2
@@ -3,8 +3,6 @@ QEMU block drivers reference ============================ -.. |qemu_system| replace:: qemu-system-x86_64 - Synopsis --------
Signature · 1 line
2.20.1
[PULL 06/33] qemu-doc: extract common system emulator documentation from the PC section
In reply to Peter MaydellFrom: Paolo Bonzini <[email protected]>
Move the section on PC peripherals together with other targets. While some x86-specific information remains in the main system emulation chapter, it can be tackled more easily a section at a time.
Message-id: [email protected]
Message-id: [email protected]
--- docs/system/quickstart.texi | 2 +- qemu-doc.texi | 102 ++++++++++++++++++++---------------- 2 files changed, 57 insertions(+), 47 deletions(-)
docs/system/quickstart.texi +1 -1
@@ -2,7 +2,7 @@ @section Quick Start @cindex quick start -Download and uncompress a hard disk image with Linux installed (e.g. +Download and uncompress a PC hard disk image with Linux installed (e.g. @file{linux.img}) and type: @example
qemu-doc.texi +56 -46
136 lines not on this page · raw message
Signature · 1 line
2.20.1
[PULL 12/33] qemu-doc: remove indices other than findex
In reply to Peter MaydellFrom: Paolo Bonzini <[email protected]>
These indices are not well-maintained, and pandoc also chokes on the directives. Just nuke them.
Message-id: [email protected]
Message-id: [email protected]
--- docs/system/keys.texi | 10 -------- docs/system/monitor.texi | 1 - docs/system/mux-chardev.texi | 7 ------ docs/system/quickstart.texi | 1 - docs/system/target-arm.texi | 1 - docs/system/target-i386.texi | 1 - docs/system/target-m68k.texi | 2 -- docs/system/target-mips.texi | 2 -- docs/system/target-ppc.texi | 1 - docs/system/target-sparc.texi | 1 - docs/system/target-sparc64.texi | 1 - docs/system/target-xtensa.texi | 1 - qemu-doc.texi | 44 --------------------------------- 13 files changed, 73 deletions(-)
docs/system/keys.texi +0 -10
@@ -10,23 +10,18 @@ then the modifier is Ctrl-Alt-Shift (instead of Ctrl-Alt) and if you use @table @key @item Ctrl-Alt-f -@kindex Ctrl-Alt-f Toggle full screen @item Ctrl-Alt-+ -@kindex Ctrl-Alt-+ Enlarge the screen @item Ctrl-Alt-- -@kindex Ctrl-Alt-- Shrink the screen @item Ctrl-Alt-u -@kindex Ctrl-Alt-u Restore the screen's un-scaled dimensions @item Ctrl-Alt-n -@kindex Ctrl-Alt-n Switch to virtual console 'n'. Standard console mappings are: @table @emph @item 1
@@ -38,14 +33,9 @@ Serial port @end table @item Ctrl-Alt -@kindex Ctrl-Alt Toggle mouse and keyboard grab. @end table -@kindex Ctrl-Up -@kindex Ctrl-Down -@kindex Ctrl-PageUp -@kindex Ctrl-PageDown In the virtual consoles, you can use @key{Ctrl-Up}, @key{Ctrl-Down}, @key{Ctrl-PageUp} and @key{Ctrl-PageDown} to move in the back log.
docs/system/monitor.texi +0 -1
@@ -1,6 +1,5 @@ @node pcsys_monitor @section QEMU Monitor -@cindex QEMU monitor The QEMU monitor is used to give complex commands to the QEMU emulator. You can use it to:
docs/system/mux-chardev.texi +0 -7
@@ -12,26 +12,19 @@ you're using the default. @table @key @item Ctrl-a h -@kindex Ctrl-a h Print this help @item Ctrl-a x -@kindex Ctrl-a x Exit emulator @item Ctrl-a s -@kindex Ctrl-a s Save disk data back to file (if -snapshot) @item Ctrl-a t -@kindex Ctrl-a t Toggle console timestamps @item Ctrl-a b -@kindex Ctrl-a b Send break (magic sysrq in Linux) @item Ctrl-a c -@kindex Ctrl-a c Rotate between the frontends connected to the multiplexer (usually this switches between the monitor and the console) @item Ctrl-a Ctrl-a -@kindex Ctrl-a Ctrl-a Send the escape character to the frontend @end table @c man end
docs/system/quickstart.texi +0 -1
@@ -1,6 +1,5 @@ @node pcsys_quickstart @section Quick Start -@cindex quick start Download and uncompress a PC hard disk image with Linux installed (e.g. @file{linux.img}) and type:
docs/system/target-arm.texi +0 -1
@@ -1,6 +1,5 @@ @node ARM System emulator @section ARM System emulator -@cindex system emulation (ARM) Use the executable @file{qemu-system-arm} to simulate a ARM machine. The ARM Integrator/CP board is emulated with the following
docs/system/target-i386.texi +0 -1
@@ -1,6 +1,5 @@ @node x86 (PC) System emulator @section x86 (PC) System emulator -@cindex system emulation (PC) @menu * pcsys_devices:: Peripherals
docs/system/target-m68k.texi +0 -2
@@ -1,7 +1,5 @@ @node ColdFire System emulator @section ColdFire System emulator -@cindex system emulation (ColdFire) -@cindex system emulation (M68K) Use the executable @file{qemu-system-m68k} to simulate a ColdFire machine. The emulator is able to boot a uClinux kernel.
docs/system/target-mips.texi +0 -2
@@ -1,6 +1,5 @@ @node MIPS System emulator @section MIPS System emulator -@cindex system emulation (MIPS) @menu * recommendations_cpu_models_MIPS:: Supported CPU model configurations on MIPS hosts
@@ -126,7 +125,6 @@ MIPSnet network emulation @node nanoMIPS System emulator @subsection nanoMIPS System emulator -@cindex system emulation (nanoMIPS) Executable @file{qemu-system-mipsel} also covers simulation of 32-bit nanoMIPS system in little endian mode:
docs/system/target-ppc.texi +0 -1
@@ -1,6 +1,5 @@ @node PowerPC System emulator @section PowerPC System emulator -@cindex system emulation (PowerPC) Use the executable @file{qemu-system-ppc} to simulate a complete 40P (PREP) or PowerMac PowerPC system.
docs/system/target-sparc.texi +0 -1
@@ -1,6 +1,5 @@ @node Sparc32 System emulator @section Sparc32 System emulator -@cindex system emulation (Sparc32) Use the executable @file{qemu-system-sparc} to simulate the following Sun4m architecture machines:
docs/system/target-sparc64.texi +0 -1
@@ -1,6 +1,5 @@ @node Sparc64 System emulator @section Sparc64 System emulator -@cindex system emulation (Sparc64) Use the executable @file{qemu-system-sparc64} to simulate a Sun4u (UltraSPARC PC-like machine), Sun4v (T1 PC-like machine), or generic
docs/system/target-xtensa.texi +0 -1
@@ -1,6 +1,5 @@ @node Xtensa System emulator @section Xtensa System emulator -@cindex system emulation (Xtensa) Two executables cover simulation of both Xtensa endian options, @file{qemu-system-xtensa} and @file{qemu-system-xtensaeb}.
qemu-doc.texi +0 -44
77 lines not on this page · raw message
Signature · 1 line
2.20.1
[PULL 16/33] docs/system: Convert security.texi to rST format
In reply to Peter Maydellsecurity.texi is included from qemu-doc.texi but is not used in the qemu.1 manpage. So we can do a straightforward conversion of the contents, which go into the system manual.
Message-id: [email protected]
Message-id: [email protected]
--- docs/system/index.rst | 1 + docs/system/security.rst | 173 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 174 insertions(+) create mode 100644 docs/system/security.rst
docs/system/index.rst +1 -0
@@ -14,4 +14,5 @@ Contents: .. toctree:: :maxdepth: 2 + security vfio-ap
docs/system/security.rst new file +173 -0
173 lines not on this page · raw message
Signature · 1 line
2.20.1
[PULL 17/33] docs/system: convert managed startup to rST.
In reply to Peter MaydellFix one typo in the process and format more option and command names as literal text, but make no significant changes to the content.
Message-id: [email protected]
Message-id: [email protected]
--- docs/system/index.rst | 2 +- docs/system/managed-startup.rst | 35 +++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 docs/system/managed-startup.rst
docs/system/index.rst +1 -1
@@ -13,6 +13,6 @@ Contents: .. toctree:: :maxdepth: 2 - + managed-startup security vfio-ap
docs/system/managed-startup.rst new file +35 -0
@@ -0,0 +1,35 @@ +Managed start up options +======================== + +In system mode emulation, it's possible to create a VM in a paused +state using the ``-S`` command line option. In this state the machine +is completely initialized according to command line options and ready +to execute VM code but VCPU threads are not executing any code. The VM +state in this paused state depends on the way QEMU was started. It +could be in: + +- initial state (after reset/power on state) +- with direct kernel loading, the initial state could be amended to execute + code loaded by QEMU in the VM's RAM and with incoming migration +- with incoming migration, initial state will be amended with the migrated + machine state after migration completes + +This paused state is typically used by users to query machine state and/or +additionally configure the machine (by hotplugging devices) in runtime before +allowing VM code to run. + +However, at the ``-S`` pause point, it's impossible to configure options +that affect initial VM creation (like: ``-smp``/``-m``/``-numa`` ...) or +cold plug devices. The experimental ``--preconfig`` command line option +allows pausing QEMU before the initial VM creation, in a "preconfig" state, +where additional queries and configuration can be performed via QMP +before moving on to the resulting configuration startup. In the +preconfig state, QEMU only allows a limited set of commands over the +QMP monitor, where the commands do not depend on an initialized +machine, including but not limited to: + +- ``qmp_capabilities`` +- ``query-qmp-schema`` +- ``query-commands`` +- ``query-status`` +- ``x-exit-preconfig``
Signature · 1 line
2.20.1
[PULL 09/33] qemu-doc: Remove the "CPU emulation" part of the "Implementation notes"
In reply to Peter MaydellThe "CPU emulation" part of the "Implementation notes" in qemu-tech.texi looks like it is documenting what features of various CPUs we do or don't emulate. However:
* it covers only six of our 21 guest architectures
* the last time anybody updated it for actual content was in 2011/2012 for Xtensa; the content for the other five architectures is even older, being from 2008 or before!
What we have is out of date, misleading and incomplete. Just delete this part of the document rather than trying to convert it to rST.
(It would be nice eventually to have documentation of the scope and limitations of our emulation; but we will want to separate out the generic "system emulation" information from the parts that are specific to linux-user anyway, as they will be in different manuals.)
Message-id: [email protected]
Message-id: [email protected]
Message-Id: <[email protected]>
--- qemu-tech.texi | 153 ------------------------------------------------- 1 file changed, 153 deletions(-)
qemu-tech.texi +0 -153
@@ -2,162 +2,9 @@ @appendix Implementation notes @menu -* CPU emulation:: * Managed start up options:: @end menu -@node CPU emulation -@section CPU emulation - -@menu -* x86:: x86 and x86-64 emulation -* ARM:: ARM emulation -* MIPS:: MIPS emulation -* PPC:: PowerPC emulation -* SPARC:: Sparc32 and Sparc64 emulation -* Xtensa:: Xtensa emulation -@end menu - -@node x86 -@subsection x86 and x86-64 emulation - -QEMU x86 target features: - -@itemize - -@item The virtual x86 CPU supports 16 bit and 32 bit addressing with segmentation. -LDT/GDT and IDT are emulated. VM86 mode is also supported to run -DOSEMU. There is some support for MMX/3DNow!, SSE, SSE2, SSE3, SSSE3, -and SSE4 as well as x86-64 SVM. - -@item Support of host page sizes bigger than 4KB in user mode emulation. - -@item QEMU can emulate itself on x86. - -@item An extensive Linux x86 CPU test program is included @file{tests/test-i386}. -It can be used to test other x86 virtual CPUs. - -@end itemize - -Current QEMU limitations: - -@itemize - -@item Limited x86-64 support. - -@item IPC syscalls are missing. - -@item The x86 segment limits and access rights are not tested at every -memory access (yet). Hopefully, very few OSes seem to rely on that for -normal use. - -@end itemize - -@node ARM -@subsection ARM emulation - -@itemize - -@item Full ARM 7 user emulation. - -@item NWFPE FPU support included in user Linux emulation. - -@item Can run most ARM Linux binaries. - -@end itemize - -@node MIPS -@subsection MIPS emulation - -@itemize - -@item The system emulation allows full MIPS32/MIPS64 Release 2 emulation, -including privileged instructions, FPU and MMU, in both little and big -endian modes. - -@item The Linux userland emulation can run many 32 bit MIPS Linux binaries. - -@end itemize - -Current QEMU limitations: - -@itemize - -@item Self-modifying code is not always handled correctly. - -@item 64 bit userland emulation is not implemented. - -@item The system emulation is not complete enough to run real firmware. - -@item The watchpoint debug facility is not implemented. - -@end itemize - -@node PPC -@subsection PowerPC emulation - -@itemize - -@item Full PowerPC 32 bit emulation, including privileged instructions, -FPU and MMU. - -@item Can run most PowerPC Linux binaries. - -@end itemize - -@node SPARC -@subsection Sparc32 and Sparc64 emulation - -@itemize - -@item Full SPARC V8 emulation, including privileged -instructions, FPU and MMU. SPARC V9 emulation includes most privileged -and VIS instructions, FPU and I/D MMU. Alignment is fully enforced. - -@item Can run most 32-bit SPARC Linux binaries, SPARC32PLUS Linux binaries and -some 64-bit SPARC Linux binaries. - -@end itemize - -Current QEMU limitations: - -@itemize - -@item IPC syscalls are missing. - -@item Floating point exception support is buggy. - -@item Atomic instructions are not correctly implemented. - -@item There are still some problems with Sparc64 emulators. - -@end itemize - -@node Xtensa -@subsection Xtensa emulation - -@itemize - -@item Core Xtensa ISA emulation, including most options: code density, -loop, extended L32R, 16- and 32-bit multiplication, 32-bit division, -MAC16, miscellaneous operations, boolean, FP coprocessor, coprocessor -context, debug, multiprocessor synchronization, -conditional store, exceptions, relocatable vectors, unaligned exception, -interrupts (including high priority and timer), hardware alignment, -region protection, region translation, MMU, windowed registers, thread -pointer, processor ID. - -@item Not implemented options: data/instruction cache (including cache -prefetch and locking), XLMI, processor interface. Also options not -covered by the core ISA (e.g. FLIX, wide branches) are not implemented. - -@item Can run most Xtensa Linux binaries. - -@item New core configuration that requires no additional instructions -may be created from overlay with minimal amount of hand-written code. - -@end itemize - @node Managed start up options @section Managed start up options
Signature · 1 line
2.20.1
[PULL 13/33] docs/system: put qemu-block-drivers body in an included file
In reply to Peter MaydellFrom: Paolo Bonzini <[email protected]>
This removes the "only" directives, and lets us use the conventional "DESCRIPTION" section in the manpage.
This temporarily drops the qemu-block-drivers documentation from the system manual, but it will be put back (in the right place in the toctree) in a later commit.
Message-id: [email protected]
Message-id: [email protected]
[PMM: Added commit message note about temporarily losing qemu-block-drivers from the system manual]
---
docs/system/index.rst | 1 -
docs/system/qemu-block-drivers.rst | 987 +-----------------
...drivers.rst => qemu-block-drivers.rst.inc} | 59 +-
3 files changed, 26 insertions(+), 1021 deletions(-)
copy docs/system/{qemu-block-drivers.rst => qemu-block-drivers.rst.inc} (96%)docs/system/index.rst +0 -1
@@ -14,5 +14,4 @@ Contents: .. toctree:: :maxdepth: 2 - qemu-block-drivers vfio-ap
docs/system/qemu-block-drivers.rst +12 -975
997 lines not on this page · raw message
docs/system/qemu-block-drivers.rst.inc renamed from docs/system/qemu-block-drivers.rst +14 -45
143 lines not on this page · raw message
Signature · 1 line
2.20.1
[PULL 22/33] doc/scripts/hxtool.py: Strip trailing ':' from DEFHEADING/ARCHHEADING
In reply to Peter MaydellIn hxtool files, section headings defined with the DEFHEADING and ARCHHEADING macros have a trailing ':'
DEFHEADING(Standard options:)
This is for the benefit of the --help output. For consistency with the rest of the rST documentation, strip any trailing ':' when we construct headings with the Sphinx hxtool extension. This makes the table of contents look neater.
This only affects generation of documentation from qemu-options.hx, which we will start doing in a later commit.
Message-id: [email protected]
--- docs/sphinx/hxtool.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-)
docs/sphinx/hxtool.py +6 -4
@@ -60,8 +60,9 @@ def parse_defheading(file, lnum, line): # empty we ignore the directive -- these are used only to add # blank lines in the plain-text content of the --help output. # - # Return the heading text - match = re.match(r'DEFHEADING\((.*)\)', line) + # Return the heading text. We strip out any trailing ':' for + # consistency with other headings in the rST documentation. + match = re.match(r'DEFHEADING\((.*?):?\)', line) if match is None: serror(file, lnum, "Invalid DEFHEADING line") return match.group(1)
@@ -72,8 +73,9 @@ def parse_archheading(file, lnum, line): # though note that the 'some string' could be the empty string. # As with DEFHEADING, empty string ARCHHEADINGs will be ignored. # - # Return the heading text - match = re.match(r'ARCHHEADING\((.*),.*\)', line) + # Return the heading text. We strip out any trailing ':' for + # consistency with other headings in the rST documentation. + match = re.match(r'ARCHHEADING\((.*?):?,.*\)', line) if match is None: serror(file, lnum, "Invalid ARCHHEADING line") return match.group(1)
Signature · 1 line
2.20.1
[PULL 21/33] hmp-commands-info.hx: Add rST documentation fragments
In reply to Peter MaydellAdd the rST versions of the documentation fragments. Once we've converted fully from Texinfo to rST we can remove the ETEXI fragments; for the moment we need both.
Note that most of the SRST fragments are 2-space indented so that the 'info foo' documentation entries appear as a sublist under the 'info' entry in the top level list.
Again, all we need to do to put the documentation in the Sphinx manual is a one-line hxtool-doc invocation.
Message-id: [email protected]
--- Makefile | 2 +- docs/system/monitor.rst | 4 +- hmp-commands-info.hx | 271 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 273 insertions(+), 4 deletions(-)
Makefile +1 -1
@@ -1071,7 +1071,7 @@ $(MANUAL_BUILDDIR)/interop/index.html: $(call manual-deps,interop) $(MANUAL_BUILDDIR)/specs/index.html: $(call manual-deps,specs) $(call build-manual,specs,html) -$(MANUAL_BUILDDIR)/system/index.html: $(call manual-deps,system) $(SRC_PATH)/hmp-commands.hx +$(MANUAL_BUILDDIR)/system/index.html: $(call manual-deps,system) $(SRC_PATH)/hmp-commands.hx $(SRC_PATH)/hmp-commands-info.hx $(call build-manual,system,html) $(MANUAL_BUILDDIR)/tools/index.html: $(call manual-deps,tools) $(SRC_PATH)/qemu-img-cmds.hx $(SRC_PATH)/docs/qemu-option-trace.rst.inc
docs/system/monitor.rst +1 -3
@@ -21,9 +21,7 @@ The following commands are available: .. hxtool-doc:: hmp-commands.hx -.. - TODO: convert and reference hmp-commands-info.hx - +.. hxtool-doc:: hmp-commands-info.hx Integer expressions ~~~~~~~~~~~~~~~~~~~
hmp-commands-info.hx +271 -0
655 lines not on this page · raw message
Signature · 1 line
2.20.1
[PULL 10/33] qemu-doc: move qemu-tech.texi into main section
In reply to Peter MaydellFrom: Paolo Bonzini <[email protected]>
The only remaining content in qemu-tech.texi is a few paragraphs about managed start up options. Move them in the main section about full system emulation.
Message-id: [email protected]
Message-id: [email protected]
--- Makefile | 2 +- qemu-tech.texi => docs/system/managed-startup.texi | 9 +-------- qemu-doc.texi | 5 ++--- 3 files changed, 4 insertions(+), 12 deletions(-) rename qemu-tech.texi => docs/system/managed-startup.texi (92%)
Makefile +1 -1
@@ -1120,7 +1120,7 @@ txt: qemu-doc.txt docs/interop/qemu-qmp-ref.txt docs/interop/qemu-ga-ref.txt qemu-doc.html qemu-doc.info qemu-doc.pdf qemu-doc.txt: \ qemu-options.texi \ - qemu-tech.texi qemu-option-trace.texi \ + qemu-option-trace.texi \ qemu-deprecated.texi qemu-monitor.texi \ qemu-monitor-info.texi \ docs/system/quickstart.texi \
docs/system/managed-startup.texi renamed from qemu-tech.texi +1 -8
@@ -1,11 +1,4 @@ -@node Implementation notes -@appendix Implementation notes - -@menu -* Managed start up options:: -@end menu - -@node Managed start up options +@node managed_startup @section Managed start up options In system mode emulation, it's possible to create a VM in a paused state using
qemu-doc.texi +2 -3
@@ -39,7 +39,6 @@ * QEMU System emulator:: * QEMU System emulator targets:: * Security:: -* Implementation notes:: * Deprecated features:: * Recently removed features:: * Supported build platforms::
@@ -144,6 +143,7 @@ accelerator is required to use more than one host CPU for emulation. * vnc_security:: VNC security * network_tls:: TLS setup for network services * gdb_usage:: GDB usage +* managed_startup:: Managed startup options @end menu @include docs/system/quickstart.texi
@@ -159,6 +159,7 @@ accelerator is required to use more than one host CPU for emulation. @include docs/system/vnc-security.texi @include docs/system/tls.texi @include docs/system/gdb.texi +@include docs/system/managed-startup.texi @node QEMU System emulator targets @chapter QEMU System emulator targets
@@ -190,8 +191,6 @@ various targets are mentioned in the following sections. @include docs/security.texi -@include qemu-tech.texi - @include qemu-deprecated.texi @include docs/system/build-platforms.texi
Signature · 1 line
2.20.1
[PULL 05/33] qemu-doc: split qemu-doc.texi in multiple files
In reply to Peter MaydellFrom: Paolo Bonzini <[email protected]>
In order to facilitate the reorganization of qemu-doc.texi content, as well as the conversion to rST/Sphinx, split it in multiple .texi files that are included from docs/system.
The "other devices" section is renamed to ivshmem and placed last.
Message-id: [email protected]
Message-id: [email protected]
--- Makefile | 16 + docs/system/build-platforms.texi | 67 ++ docs/system/gdb.texi | 71 ++ docs/system/images.texi | 88 ++ docs/system/invocation.texi | 240 +++++ docs/system/ivshmem.texi | 60 ++ docs/system/keys.texi | 53 ++ docs/system/license.texi | 9 + docs/system/linuxboot.texi | 27 + docs/system/monitor.texi | 35 + docs/system/mux-chardev.texi | 51 ++ docs/system/net.texi | 96 ++ docs/system/quickstart.texi | 13 + docs/system/tls.texi | 329 +++++++ docs/system/usb.texi | 115 +++ docs/system/vnc-security.texi | 196 ++++ qemu-doc.texi | 1471 +----------------------------- 17 files changed, 1483 insertions(+), 1454 deletions(-) create mode 100644 docs/system/build-platforms.texi create mode 100644 docs/system/gdb.texi create mode 100644 docs/system/images.texi create mode 100644 docs/system/invocation.texi create mode 100644 docs/system/ivshmem.texi create mode 100644 docs/system/keys.texi create mode 100644 docs/system/license.texi create mode 100644 docs/system/linuxboot.texi create mode 100644 docs/system/monitor.texi create mode 100644 docs/system/mux-chardev.texi create mode 100644 docs/system/net.texi create mode 100644 docs/system/quickstart.texi create mode 100644 docs/system/tls.texi create mode 100644 docs/system/usb.texi create mode 100644 docs/system/vnc-security.texi
Makefile +16 -0
@@ -1123,6 +1123,22 @@ qemu-doc.html qemu-doc.info qemu-doc.pdf qemu-doc.txt: \ qemu-tech.texi qemu-option-trace.texi \ qemu-deprecated.texi qemu-monitor.texi \ qemu-monitor-info.texi \ + docs/system/quickstart.texi \ + docs/system/invocation.texi \ + docs/system/keys.texi \ + docs/system/mux-chardev.texi \ + docs/system/monitor.texi \ + docs/system/cpu-models-x86.texi \ + docs/system/images.texi \ + docs/system/net.texi \ + docs/system/usb.texi \ + docs/system/ivshmem.texi \ + docs/system/linuxboot.texi \ + docs/system/vnc-security.texi \ + docs/system/tls.texi \ + docs/system/gdb.texi \ + docs/system/build-platforms.texi \ + docs/system/license.texi \ docs/system/cpu-models-x86.texi docs/system/cpu-models-mips.texi \ docs/security.texi
docs/system/build-platforms.texi new file +67 -0
67 lines not on this page · raw message
docs/system/gdb.texi new file +71 -0
71 lines not on this page · raw message
docs/system/images.texi new file +88 -0
88 lines not on this page · raw message
docs/system/invocation.texi new file +240 -0
240 lines not on this page · raw message
docs/system/ivshmem.texi new file +60 -0
60 lines not on this page · raw message
docs/system/keys.texi new file +53 -0
53 lines not on this page · raw message
docs/system/license.texi new file +9 -0
@@ -0,0 +1,9 @@ +@node License +@appendix License + +QEMU is a trademark of Fabrice Bellard. + +QEMU is released under the +@url{https://www.gnu.org/licenses/gpl-2.0.txt,GNU General Public License}, +version 2. Parts of QEMU have specific licenses, see file +@url{https://git.qemu.org/?p=qemu.git;a=blob_plain;f=LICENSE,LICENSE}.
docs/system/linuxboot.texi new file +27 -0
@@ -0,0 +1,27 @@ +@node direct_linux_boot +@section Direct Linux Boot + +This section explains how to launch a Linux kernel inside QEMU without +having to make a full bootable image. It is very useful for fast Linux +kernel testing. + +The syntax is: +@example +@value{qemu_system} -kernel bzImage -hda rootdisk.img -append "root=/dev/hda" +@end example + +Use @option{-kernel} to provide the Linux kernel image and +@option{-append} to give the kernel command line arguments. The +@option{-initrd} option can be used to provide an INITRD image. + +If you do not need graphical output, you can disable it and redirect +the virtual serial port and the QEMU monitor to the console with the +@option{-nographic} option. The typical command line is: +@example +@value{qemu_system} -kernel bzImage -hda rootdisk.img \ + -append "root=/dev/hda console=ttyS0" -nographic +@end example + +Use @key{Ctrl-a c} to switch between the serial console and the +monitor (@pxref{pcsys_keys}). +
docs/system/monitor.texi new file +35 -0
@@ -0,0 +1,35 @@ +@node pcsys_monitor +@section QEMU Monitor +@cindex QEMU monitor + +The QEMU monitor is used to give complex commands to the QEMU +emulator. You can use it to: + +@itemize @minus + +@item +Remove or insert removable media images +(such as CD-ROM or floppies). + +@item +Freeze/unfreeze the Virtual Machine (VM) and save or restore its state +from a disk file. + +@item Inspect the VM state without an external debugger. + +@end itemize + +@subsection Commands + +The following commands are available: + +@include qemu-monitor.texi + +@include qemu-monitor-info.texi + +@subsection Integer expressions + +The monitor understands integers expressions for every integer +argument. You can use register names to get the value of specifics +CPU registers by prefixing them with @emph{$}. +
docs/system/mux-chardev.texi new file +51 -0
51 lines not on this page · raw message
docs/system/net.texi new file +96 -0
96 lines not on this page · raw message
docs/system/quickstart.texi new file +13 -0
@@ -0,0 +1,13 @@ +@node pcsys_quickstart +@section Quick Start +@cindex quick start + +Download and uncompress a hard disk image with Linux installed (e.g. +@file{linux.img}) and type: + +@example +@value{qemu_system} linux.img +@end example + +Linux should boot and give you a prompt. +
docs/system/tls.texi new file +329 -0
329 lines not on this page · raw message
docs/system/usb.texi new file +115 -0
115 lines not on this page · raw message
docs/system/vnc-security.texi new file +196 -0
196 lines not on this page · raw message
qemu-doc.texi +17 -1454
1,493 lines not on this page · raw message
Signature · 1 line
2.20.1
[PULL 28/33] docs: Split out sections for the manpage into .rst.inc files
In reply to Peter MaydellSphinx doesn't have very good facilities for marking chunks of documentation as "put this in the manpage only". So instead we move the parts we want to put into both the HTML manuals and the manpage into their own .rst.inc files, which we can include from both the main manual rst files and a new toplevel rst file that will be the skeleton of the qemu.1 manpage.
In this commit, just split out the parts of the documentation that go in the manpage.
Message-id: [email protected]
---
...vocation.rst => device-url-syntax.rst.inc} | 16 --
docs/system/invocation.rst | 228 +-----------------
docs/system/keys.rst | 36 +--
docs/system/{keys.rst => keys.rst.inc} | 5 -
docs/system/mux-chardev.rst | 28 +--
.../{mux-chardev.rst => mux-chardev.rst.inc} | 5 -
...rget-i386.rst => target-i386-desc.rst.inc} | 22 --
docs/system/target-i386.rst | 63 +----
8 files changed, 4 insertions(+), 399 deletions(-)
copy docs/system/{invocation.rst => device-url-syntax.rst.inc} (96%)
copy docs/system/{keys.rst => keys.rst.inc} (90%)
copy docs/system/{mux-chardev.rst => mux-chardev.rst.inc} (87%)
copy docs/system/{target-i386.rst => target-i386-desc.rst.inc} (76%)docs/system/device-url-syntax.rst.inc renamed from docs/system/invocation.rst +0 -16
@@ -1,19 +1,3 @@ -.. _sec_005finvocation: - -Invocation ----------- - -.. parsed-literal:: - - |qemu_system| [options] [disk_image] - -disk_image is a raw hard disk image for IDE hard disk 0. Some targets do -not need a disk image. - -.. hxtool-doc:: qemu-options.hx - -Device URL Syntax -~~~~~~~~~~~~~~~~~ In addition to using normal file images for the emulated storage devices, QEMU can also use networked resources such as iSCSI devices.
docs/system/invocation.rst +1 -227
231 lines not on this page · raw message
docs/system/keys.rst +1 -35
@@ -3,38 +3,4 @@ Keys in the graphical frontends ------------------------------- -During the graphical emulation, you can use special key combinations to -change modes. The default key mappings are shown below, but if you use -``-alt-grab`` then the modifier is Ctrl-Alt-Shift (instead of Ctrl-Alt) -and if you use ``-ctrl-grab`` then the modifier is the right Ctrl key -(instead of Ctrl-Alt): - -Ctrl-Alt-f - Toggle full screen - -Ctrl-Alt-+ - Enlarge the screen - -Ctrl-Alt\-- - Shrink the screen - -Ctrl-Alt-u - Restore the screen's un-scaled dimensions - -Ctrl-Alt-n - Switch to virtual console 'n'. Standard console mappings are: - - *1* - Target system display - - *2* - Monitor - - *3* - Serial port - -Ctrl-Alt - Toggle mouse and keyboard grab. - -In the virtual consoles, you can use Ctrl-Up, Ctrl-Down, Ctrl-PageUp and -Ctrl-PageDown to move in the back log. +.. include:: keys.rst.inc
docs/system/keys.rst.inc renamed from docs/system/keys.rst +0 -5
@@ -1,8 +1,3 @@ -.. _pcsys_005fkeys: - -Keys in the graphical frontends -------------------------------- - During the graphical emulation, you can use special key combinations to change modes. The default key mappings are shown below, but if you use ``-alt-grab`` then the modifier is Ctrl-Alt-Shift (instead of Ctrl-Alt)
docs/system/mux-chardev.rst +1 -27
@@ -3,30 +3,4 @@ Keys in the character backend multiplexer ----------------------------------------- -During emulation, if you are using a character backend multiplexer -(which is the default if you are using ``-nographic``) then several -commands are available via an escape sequence. These key sequences all -start with an escape character, which is Ctrl-a by default, but can be -changed with ``-echr``. The list below assumes you're using the default. - -Ctrl-a h - Print this help - -Ctrl-a x - Exit emulator - -Ctrl-a s - Save disk data back to file (if -snapshot) - -Ctrl-a t - Toggle console timestamps - -Ctrl-a b - Send break (magic sysrq in Linux) - -Ctrl-a c - Rotate between the frontends connected to the multiplexer (usually - this switches between the monitor and the console) - -Ctrl-a Ctrl-a - Send the escape character to the frontend +.. include:: mux-chardev.rst.inc
docs/system/mux-chardev.rst.inc renamed from docs/system/mux-chardev.rst +0 -5
@@ -1,8 +1,3 @@ -.. _mux_005fkeys: - -Keys in the character backend multiplexer ------------------------------------------ - During emulation, if you are using a character backend multiplexer (which is the default if you are using ``-nographic``) then several commands are available via an escape sequence. These key sequences all
docs/system/target-i386-desc.rst.inc renamed from docs/system/target-i386.rst +0 -22
@@ -1,13 +1,3 @@ -.. _QEMU-PC-System-emulator: - -x86 (PC) System emulator ------------------------- - -.. _pcsys_005fdevices: - -Peripherals -~~~~~~~~~~~ - The QEMU PC System emulator simulates the following peripherals: - i440FX host PCI bridge and PIIX3 PCI to ISA bridge
@@ -70,15 +60,3 @@ Alternatively: Or some other unclaimed IRQ. CS4231A is the chip used in Windows Sound System and GUSMAX products - -.. include:: cpu-models-x86.rst.inc - -.. _pcsys_005freq: - -OS requirements -~~~~~~~~~~~~~~~ - -On x86_64 hosts, the default set of CPU features enabled by the KVM -accelerator require the host to be running Linux v4.5 or newer. Red Hat -Enterprise Linux 7 is also supported, since the required -functionality was backported.
docs/system/target-i386.rst +1 -62
69 lines not on this page · raw message
Signature · 1 line
2.20.1
[PULL 18/33] docs/system: convert the documentation of deprecated features to rST.
In reply to Peter MaydellWe put the whole of this document into the system manual, though technically a few parts of it apply to qemu-img or qemu-nbd which are otherwise documented in tools/.
We only make formatting fixes, except for one use of 'appendix' which we change to 'section' because this isn't an appendix in the Sphinx manual.
Message-id: [email protected]
Message-id: [email protected]
--- docs/system/deprecated.rst | 446 +++++++++++++++++++++++++++++++++++++ docs/system/index.rst | 1 + 2 files changed, 447 insertions(+) create mode 100644 docs/system/deprecated.rst
docs/system/deprecated.rst new file +446 -0
@@ -0,0 +1,446 @@ +Deprecated features +=================== + +In general features are intended to be supported indefinitely once +introduced into QEMU. In the event that a feature needs to be removed, +it will be listed in this section. The feature will remain functional +for 2 releases prior to actual removal. Deprecated features may also +generate warnings on the console when QEMU starts up, or if activated +via a monitor command, however, this is not a mandatory requirement. + +Prior to the 2.10.0 release there was no official policy on how +long features would be deprecated prior to their removal, nor +any documented list of which features were deprecated. Thus +any features deprecated prior to 2.10.0 will be treated as if +they were first deprecated in the 2.10.0 release. + +What follows is a list of all features currently marked as +deprecated. + +System emulator command line arguments +-------------------------------------- + +``-machine enforce-config-section=on|off`` (since 3.1) +'''''''''''''''''''''''''''''''''''''''''''''''''''''' + +The ``enforce-config-section`` parameter is replaced by the +``-global migration.send-configuration={on|off}`` option. + +``-no-kvm`` (since 1.3.0) +''''''''''''''''''''''''' + +The ``-no-kvm`` argument is now a synonym for setting ``-accel tcg``. + +``-usbdevice`` (since 2.10.0) +''''''''''''''''''''''''''''' + +The ``-usbdevice DEV`` argument is now a synonym for setting +the ``-device usb-DEV`` argument instead. The deprecated syntax +would automatically enable USB support on the machine type. +If using the new syntax, USB support must be explicitly +enabled via the ``-machine usb=on`` argument. + +``-drive file=json:{...{'driver':'file'}}`` (since 3.0) +''''''''''''''''''''''''''''''''''''''''''''''''''''''' + +The 'file' driver for drives is no longer appropriate for character or host +devices and will only accept regular files (S_IFREG). The correct driver +for these file types is 'host_cdrom' or 'host_device' as appropriate. + +``-net ...,name=``\ *name* (since 3.1) +'''''''''''''''''''''''''''''''''''''' + +The ``name`` parameter of the ``-net`` option is a synonym +for the ``id`` parameter, which should now be used instead. + +``-smp`` (invalid topologies) (since 3.1) +''''''''''''''''''''''''''''''''''''''''' + +CPU topology properties should describe whole machine topology including +possible CPUs. + +However, historically it was possible to start QEMU with an incorrect topology +where *n* <= *sockets* * *cores* * *threads* < *maxcpus*, +which could lead to an incorrect topology enumeration by the guest. +Support for invalid topologies will be removed, the user must ensure +topologies described with -smp include all possible cpus, i.e. +*sockets* * *cores* * *threads* = *maxcpus*. + +``-vnc acl`` (since 4.0.0) +'''''''''''''''''''''''''' + +The ``acl`` option to the ``-vnc`` argument has been replaced +by the ``tls-authz`` and ``sasl-authz`` options. + +``QEMU_AUDIO_`` environment variables and ``-audio-help`` (since 4.0) +''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' + +The ``-audiodev`` argument is now the preferred way to specify audio +backend settings instead of environment variables. To ease migration to +the new format, the ``-audiodev-help`` option can be used to convert +the current values of the environment variables to ``-audiodev`` options. + +Creating sound card devices and vnc without ``audiodev=`` property (since 4.2) +'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' + +When not using the deprecated legacy audio config, each sound card +should specify an ``audiodev=`` property. Additionally, when using +vnc, you should specify an ``audiodev=`` propery if you plan to +transmit audio through the VNC protocol. + +``-mon ...,control=readline,pretty=on|off`` (since 4.1) +''''''''''''''''''''''''''''''''''''''''''''''''''''''' + +The ``pretty=on|off`` switch has no effect for HMP monitors, but is +silently ignored. Using the switch with HMP monitors will become an +error in the future. + +``-realtime`` (since 4.1) +''''''''''''''''''''''''' + +The ``-realtime mlock=on|off`` argument has been replaced by the +``-overcommit mem-lock=on|off`` argument. + +``-numa node,mem=``\ *size* (since 4.1) +''''''''''''''''''''''''''''''''''''''' + +The parameter ``mem`` of ``-numa node`` is used to assign a part of +guest RAM to a NUMA node. But when using it, it's impossible to manage specified +RAM chunk on the host side (like bind it to a host node, setting bind policy, ...), +so guest end-ups with the fake NUMA configuration with suboptiomal performance. +However since 2014 there is an alternative way to assign RAM to a NUMA node +using parameter ``memdev``, which does the same as ``mem`` and adds +means to actualy manage node RAM on the host side. Use parameter ``memdev`` +with *memory-backend-ram* backend as an replacement for parameter ``mem`` +to achieve the same fake NUMA effect or a properly configured +*memory-backend-file* backend to actually benefit from NUMA configuration. +In future new machine versions will not accept the option but it will still +work with old machine types. User can check QAPI schema to see if the legacy +option is supported by looking at MachineInfo::numa-mem-supported property. + +``-numa`` node (without memory specified) (since 4.1) +''''''''''''''''''''''''''''''''''''''''''''''''''''' + +Splitting RAM by default between NUMA nodes has the same issues as ``mem`` +parameter described above with the difference that the role of the user plays +QEMU using implicit generic or board specific splitting rule. +Use ``memdev`` with *memory-backend-ram* backend or ``mem`` (if +it's supported by used machine type) to define mapping explictly instead. + +``-mem-path`` fallback to RAM (since 4.1) +''''''''''''''''''''''''''''''''''''''''' + +Currently if guest RAM allocation from file pointed by ``mem-path`` +fails, QEMU falls back to allocating from RAM, which might result +in unpredictable behavior since the backing file specified by the user +is ignored. In the future, users will be responsible for making sure +the backing storage specified with ``-mem-path`` can actually provide +the guest RAM configured with ``-m`` and QEMU will fail to start up if +RAM allocation is unsuccessful. + +RISC-V ``-bios`` (since 4.1) +'''''''''''''''''''''''''''' + +QEMU 4.1 introduced support for the -bios option in QEMU for RISC-V for the +RISC-V virt machine and sifive_u machine. + +QEMU 4.1 has no changes to the default behaviour to avoid breakages. This +default will change in a future QEMU release, so please prepare now. All users +of the virt or sifive_u machine must change their command line usage. + +QEMU 4.1 has three options, please migrate to one of these three: + 1. ``-bios none`` - This is the current default behavior if no -bios option + is included. QEMU will not automatically load any firmware. It is up + to the user to load all the images they need. + 2. ``-bios default`` - In a future QEMU release this will become the default + behaviour if no -bios option is specified. This option will load the + default OpenSBI firmware automatically. The firmware is included with + the QEMU release and no user interaction is required. All a user needs + to do is specify the kernel they want to boot with the -kernel option + 3. ``-bios <file>`` - Tells QEMU to load the specified file as the firmwrae. + +``-tb-size`` option (since 5.0) +''''''''''''''''''''''''''''''' + +QEMU 5.0 introduced an alternative syntax to specify the size of the translation +block cache, ``-accel tcg,tb-size=``. The new syntax deprecates the +previously available ``-tb-size`` option. + +``-show-cursor`` option (since 5.0) +''''''''''''''''''''''''''''''''''' + +Use ``-display sdl,show-cursor=on`` or + ``-display gtk,show-cursor=on`` instead. + +QEMU Machine Protocol (QMP) commands +------------------------------------ + +``change`` (since 2.5.0) +'''''''''''''''''''''''' + +Use ``blockdev-change-medium`` or ``change-vnc-password`` instead. + +``migrate_set_downtime`` and ``migrate_set_speed`` (since 2.8.0) +'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' + +Use ``migrate-set-parameters`` instead. + +``migrate-set-cache-size`` and ``query-migrate-cache-size`` (since 2.11.0) +'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' + +Use ``migrate-set-parameters`` and ``query-migrate-parameters`` instead. + +``query-block`` result field ``dirty-bitmaps[i].status`` (since 4.0) +'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' + +The ``status`` field of the ``BlockDirtyInfo`` structure, returned by +the query-block command is deprecated. Two new boolean fields, +``recording`` and ``busy`` effectively replace it. + +``query-block`` result field ``dirty-bitmaps`` (Since 4.2) +'''''''''''''''''''''''''''''''''''''''''''''''''''''''''' + +The ``dirty-bitmaps`` field of the ``BlockInfo`` structure, returned by +the query-block command is itself now deprecated. The ``dirty-bitmaps`` +field of the ``BlockDeviceInfo`` struct should be used instead, which is the +type of the ``inserted`` field in query-block replies, as well as the +type of array items in query-named-block-nodes. + +Since the ``dirty-bitmaps`` field is optionally present in both the old and +new locations, clients must use introspection to learn where to anticipate +the field if/when it does appear in command output. + +``query-cpus`` (since 2.12.0) +''''''''''''''''''''''''''''' + +The ``query-cpus`` command is replaced by the ``query-cpus-fast`` command. + +``query-cpus-fast`` ``arch`` output member (since 3.0.0) +'''''''''''''''''''''''''''''''''''''''''''''''''''''''' + +The ``arch`` output member of the ``query-cpus-fast`` command is +replaced by the ``target`` output member. + +``cpu-add`` (since 4.0) +''''''''''''''''''''''' + +Use ``device_add`` for hotplugging vCPUs instead of ``cpu-add``. See +documentation of ``query-hotpluggable-cpus`` for additional +details. + +``query-events`` (since 4.0) +'''''''''''''''''''''''''''' + +The ``query-events`` command has been superseded by the more powerful +and accurate ``query-qmp-schema`` command. + +chardev client socket with ``wait`` option (since 4.0) +'''''''''''''''''''''''''''''''''''''''''''''''''''''' + +Character devices creating sockets in client mode should not specify +the 'wait' field, which is only applicable to sockets in server mode + +Human Monitor Protocol (HMP) commands +------------------------------------- + +The ``hub_id`` parameter of ``hostfwd_add`` / ``hostfwd_remove`` (since 3.1) +'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' + +The ``[hub_id name]`` parameter tuple of the 'hostfwd_add' and +'hostfwd_remove' HMP commands has been replaced by ``netdev_id``. + +``cpu-add`` (since 4.0) +''''''''''''''''''''''' + +Use ``device_add`` for hotplugging vCPUs instead of ``cpu-add``. See +documentation of ``query-hotpluggable-cpus`` for additional details. + +``acl_show``, ``acl_reset``, ``acl_policy``, ``acl_add``, ``acl_remove`` (since 4.0.0) +'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' + +The ``acl_show``, ``acl_reset``, ``acl_policy``, ``acl_add``, and +``acl_remove`` commands are deprecated with no replacement. Authorization +for VNC should be performed using the pluggable QAuthZ objects. + +Guest Emulator ISAs +------------------- + +RISC-V ISA privledge specification version 1.09.1 (since 4.1) +''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' + +The RISC-V ISA privledge specification version 1.09.1 has been deprecated. +QEMU supports both the newer version 1.10.0 and the ratified version 1.11.0, these +should be used instead of the 1.09.1 version. + +System emulator CPUS +-------------------- + +RISC-V ISA CPUs (since 4.1) +''''''''''''''''''''''''''' + +The RISC-V cpus with the ISA version in the CPU name have been depcreated. The +four CPUs are: ``rv32gcsu-v1.9.1``, ``rv32gcsu-v1.10.0``, ``rv64gcsu-v1.9.1`` and +``rv64gcsu-v1.10.0``. Instead the version can be specified via the CPU ``priv_spec`` +option when using the ``rv32`` or ``rv64`` CPUs. + +RISC-V ISA CPUs (since 4.1) +''''''''''''''''''''''''''' + +The RISC-V no MMU cpus have been depcreated. The two CPUs: ``rv32imacu-nommu`` and +``rv64imacu-nommu`` should no longer be used. Instead the MMU status can be specified +via the CPU ``mmu`` option when using the ``rv32`` or ``rv64`` CPUs. + +System emulator devices +----------------------- + +``ide-drive`` (since 4.2) +''''''''''''''''''''''''' + +The 'ide-drive' device is deprecated. Users should use 'ide-hd' or +'ide-cd' as appropriate to get an IDE hard disk or CD-ROM as needed. + +``scsi-disk`` (since 4.2) +''''''''''''''''''''''''' + +The 'scsi-disk' device is deprecated. Users should use 'scsi-hd' or +'scsi-cd' as appropriate to get a SCSI hard disk or CD-ROM as needed. + +System emulator machines +------------------------ + +mips ``r4k`` platform (since 5.0) +''''''''''''''''''''''''''''''''' + +This machine type is very old and unmaintained. Users should use the ``malta`` +machine type instead. + +``pc-1.0``, ``pc-1.1``, ``pc-1.2`` and ``pc-1.3`` (since 5.0) +''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' + +These machine types are very old and likely can not be used for live migration +from old QEMU versions anymore. A newer machine type should be used instead. + +``spike_v1.9.1`` and ``spike_v1.10`` (since 4.1) +'''''''''''''''''''''''''''''''''''''''''''''''' + +The version specific Spike machines have been deprecated in favour of the +generic ``spike`` machine. If you need to specify an older version of the RISC-V +spec you can use the ``-cpu rv64gcsu,priv_spec=v1.9.1`` command line argument. + +Device options +-------------- + +Emulated device options +''''''''''''''''''''''' + +``-device virtio-blk,scsi=on|off`` (since 5.0.0) +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +The virtio-blk SCSI passthrough feature is a legacy VIRTIO feature. VIRTIO 1.0 +and later do not support it because the virtio-scsi device was introduced for +full SCSI support. Use virtio-scsi instead when SCSI passthrough is required. + +Note this also applies to ``-device virtio-blk-pci,scsi=on|off``, which is an +alias. + +Block device options +'''''''''''''''''''' + +``"backing": ""`` (since 2.12.0) +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +In order to prevent QEMU from automatically opening an image's backing +chain, use ``"backing": null`` instead. + +``rbd`` keyvalue pair encoded filenames: ``""`` (since 3.1.0) +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +Options for ``rbd`` should be specified according to its runtime options, +like other block drivers. Legacy parsing of keyvalue pair encoded +filenames is useful to open images with the old format for backing files; +These image files should be updated to use the current format. + +Example of legacy encoding:: + + json:{"file.driver":"rbd", "file.filename":"rbd:rbd/name"} + +The above, converted to the current supported format:: + + json:{"file.driver":"rbd", "file.pool":"rbd", "file.image":"name"} + +Related binaries +---------------- + +``qemu-img convert -n -o`` (since 4.2.0) +'''''''''''''''''''''''''''''''''''''''' + +All options specified in ``-o`` are image creation options, so +they have no effect when used with ``-n`` to skip image creation. +Silently ignored options can be confusing, so this combination of +options will be made an error in future versions. + +Backwards compatibility +----------------------- + +Runnability guarantee of CPU models (since 4.1.0) +''''''''''''''''''''''''''''''''''''''''''''''''' + +Previous versions of QEMU never changed existing CPU models in +ways that introduced additional host software or hardware +requirements to the VM. This allowed management software to +safely change the machine type of an existing VM without +introducing new requirements ("runnability guarantee"). This +prevented CPU models from being updated to include CPU +vulnerability mitigations, leaving guests vulnerable in the +default configuration. + +The CPU model runnability guarantee won't apply anymore to +existing CPU models. Management software that needs runnability +guarantees must resolve the CPU model aliases using te +``alias-of`` field returned by the ``query-cpu-definitions`` QMP +command. + +While those guarantees are kept, the return value of +``query-cpu-definitions`` will have existing CPU model aliases +point to a version that doesn't break runnability guarantees +(specifically, version 1 of those CPU models). In future QEMU +versions, aliases will point to newer CPU model versions +depending on the machine type, so management software must +resolve CPU model aliases before starting a virtual machine. + + +Recently removed features +========================= + +What follows is a record of recently removed, formerly deprecated +features that serves as a record for users who have encountered +trouble after a recent upgrade. + +QEMU Machine Protocol (QMP) commands +------------------------------------ + +``block-dirty-bitmap-add`` "autoload" parameter (since 4.2.0) +''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' + +The "autoload" parameter has been ignored since 2.12.0. All bitmaps +are automatically loaded from qcow2 images. + +Related binaries +---------------- + +``qemu-nbd --partition`` (removed in 5.0.0) +''''''''''''''''''''''''''''''''''''''''''' + +The ``qemu-nbd --partition $digit`` code (also spelled ``-P``) +could only handle MBR partitions, and never correctly handled logical +partitions beyond partition 5. Exporting a partition can still be +done by utilizing the ``--image-opts`` option with a raw blockdev +using the ``offset`` and ``size`` parameters layered on top of +any other existing blockdev. For example, if partition 1 is 100MiB +long starting at 1MiB, the old command:: + + qemu-nbd -t -P 1 -f qcow2 file.qcow2 + +can be rewritten as:: + + qemu-nbd -t --image-opts driver=raw,offset=1M,size=100M,file.driver=qcow2,file.file.driver=file,file.file.filename=file.qcow2
docs/system/index.rst +1 -0
@@ -16,3 +16,4 @@ Contents: managed-startup security vfio-ap + deprecated
Signature · 1 line
2.20.1
[PULL 08/33] qemu-doc: split target sections to separate files
In reply to Peter MaydellFrom: Paolo Bonzini <[email protected]>
Message-id: [email protected]
Message-id: [email protected]
--- docs/system/target-arm.texi | 264 ++++++++++ docs/system/target-i386.texi | 92 ++++ docs/system/target-m68k.texi | 46 ++ docs/system/target-mips.texi | 152 ++++++ docs/system/target-ppc.texi | 78 +++ docs/system/target-sparc.texi | 96 ++++ docs/system/target-sparc64.texi | 61 +++ docs/system/target-xtensa.texi | 56 ++ qemu-doc.texi | 873 +------------------------------- 9 files changed, 853 insertions(+), 865 deletions(-) create mode 100644 docs/system/target-arm.texi create mode 100644 docs/system/target-i386.texi create mode 100644 docs/system/target-m68k.texi create mode 100644 docs/system/target-mips.texi create mode 100644 docs/system/target-ppc.texi create mode 100644 docs/system/target-sparc.texi create mode 100644 docs/system/target-sparc64.texi create mode 100644 docs/system/target-xtensa.texi
docs/system/target-arm.texi new file +264 -0
@@ -0,0 +1,264 @@ +@node ARM System emulator +@section ARM System emulator +@cindex system emulation (ARM) + +Use the executable @file{qemu-system-arm} to simulate a ARM +machine. The ARM Integrator/CP board is emulated with the following +devices: + +@itemize @minus +@item +ARM926E, ARM1026E, ARM946E, ARM1136 or Cortex-A8 CPU +@item +Two PL011 UARTs +@item +SMC 91c111 Ethernet adapter +@item +PL110 LCD controller +@item +PL050 KMI with PS/2 keyboard and mouse. +@item +PL181 MultiMedia Card Interface with SD card. +@end itemize + +The ARM Versatile baseboard is emulated with the following devices: + +@itemize @minus +@item +ARM926E, ARM1136 or Cortex-A8 CPU +@item +PL190 Vectored Interrupt Controller +@item +Four PL011 UARTs +@item +SMC 91c111 Ethernet adapter +@item +PL110 LCD controller +@item +PL050 KMI with PS/2 keyboard and mouse. +@item +PCI host bridge. Note the emulated PCI bridge only provides access to +PCI memory space. It does not provide access to PCI IO space. +This means some devices (eg. ne2k_pci NIC) are not usable, and others +(eg. rtl8139 NIC) are only usable when the guest drivers use the memory +mapped control registers. +@item +PCI OHCI USB controller. +@item +LSI53C895A PCI SCSI Host Bus Adapter with hard disk and CD-ROM devices. +@item +PL181 MultiMedia Card Interface with SD card. +@end itemize + +Several variants of the ARM RealView baseboard are emulated, +including the EB, PB-A8 and PBX-A9. Due to interactions with the +bootloader, only certain Linux kernel configurations work out +of the box on these boards. + +Kernels for the PB-A8 board should have CONFIG_REALVIEW_HIGH_PHYS_OFFSET +enabled in the kernel, and expect 512M RAM. Kernels for The PBX-A9 board +should have CONFIG_SPARSEMEM enabled, CONFIG_REALVIEW_HIGH_PHYS_OFFSET +disabled and expect 1024M RAM. + +The following devices are emulated: + +@itemize @minus +@item +ARM926E, ARM1136, ARM11MPCore, Cortex-A8 or Cortex-A9 MPCore CPU +@item +ARM AMBA Generic/Distributed Interrupt Controller +@item +Four PL011 UARTs +@item +SMC 91c111 or SMSC LAN9118 Ethernet adapter +@item +PL110 LCD controller +@item +PL050 KMI with PS/2 keyboard and mouse +@item +PCI host bridge +@item +PCI OHCI USB controller +@item +LSI53C895A PCI SCSI Host Bus Adapter with hard disk and CD-ROM devices +@item +PL181 MultiMedia Card Interface with SD card. +@end itemize + +The XScale-based clamshell PDA models ("Spitz", "Akita", "Borzoi" +and "Terrier") emulation includes the following peripherals: + +@itemize @minus +@item +Intel PXA270 System-on-chip (ARM V5TE core) +@item +NAND Flash memory +@item +IBM/Hitachi DSCM microdrive in a PXA PCMCIA slot - not in "Akita" +@item +On-chip OHCI USB controller +@item +On-chip LCD controller +@item +On-chip Real Time Clock +@item +TI ADS7846 touchscreen controller on SSP bus +@item +Maxim MAX1111 analog-digital converter on I@math{^2}C bus +@item +GPIO-connected keyboard controller and LEDs +@item +Secure Digital card connected to PXA MMC/SD host +@item +Three on-chip UARTs +@item +WM8750 audio CODEC on I@math{^2}C and I@math{^2}S busses +@end itemize + +The Palm Tungsten|E PDA (codename "Cheetah") emulation includes the +following elements: + +@itemize @minus +@item +Texas Instruments OMAP310 System-on-chip (ARM 925T core) +@item +ROM and RAM memories (ROM firmware image can be loaded with -option-rom) +@item +On-chip LCD controller +@item +On-chip Real Time Clock +@item +TI TSC2102i touchscreen controller / analog-digital converter / Audio +CODEC, connected through MicroWire and I@math{^2}S busses +@item +GPIO-connected matrix keypad +@item +Secure Digital card connected to OMAP MMC/SD host +@item +Three on-chip UARTs +@end itemize + +Nokia N800 and N810 internet tablets (known also as RX-34 and RX-44 / 48) +emulation supports the following elements: + +@itemize @minus +@item +Texas Instruments OMAP2420 System-on-chip (ARM 1136 core) +@item +RAM and non-volatile OneNAND Flash memories +@item +Display connected to EPSON remote framebuffer chip and OMAP on-chip +display controller and a LS041y3 MIPI DBI-C controller +@item +TI TSC2301 (in N800) and TI TSC2005 (in N810) touchscreen controllers +driven through SPI bus +@item +National Semiconductor LM8323-controlled qwerty keyboard driven +through I@math{^2}C bus +@item +Secure Digital card connected to OMAP MMC/SD host +@item +Three OMAP on-chip UARTs and on-chip STI debugging console +@item +Mentor Graphics "Inventra" dual-role USB controller embedded in a TI +TUSB6010 chip - only USB host mode is supported +@item +TI TMP105 temperature sensor driven through I@math{^2}C bus +@item +TI TWL92230C power management companion with an RTC on I@math{^2}C bus +@item +Nokia RETU and TAHVO multi-purpose chips with an RTC, connected +through CBUS +@end itemize + +The Luminary Micro Stellaris LM3S811EVB emulation includes the following +devices: + +@itemize @minus +@item +Cortex-M3 CPU core. +@item +64k Flash and 8k SRAM. +@item +Timers, UARTs, ADC and I@math{^2}C interface. +@item +OSRAM Pictiva 96x16 OLED with SSD0303 controller on I@math{^2}C bus. +@end itemize + +The Luminary Micro Stellaris LM3S6965EVB emulation includes the following +devices: + +@itemize @minus +@item +Cortex-M3 CPU core. +@item +256k Flash and 64k SRAM. +@item +Timers, UARTs, ADC, I@math{^2}C and SSI interfaces. +@item +OSRAM Pictiva 128x64 OLED with SSD0323 controller connected via SSI. +@end itemize + +The Freecom MusicPal internet radio emulation includes the following +elements: + +@itemize @minus +@item +Marvell MV88W8618 ARM core. +@item +32 MB RAM, 256 KB SRAM, 8 MB flash. +@item +Up to 2 16550 UARTs +@item +MV88W8xx8 Ethernet controller +@item +MV88W8618 audio controller, WM8750 CODEC and mixer +@item +128×64 display with brightness control +@item +2 buttons, 2 navigation wheels with button function +@end itemize + +The Siemens SX1 models v1 and v2 (default) basic emulation. +The emulation includes the following elements: + +@itemize @minus +@item +Texas Instruments OMAP310 System-on-chip (ARM 925T core) +@item +ROM and RAM memories (ROM firmware image can be loaded with -pflash) +V1 +1 Flash of 16MB and 1 Flash of 8MB +V2 +1 Flash of 32MB +@item +On-chip LCD controller +@item +On-chip Real Time Clock +@item +Secure Digital card connected to OMAP MMC/SD host +@item +Three on-chip UARTs +@end itemize + +A Linux 2.6 test image is available on the QEMU web site. More +information is available in the QEMU mailing-list archive. + +@c man begin OPTIONS + +The following options are specific to the ARM emulation: + +@table @option + +@item -semihosting +Enable semihosting syscall emulation. + +On ARM this implements the "Angel" interface. + +Note that this allows guest direct access to the host filesystem, +so should only be used with trusted guest OS. + +@end table + +@c man end +
docs/system/target-i386.texi new file +92 -0
92 lines not on this page · raw message
docs/system/target-m68k.texi new file +46 -0
46 lines not on this page · raw message
docs/system/target-mips.texi new file +152 -0
152 lines not on this page · raw message
docs/system/target-ppc.texi new file +78 -0
78 lines not on this page · raw message
docs/system/target-sparc.texi new file +96 -0
96 lines not on this page · raw message
docs/system/target-sparc64.texi new file +61 -0
61 lines not on this page · raw message
docs/system/target-xtensa.texi new file +56 -0
56 lines not on this page · raw message
qemu-doc.texi +8 -865
882 lines not on this page · raw message
Signature · 1 line
2.20.1
[PULL 27/33] qemu-options.hx: Fix up the autogenerated rST
In reply to Peter MaydellThis commit contains hand-written fixes for some issues with the autogenerated rST fragments in qemu-options.hx:
* Sphinx complains about the UTF-8 art table in the documentation of the -drive option. Replace it with a proper rST format table.
* rST does not like definition list entries with no actual definition, but it is possible to work around this by putting a single escaped literal space as the definition line.
* The "-g widthxheight" option documentation suffers particularly badly from losing the distinction between italics and fixed-width as a result of the auto conversion, so put it back in again.
* The script missed some places that use the |qemu_system| etc macros and need to be marked up as parsed-literal blocks.
* The script autogenerated an expanded out version of the contents of qemu-option-trace.texi; replace it with an qemu-option-trace.rst.inc include.
This is sufficient that we can enable inclusion of the option documentation from invocation.rst.
Message-id: [email protected]
--- Makefile | 2 +- docs/system/invocation.rst | 2 + qemu-options.hx | 143 +++++++++++++++++++++---------------- 3 files changed, 84 insertions(+), 63 deletions(-)
Makefile +1 -1
@@ -1071,7 +1071,7 @@ $(MANUAL_BUILDDIR)/interop/index.html: $(call manual-deps,interop) $(MANUAL_BUILDDIR)/specs/index.html: $(call manual-deps,specs) $(call build-manual,specs,html) -$(MANUAL_BUILDDIR)/system/index.html: $(call manual-deps,system) $(SRC_PATH)/hmp-commands.hx $(SRC_PATH)/hmp-commands-info.hx +$(MANUAL_BUILDDIR)/system/index.html: $(call manual-deps,system) $(SRC_PATH)/hmp-commands.hx $(SRC_PATH)/hmp-commands-info.hx $(SRC_PATH)/qemu-options.hx $(call build-manual,system,html) $(MANUAL_BUILDDIR)/tools/index.html: $(call manual-deps,tools) $(SRC_PATH)/qemu-img-cmds.hx $(SRC_PATH)/docs/qemu-option-trace.rst.inc
docs/system/invocation.rst +2 -0
@@ -10,6 +10,8 @@ Invocation disk_image is a raw hard disk image for IDE hard disk 0. Some targets do not need a disk image. +.. hxtool-doc:: qemu-options.hx + Device URL Syntax ~~~~~~~~~~~~~~~~~
qemu-options.hx +81 -62
363 lines not on this page · raw message
Signature · 1 line
2.20.1
[PULL 23/33] docs: Roll semihosting option information into qemu-options.hx
In reply to Peter MaydellCurrently the per-target documentation for those targets that implement semihosting includes a bit of text that goes into both the manual and the manpage about options specific to the target. This text is redundant with the earlier generic option description of the semihosting option produced from qemu-options.hx. To avoid having to create a lot of stub include files to include into the rST generated qemu.1 manpage, roll target-specific bits of information into the qemu-options.hx text, so the user doesn't have to look in two places for this information.
Message-id: [email protected]
--- docs/system/target-arm.rst | 10 ---------- docs/system/target-arm.texi | 18 ------------------ docs/system/target-m68k.rst | 11 ----------- docs/system/target-m68k.texi | 19 ------------------- docs/system/target-xtensa.rst | 12 ------------ docs/system/target-xtensa.texi | 20 -------------------- qemu-options.hx | 18 ++++++++++++++++++ 7 files changed, 18 insertions(+), 90 deletions(-)
docs/system/target-arm.rst +0 -10
@@ -215,13 +215,3 @@ emulation includes the following elements: A Linux 2.6 test image is available on the QEMU web site. More information is available in the QEMU mailing-list archive. - -The following options are specific to the ARM emulation: - -``-semihosting`` - Enable semihosting syscall emulation. - - On ARM this implements the \"Angel\" interface. - - Note that this allows guest direct access to the host filesystem, so - should only be used with trusted guest OS.
docs/system/target-arm.texi +0 -18
@@ -243,21 +243,3 @@ Three on-chip UARTs A Linux 2.6 test image is available on the QEMU web site. More information is available in the QEMU mailing-list archive. -@c man begin OPTIONS - -The following options are specific to the ARM emulation: - -@table @option - -@item -semihosting -Enable semihosting syscall emulation. - -On ARM this implements the "Angel" interface. - -Note that this allows guest direct access to the host filesystem, -so should only be used with trusted guest OS. - -@end table - -@c man end -
docs/system/target-m68k.rst +0 -11
@@ -19,14 +19,3 @@ The AN5206 emulation includes the following devices: - MCF5206 ColdFire V2 Microprocessor. - Two on-chip UARTs. - -The following options are specific to the ColdFire emulation: - -``-semihosting`` - Enable semihosting syscall emulation. - - On M68K this implements the \"ColdFire GDB\" interface used by - libgloss. - - Note that this allows guest direct access to the host filesystem, so - should only be used with trusted guest OS.
docs/system/target-m68k.texi +0 -19
@@ -23,22 +23,3 @@ MCF5206 ColdFire V2 Microprocessor. @item Two on-chip UARTs. @end itemize - -@c man begin OPTIONS - -The following options are specific to the ColdFire emulation: - -@table @option - -@item -semihosting -Enable semihosting syscall emulation. - -On M68K this implements the "ColdFire GDB" interface used by libgloss. - -Note that this allows guest direct access to the host filesystem, -so should only be used with trusted guest OS. - -@end table - -@c man end -
docs/system/target-xtensa.rst +0 -12
@@ -25,15 +25,3 @@ The Avnet LX60/LX110/LX200 emulation supports: - 16550 UART - OpenCores 10/100 Mbps Ethernet MAC - -The following options are specific to the Xtensa emulation: - -``-semihosting`` - Enable semihosting syscall emulation. - - Xtensa semihosting provides basic file IO calls, such as - open/read/write/seek/select. Tensilica baremetal libc for ISS and - linux platform \"sim\" use this interface. - - Note that this allows guest direct access to the host filesystem, so - should only be used with trusted guest OS.
docs/system/target-xtensa.texi +0 -20
@@ -33,23 +33,3 @@ A range of Xtensa CPUs, default is the DC232B @item OpenCores 10/100 Mbps Ethernet MAC @end itemize - -@c man begin OPTIONS - -The following options are specific to the Xtensa emulation: - -@table @option - -@item -semihosting -Enable semihosting syscall emulation. - -Xtensa semihosting provides basic file IO calls, such as open/read/write/seek/select. -Tensilica baremetal libc for ISS and linux platform "sim" use this interface. - -Note that this allows guest direct access to the host filesystem, -so should only be used with trusted guest OS. - -@end table - -@c man end -
qemu-options.hx +18 -0
@@ -4116,6 +4116,12 @@ STEXI @item -semihosting @findex -semihosting Enable semihosting mode (ARM, M68K, Xtensa, MIPS, Nios II only). + +Note that this allows guest direct access to the host filesystem, so +should only be used with a trusted guest OS. + +See the -semihosting-config option documentation for further information +about the facilities this enables. ETEXI DEF("semihosting-config", HAS_ARG, QEMU_OPTION_semihosting_config, "-semihosting-config [enable=on|off][,target=native|gdb|auto][,chardev=id][,arg=str[,...]]\n" \
@@ -4126,6 +4132,18 @@ STEXI @item -semihosting-config [enable=on|off][,target=native|gdb|auto][,chardev=id][,arg=str[,...]] @findex -semihosting-config Enable and configure semihosting (ARM, M68K, Xtensa, MIPS, Nios II only). + +Note that this allows guest direct access to the host filesystem, so +should only be used with a trusted guest OS. + +On Arm this implements the standard semihosting API, version 2.0. + +On M68K this implements the "ColdFire GDB" interface used by libgloss. + +Xtensa semihosting provides basic file IO calls, such as +open/read/write/seek/select. Tensilica baremetal libc for ISS and +linux platform "sim" use this interface. + @table @option @item target=@code{native|gdb|auto} Defines where the semihosting calls will be addressed, to QEMU (@code{native})
Signature · 1 line
2.20.1
[PULL 15/33] docs/system: Convert qemu-cpu-models.texi to rST
In reply to Peter MaydellFrom: Kashyap Chamarthy <[email protected]>
This doc was originally written by Daniel P. Berrangé <[email protected]>, introduced via commit[1]: 2544e9e4aa (docs: add guidance on configuring CPU models for x86, 2018-06-27).
In this patch:
- 1-1 conversion of Texinfo to rST, besides a couple of minor
tweaks that are too trivial to mention. (Thanks to Stephen
Finucane on IRC for the suggestion to use rST "definition lists" instead of bullets in some places.)
Further modifications will be done via a separate patch.
- rST and related infra changes: manual page generation, Makefile fixes, clean up references to qemu-cpu-models.texi, update year in the copyright notice, etc.
[1] https://git.qemu.org/?p=qemu.git;a=commit;h=2544e9e4aa
As part of the conversion, we use a more generic 'author' attribution for the manpage than we previously had, as agreed with the original author Dan Berrange.
Message-id: [email protected]
Message-id: [email protected] [Move macros to defs.rst.inc, split in x86 and MIPS parts,
make qemu-cpu-models.rst a standalone document. - Paolo]
[PMM: Move defs.rst.inc setup to its own commit;
fix minor issues with MAINTAINERS file updates; drop copyright date change; keep capitalization of "QEMU Project developers" consistent with other uses; minor Makefile fixups]
--- Makefile | 8 +- MAINTAINERS | 2 + docs/system/conf.py | 6 +- docs/system/cpu-models-mips.rst.inc | 105 ++++++++ docs/system/cpu-models-x86.rst.inc | 365 ++++++++++++++++++++++++++++ docs/system/qemu-cpu-models.rst | 20 ++ docs/system/qemu-cpu-models.texi | 28 --- 7 files changed, 500 insertions(+), 34 deletions(-) create mode 100644 docs/system/cpu-models-mips.rst.inc create mode 100644 docs/system/cpu-models-x86.rst.inc create mode 100644 docs/system/qemu-cpu-models.rst delete mode 100644 docs/system/qemu-cpu-models.texi
Makefile +3 -5
@@ -354,7 +354,7 @@ endif DOCS+=$(MANUAL_BUILDDIR)/system/qemu-block-drivers.7 DOCS+=docs/interop/qemu-qmp-ref.html docs/interop/qemu-qmp-ref.txt docs/interop/qemu-qmp-ref.7 DOCS+=docs/interop/qemu-ga-ref.html docs/interop/qemu-ga-ref.txt docs/interop/qemu-ga-ref.7 -DOCS+=docs/system/qemu-cpu-models.7 +DOCS+=$(MANUAL_BUILDDIR)/system/qemu-cpu-models.7 DOCS+=$(MANUAL_BUILDDIR)/index.html ifdef CONFIG_VIRTFS DOCS+=$(MANUAL_BUILDDIR)/tools/virtfs-proxy-helper.1
@@ -780,7 +780,6 @@ distclean: clean rm -f docs/interop/qemu-qmp-ref.txt docs/interop/qemu-ga-ref.txt rm -f docs/interop/qemu-qmp-ref.pdf docs/interop/qemu-ga-ref.pdf rm -f docs/interop/qemu-qmp-ref.html docs/interop/qemu-ga-ref.html - rm -f docs/system/qemu-cpu-models.7 rm -rf .doctrees $(call clean-manual,devel) $(call clean-manual,interop)
@@ -861,7 +860,7 @@ ifdef CONFIG_POSIX $(INSTALL_DIR) "$(DESTDIR)$(mandir)/man7" $(INSTALL_DATA) docs/interop/qemu-qmp-ref.7 "$(DESTDIR)$(mandir)/man7" $(INSTALL_DATA) $(MANUAL_BUILDDIR)/system/qemu-block-drivers.7 "$(DESTDIR)$(mandir)/man7" - $(INSTALL_DATA) docs/system/qemu-cpu-models.7 "$(DESTDIR)$(mandir)/man7" + $(INSTALL_DATA) $(MANUAL_BUILDDIR)/system/qemu-cpu-models.7 "$(DESTDIR)$(mandir)/man7" ifeq ($(CONFIG_TOOLS),y) $(INSTALL_DATA) $(MANUAL_BUILDDIR)/tools/qemu-img.1 "$(DESTDIR)$(mandir)/man1" $(INSTALL_DIR) "$(DESTDIR)$(mandir)/man8"
@@ -1083,7 +1082,7 @@ $(MANUAL_BUILDDIR)/user/index.html: $(call manual-deps,user) $(call define-manpage-rule,interop,qemu-ga.8) -$(call define-manpage-rule,system,qemu-block-drivers.7) +$(call define-manpage-rule,system,qemu-block-drivers.7 qemu-cpu-models.7) $(call define-manpage-rule,tools,\ qemu-img.1 qemu-nbd.8 qemu-trace-stap.1\
@@ -1112,7 +1111,6 @@ docs/interop/qemu-ga-qapi.texi: qga/qapi-generated/qga-qapi-doc.texi qemu.1: qemu-doc.texi qemu-options.texi qemu-monitor.texi qemu-monitor-info.texi qemu.1: docs/system/qemu-option-trace.texi -docs/system/qemu-cpu-models.7: docs/system/qemu-cpu-models.texi docs/system/cpu-models-x86.texi docs/system/cpu-models-mips.texi html: qemu-doc.html docs/interop/qemu-qmp-ref.html docs/interop/qemu-ga-ref.html sphinxdocs info: qemu-doc.info docs/interop/qemu-qmp-ref.info docs/interop/qemu-ga-ref.info
MAINTAINERS +2 -0
@@ -216,6 +216,7 @@ F: target/mips/ F: default-configs/*mips* F: disas/*mips* F: docs/system/cpu-models-mips.texi +F: docs/system/cpu-models-mips.rst.inc F: hw/intc/mips_gic.c F: hw/mips/ F: hw/misc/mips_*
@@ -321,6 +322,7 @@ F: tests/tcg/x86_64/ F: hw/i386/ F: disas/i386.c F: docs/system/cpu-models-x86.texi +F: docs/system/cpu-models-x86.rst.inc T: git https://github.com/ehabkost/qemu.git x86-next Xtensa TCG CPUs
docs/system/conf.py +5 -1
@@ -13,10 +13,14 @@ exec(compile(open(parent_config, "rb").read(), parent_config, 'exec')) # This slightly misuses the 'description', but is the best way to get # the manual title to appear in the sidebar. html_theme_options['description'] = u'System Emulation User''s Guide' + # One entry per manual page. List of tuples # (source start file, name, description, authors, manual section). man_pages = [ ('qemu-block-drivers', 'qemu-block-drivers', u'QEMU block drivers reference', - ['Fabrice Bellard and the QEMU Project developers'], 7) + ['Fabrice Bellard and the QEMU Project developers'], 7), + ('qemu-cpu-models', 'qemu-cpu-models', + u'QEMU CPU Models', + ['The QEMU Project developers'], 7) ]
docs/system/cpu-models-mips.rst.inc new file +105 -0
105 lines not on this page · raw message
docs/system/cpu-models-x86.rst.inc new file +365 -0
365 lines not on this page · raw message
docs/system/qemu-cpu-models.rst new file +20 -0
@@ -0,0 +1,20 @@ +:orphan: + +QEMU / KVM CPU model configuration +================================== + +Synopsis +'''''''' + +QEMU CPU Modelling Infrastructure manual + +Description +''''''''''' + +.. include:: cpu-models-x86.rst.inc +.. include:: cpu-models-mips.rst.inc + +See also +'''''''' + +The HTML documentation of QEMU for more precise information and Linux user mode emulator invocation.
docs/system/qemu-cpu-models.texi deleted +0 -28
@@ -1,28 +0,0 @@ -@c man begin SYNOPSIS -QEMU / KVM CPU model configuration -@c man end - -@set qemu_system_x86 qemu-system-x86_64 - -@c man begin DESCRIPTION - -@include cpu-models-x86.texi -@include cpu-models-mips.texi - -@c man end - -@ignore - -@setfilename qemu-cpu-models -@settitle QEMU / KVM CPU model configuration - -@c man begin SEEALSO -The HTML documentation of QEMU for more precise information and Linux -user mode emulator invocation. -@c man end - -@c man begin AUTHOR -Daniel P. Berrange -@c man end - -@end ignore
Signature · 1 line
2.20.1
[PULL 29/33] docs: Generate qemu.1 manpage with Sphinx
In reply to Peter MaydellGenerate the qemu.1 manpage using Sphinx; we do this with a new top-level rst source file which is just the skeleton of the manpage and which includes .rst.inc fragments where it needs to incorporate sections from the larger HTML manuals.
Message-id: [email protected]
--- Makefile | 10 ++++---- docs/system/conf.py | 2 ++ docs/system/qemu-manpage.rst | 45 ++++++++++++++++++++++++++++++++++++ 3 files changed, 51 insertions(+), 6 deletions(-) create mode 100644 docs/system/qemu-manpage.rst
Makefile +4 -6
@@ -344,7 +344,8 @@ MANUAL_BUILDDIR := docs endif ifdef BUILD_DOCS -DOCS=qemu-doc.html qemu-doc.txt qemu.1 +DOCS=qemu-doc.html qemu-doc.txt +DOCS+=$(MANUAL_BUILDDIR)/system/qemu.1 DOCS+=$(MANUAL_BUILDDIR)/tools/qemu-img.1 DOCS+=$(MANUAL_BUILDDIR)/tools/qemu-nbd.8 DOCS+=$(MANUAL_BUILDDIR)/interop/qemu-ga.8
@@ -856,7 +857,7 @@ install-doc: $(DOCS) install-sphinxdocs $(INSTALL_DATA) docs/interop/qemu-qmp-ref.txt "$(DESTDIR)$(qemu_docdir)" ifdef CONFIG_POSIX $(INSTALL_DIR) "$(DESTDIR)$(mandir)/man1" - $(INSTALL_DATA) qemu.1 "$(DESTDIR)$(mandir)/man1" + $(INSTALL_DATA) $(MANUAL_BUILDDIR)/system/qemu.1 "$(DESTDIR)$(mandir)/man1" $(INSTALL_DIR) "$(DESTDIR)$(mandir)/man7" $(INSTALL_DATA) docs/interop/qemu-qmp-ref.7 "$(DESTDIR)$(mandir)/man7" $(INSTALL_DATA) $(MANUAL_BUILDDIR)/system/qemu-block-drivers.7 "$(DESTDIR)$(mandir)/man7"
@@ -1082,7 +1083,7 @@ $(MANUAL_BUILDDIR)/user/index.html: $(call manual-deps,user) $(call define-manpage-rule,interop,qemu-ga.8) -$(call define-manpage-rule,system,qemu-block-drivers.7 qemu-cpu-models.7) +$(call define-manpage-rule,system,qemu.1 qemu-block-drivers.7 qemu-cpu-models.7) $(call define-manpage-rule,tools,\ qemu-img.1 qemu-nbd.8 qemu-trace-stap.1\
@@ -1109,9 +1110,6 @@ docs/interop/qemu-qmp-qapi.texi: qapi/qapi-doc.texi docs/interop/qemu-ga-qapi.texi: qga/qapi-generated/qga-qapi-doc.texi @cp -p $< $@ -qemu.1: qemu-doc.texi qemu-options.texi qemu-monitor.texi qemu-monitor-info.texi -qemu.1: docs/system/qemu-option-trace.texi - html: qemu-doc.html docs/interop/qemu-qmp-ref.html docs/interop/qemu-ga-ref.html sphinxdocs info: qemu-doc.info docs/interop/qemu-qmp-ref.info docs/interop/qemu-ga-ref.info pdf: qemu-doc.pdf docs/interop/qemu-qmp-ref.pdf docs/interop/qemu-ga-ref.pdf
docs/system/conf.py +2 -0
@@ -17,6 +17,8 @@ html_theme_options['description'] = u'System Emulation User''s Guide' # One entry per manual page. List of tuples # (source start file, name, description, authors, manual section). man_pages = [ + ('qemu-manpage', 'qemu', u'QEMU User Documentation', + ['Fabrice Bellard'], 1), ('qemu-block-drivers', 'qemu-block-drivers', u'QEMU block drivers reference', ['Fabrice Bellard and the QEMU Project developers'], 7),
docs/system/qemu-manpage.rst new file +45 -0
45 lines not on this page · raw message
Signature · 1 line
2.20.1
[PULL 24/33] docs: Roll -prom-env and -g target-specific info into qemu-options.hx
In reply to Peter MaydellThe SPARC and PPC targets currently have a fragment of target-specific information about the -g and -prom options which would be better placed as part of the general documentation of those options in qemu-options.hx. Move the relevant information to those locations.
SPARC also has a bit of text about the -M option which is out of date and provides no useful information over the generic documentation of that option, so just delete it.
The motivation here is again to avoid having to awkwardly include this text into the rST version of the qemu.1 manpage.
Message-id: [email protected]
--- docs/system/target-ppc.rst | 14 -------------- docs/system/target-ppc.texi | 25 ------------------------- docs/system/target-sparc.rst | 19 ------------------- docs/system/target-sparc.texi | 27 --------------------------- docs/system/target-sparc64.rst | 12 ------------ docs/system/target-sparc64.texi | 22 ---------------------- qemu-options.hx | 19 +++++++++++++++++++ 7 files changed, 19 insertions(+), 119 deletions(-)
docs/system/target-ppc.rst +0 -14
@@ -43,19 +43,5 @@ the g3beige and mac99 PowerMac and the 40p machines. OpenBIOS is a free (GPL v2) portable firmware implementation. The goal is to implement a 100% IEEE 1275-1994 (referred to as Open Firmware) compliant firmware. -The following options are specific to the PowerPC emulation: - -``-g WxH[xDEPTH]`` - Set the initial VGA graphic mode. The default is 800x600x32. - -``-prom-env string`` - Set OpenBIOS variables in NVRAM, for example: - - :: - - qemu-system-ppc -prom-env 'auto-boot?=false' \ - -prom-env 'boot-device=hd:2,\yaboot' \ - -prom-env 'boot-args=conf=hd:2,\yaboot.conf' - More information is available at http://perso.magic.fr/l_indien/qemu-ppc/.
docs/system/target-ppc.texi +0 -25
@@ -47,31 +47,6 @@ for the g3beige and mac99 PowerMac and the 40p machines. OpenBIOS is a free (GPL v2) portable firmware implementation. The goal is to implement a 100% IEEE 1275-1994 (referred to as Open Firmware) compliant firmware. -@c man begin OPTIONS - -The following options are specific to the PowerPC emulation: - -@table @option - -@item -g @var{W}x@var{H}[x@var{DEPTH}] - -Set the initial VGA graphic mode. The default is 800x600x32. - -@item -prom-env @var{string} - -Set OpenBIOS variables in NVRAM, for example: - -@example -qemu-system-ppc -prom-env 'auto-boot?=false' \ - -prom-env 'boot-device=hd:2,\yaboot' \ - -prom-env 'boot-args=conf=hd:2,\yaboot.conf' -@end example - -@end table - -@c man end - - More information is available at @url{http://perso.magic.fr/l_indien/qemu-ppc/}.
docs/system/target-sparc.rst +0 -19
@@ -60,22 +60,3 @@ QEMU web site. There are still issues with NetBSD and OpenBSD, but most kernel versions work. Please note that currently older Solaris kernels don't work probably due to interface issues between OpenBIOS and Solaris. - -The following options are specific to the Sparc32 emulation: - -``-g WxHx[xDEPTH]`` - Set the initial graphics mode. For TCX, the default is 1024x768x8 - with the option of 1024x768x24. For cgthree, the default is - 1024x768x8 with the option of 1152x900x8 for people who wish to use - OBP. - -``-prom-env string`` - Set OpenBIOS variables in NVRAM, for example: - - :: - - qemu-system-sparc -prom-env 'auto-boot?=false' \ - -prom-env 'boot-device=sd(0,2,0):d' -prom-env 'boot-args=linux single' - -``-M [SS-4|SS-5|SS-10|SS-20|SS-600MP|LX|Voyager|SPARCClassic] [|SPARCbook]`` - Set the emulated machine type. Default is SS-5.
docs/system/target-sparc.texi +0 -27
@@ -64,32 +64,5 @@ most kernel versions work. Please note that currently older Solaris kernels don't work probably due to interface issues between OpenBIOS and Solaris. -@c man begin OPTIONS - -The following options are specific to the Sparc32 emulation: - -@table @option - -@item -g @var{W}x@var{H}x[x@var{DEPTH}] - -Set the initial graphics mode. For TCX, the default is 1024x768x8 with the -option of 1024x768x24. For cgthree, the default is 1024x768x8 with the option -of 1152x900x8 for people who wish to use OBP. - -@item -prom-env @var{string} - -Set OpenBIOS variables in NVRAM, for example: - -@example -qemu-system-sparc -prom-env 'auto-boot?=false' \ - -prom-env 'boot-device=sd(0,2,0):d' -prom-env 'boot-args=linux single' -@end example - -@item -M [SS-4|SS-5|SS-10|SS-20|SS-600MP|LX|Voyager|SPARCClassic] [|SPARCbook] - -Set the emulated machine type. Default is SS-5. - -@end table - @c man end
docs/system/target-sparc64.rst +0 -12
@@ -35,15 +35,3 @@ QEMU emulates the following peripherals: - 2 PCI IDE interfaces with hard disk and CD-ROM support - Floppy disk - -The following options are specific to the Sparc64 emulation: - -``-prom-env string`` - Set OpenBIOS variables in NVRAM, for example: - - :: - - qemu-system-sparc64 -prom-env 'auto-boot?=false' - -``-M [sun4u|sun4v|niagara]`` - Set the emulated machine type. The default is sun4u.
docs/system/target-sparc64.texi +0 -22
@@ -36,25 +36,3 @@ PC-compatible serial ports Floppy disk @end itemize -@c man begin OPTIONS - -The following options are specific to the Sparc64 emulation: - -@table @option - -@item -prom-env @var{string} - -Set OpenBIOS variables in NVRAM, for example: - -@example -qemu-system-sparc64 -prom-env 'auto-boot?=false' -@end example - -@item -M [sun4u|sun4v|niagara] - -Set the emulated machine type. The default is sun4u. - -@end table - -@c man end -
qemu-options.hx +19 -0
@@ -1962,6 +1962,13 @@ STEXI @item -g @var{width}x@var{height}[x@var{depth}] @findex -g Set the initial graphical resolution and depth (PPC, SPARC only). + +For PPC the default is 800x600x32. + +For SPARC with the TCX graphics device, the default is 1024x768x8 with the +option of 1024x768x24. For cgthree, the default is 1024x768x8 with the option +of 1152x900x8 for people who wish to use OBP. + ETEXI DEF("vnc", HAS_ARG, QEMU_OPTION_vnc ,
@@ -4107,6 +4114,18 @@ STEXI @item -prom-env @var{variable}=@var{value} @findex -prom-env Set OpenBIOS nvram @var{variable} to given @var{value} (PPC, SPARC only). + +@example +qemu-system-sparc -prom-env 'auto-boot?=false' \ + -prom-env 'boot-device=sd(0,2,0):d' -prom-env 'boot-args=linux single' +@end example + +@example +qemu-system-ppc -prom-env 'auto-boot?=false' \ + -prom-env 'boot-device=hd:2,\yaboot' \ + -prom-env 'boot-args=conf=hd:2,\yaboot.conf' +@end example + ETEXI DEF("semihosting", 0, QEMU_OPTION_semihosting, "-semihosting semihosting mode\n",
Signature · 1 line
2.20.1
[PULL 33/33] *.hx: Remove all the STEXI/ETEXI blocks
In reply to Peter MaydellWe no longer generate texinfo from the hxtool input files, so delete all the STEXI/ETEXI blocks.
This commit was created using the following Perl one-liner:
perl -i -n -e '$suppress = 1,next if /^STEXI/;$suppress=0,next if /^ETEXI/; print if !$suppress;' *.hx
--- hmp-commands-info.hx | 329 ---- hmp-commands.hx | 821 --------- qemu-options.hx | 4075 ------------------------------------------ 3 files changed, 5225 deletions(-)
hmp-commands-info.hx +0 -329
@@ -11,13 +11,6 @@ HXCOMM appears inside the documentation list item for the top level HXCOMM "info" documentation entry. The exception is the first SRST HXCOMM fragment that defines that top level entry. -STEXI -@table @option -@item info @var{subcommand} -@findex info -Show various information about the system state. -@table @option -ETEXI SRST ``info`` *subcommand* Show various information about the system state.
@@ -33,11 +26,6 @@ ERST .flags = "p", }, -STEXI -@item info version -@findex info version -Show the version of QEMU. -ETEXI SRST ``info version`` Show the version of QEMU.
@@ -51,11 +39,6 @@ ERST .cmd = hmp_info_network, }, -STEXI -@item info network -@findex info network -Show the network state. -ETEXI SRST ``info network`` Show the network state.
@@ -70,11 +53,6 @@ ERST .flags = "p", }, -STEXI -@item info chardev -@findex info chardev -Show the character devices. -ETEXI SRST ``info chardev`` Show the character devices.
@@ -89,11 +67,6 @@ ERST .cmd = hmp_info_block, }, -STEXI -@item info block -@findex info block -Show info of one block device or all block devices. -ETEXI SRST ``info block`` Show info of one block device or all block devices.
@@ -107,11 +80,6 @@ ERST .cmd = hmp_info_blockstats, }, -STEXI -@item info blockstats -@findex info blockstats -Show block device statistics. -ETEXI SRST ``info blockstats`` Show block device statistics.
@@ -125,11 +93,6 @@ ERST .cmd = hmp_info_block_jobs, }, -STEXI -@item info block-jobs -@findex info block-jobs -Show progress of ongoing block device operations. -ETEXI SRST ``info block-jobs`` Show progress of ongoing block device operations.
@@ -143,11 +106,6 @@ ERST .cmd = hmp_info_registers, }, -STEXI -@item info registers -@findex info registers -Show the cpu registers. -ETEXI SRST ``info registers`` Show the cpu registers.
@@ -164,11 +122,6 @@ ERST }, #endif -STEXI -@item info lapic -@findex info lapic -Show local APIC state -ETEXI SRST ``info lapic`` Show local APIC state
@@ -184,11 +137,6 @@ ERST }, #endif -STEXI -@item info ioapic -@findex info ioapic -Show io APIC state -ETEXI SRST ``info ioapic`` Show io APIC state
@@ -202,11 +150,6 @@ ERST .cmd = hmp_info_cpus, }, -STEXI -@item info cpus -@findex info cpus -Show infos for each CPU. -ETEXI SRST ``info cpus`` Show infos for each CPU.
@@ -221,11 +164,6 @@ ERST .flags = "p", }, -STEXI -@item info history -@findex info history -Show the command line history. -ETEXI SRST ``info history`` Show the command line history.
@@ -239,11 +177,6 @@ ERST .cmd = hmp_info_irq, }, -STEXI -@item info irq -@findex info irq -Show the interrupts statistics (if available). -ETEXI SRST ``info irq`` Show the interrupts statistics (if available).
@@ -257,11 +190,6 @@ ERST .cmd = hmp_info_pic, }, -STEXI -@item info pic -@findex info pic -Show PIC state. -ETEXI SRST ``info pic`` Show PIC state.
@@ -275,11 +203,6 @@ ERST .cmd = hmp_info_rdma, }, -STEXI -@item info rdma -@findex info rdma -Show RDMA state. -ETEXI SRST ``info rdma`` Show RDMA state.
@@ -293,11 +216,6 @@ ERST .cmd = hmp_info_pci, }, -STEXI -@item info pci -@findex info pci -Show PCI information. -ETEXI SRST ``info pci`` Show PCI information.
@@ -314,11 +232,6 @@ ERST }, #endif -STEXI -@item info tlb -@findex info tlb -Show virtual to physical memory mappings. -ETEXI SRST ``info tlb`` Show virtual to physical memory mappings.
@@ -334,11 +247,6 @@ ERST }, #endif -STEXI -@item info mem -@findex info mem -Show the active virtual memory mappings. -ETEXI SRST ``info mem`` Show the active virtual memory mappings.
@@ -354,11 +262,6 @@ ERST .cmd = hmp_info_mtree, }, -STEXI -@item info mtree -@findex info mtree -Show memory tree. -ETEXI SRST ``info mtree`` Show memory tree.
@@ -374,11 +277,6 @@ ERST }, #endif -STEXI -@item info jit -@findex info jit -Show dynamic compiler info. -ETEXI SRST ``info jit`` Show dynamic compiler info.
@@ -394,11 +292,6 @@ ERST }, #endif -STEXI -@item info opcount -@findex info opcount -Show dynamic compiler opcode counters -ETEXI SRST ``info opcount`` Show dynamic compiler opcode counters
@@ -415,16 +308,6 @@ ERST .cmd = hmp_info_sync_profile, }, -STEXI -@item info sync-profile [-m|-n] [@var{max}] -@findex info sync-profile -Show synchronization profiling info, up to @var{max} entries (default: 10), -sorted by total wait time. - -m: sort by mean wait time - -n: do not coalesce objects with the same call site -When different objects that share the same call site are coalesced, the "Object" -field shows---enclosed in brackets---the number of objects being coalesced. -ETEXI SRST ``info sync-profile [-m|-n]`` [*max*] Show synchronization profiling info, up to *max* entries (default: 10),
@@ -448,11 +331,6 @@ ERST .cmd = hmp_info_kvm, }, -STEXI -@item info kvm -@findex info kvm -Show KVM information. -ETEXI SRST ``info kvm`` Show KVM information.
@@ -466,11 +344,6 @@ ERST .cmd = hmp_info_numa, }, -STEXI -@item info numa -@findex info numa -Show NUMA information. -ETEXI SRST ``info numa`` Show NUMA information.
@@ -484,11 +357,6 @@ ERST .cmd = hmp_info_usb, }, -STEXI -@item info usb -@findex info usb -Show guest USB devices. -ETEXI SRST ``info usb`` Show guest USB devices.
@@ -502,11 +370,6 @@ ERST .cmd = hmp_info_usbhost, }, -STEXI -@item info usbhost -@findex info usbhost -Show host USB devices. -ETEXI SRST ``info usbhost`` Show host USB devices.
@@ -520,11 +383,6 @@ ERST .cmd = hmp_info_profile, }, -STEXI -@item info profile -@findex info profile -Show profiling information. -ETEXI SRST ``info profile`` Show profiling information.
@@ -538,11 +396,6 @@ ERST .cmd = hmp_info_capture, }, -STEXI -@item info capture -@findex info capture -Show capture information. -ETEXI SRST ``info capture`` Show capture information.
@@ -556,11 +409,6 @@ ERST .cmd = hmp_info_snapshots, }, -STEXI -@item info snapshots -@findex info snapshots -Show the currently saved VM snapshots. -ETEXI SRST ``info snapshots`` Show the currently saved VM snapshots.
@@ -575,11 +423,6 @@ ERST .flags = "p", }, -STEXI -@item info status -@findex info status -Show the current VM status (running|paused). -ETEXI SRST ``info status`` Show the current VM status (running|paused).
@@ -593,11 +436,6 @@ ERST .cmd = hmp_info_mice, }, -STEXI -@item info mice -@findex info mice -Show which guest mouse is receiving events. -ETEXI SRST ``info mice`` Show which guest mouse is receiving events.
@@ -613,11 +451,6 @@ ERST }, #endif -STEXI -@item info vnc -@findex info vnc -Show the vnc server status. -ETEXI SRST ``info vnc`` Show the vnc server status.
@@ -633,11 +466,6 @@ ERST }, #endif -STEXI -@item info spice -@findex info spice -Show the spice server status. -ETEXI SRST ``info spice`` Show the spice server status.
@@ -652,11 +480,6 @@ ERST .flags = "p", }, -STEXI -@item info name -@findex info name -Show the current VM name. -ETEXI SRST ``info name`` Show the current VM name.
@@ -671,11 +494,6 @@ ERST .flags = "p", }, -STEXI -@item info uuid -@findex info uuid -Show the current VM UUID. -ETEXI SRST ``info uuid`` Show the current VM UUID.
@@ -689,11 +507,6 @@ ERST .cmd = hmp_info_cpustats, }, -STEXI -@item info cpustats -@findex info cpustats -Show CPU statistics. -ETEXI SRST ``info cpustats`` Show CPU statistics.
@@ -709,11 +522,6 @@ ERST }, #endif -STEXI -@item info usernet -@findex info usernet -Show user network stack connection states. -ETEXI SRST ``info usernet`` Show user network stack connection states.
@@ -727,11 +535,6 @@ ERST .cmd = hmp_info_migrate, }, -STEXI -@item info migrate -@findex info migrate -Show migration status. -ETEXI SRST ``info migrate`` Show migration status.
@@ -745,11 +548,6 @@ ERST .cmd = hmp_info_migrate_capabilities, }, -STEXI -@item info migrate_capabilities -@findex info migrate_capabilities -Show current migration capabilities. -ETEXI SRST ``info migrate_capabilities`` Show current migration capabilities.
@@ -763,11 +561,6 @@ ERST .cmd = hmp_info_migrate_parameters, }, -STEXI -@item info migrate_parameters -@findex info migrate_parameters -Show current migration parameters. -ETEXI SRST ``info migrate_parameters`` Show current migration parameters.
@@ -781,11 +574,6 @@ ERST .cmd = hmp_info_migrate_cache_size, }, -STEXI -@item info migrate_cache_size -@findex info migrate_cache_size -Show current migration xbzrle cache size. -ETEXI SRST ``info migrate_cache_size`` Show current migration xbzrle cache size.
@@ -799,11 +587,6 @@ ERST .cmd = hmp_info_balloon, }, -STEXI -@item info balloon -@findex info balloon -Show balloon information. -ETEXI SRST ``info balloon`` Show balloon information.
@@ -817,11 +600,6 @@ ERST .cmd = hmp_info_qtree, }, -STEXI -@item info qtree -@findex info qtree -Show device tree. -ETEXI SRST ``info qtree`` Show device tree.
@@ -835,11 +613,6 @@ ERST .cmd = hmp_info_qdm, }, -STEXI -@item info qdm -@findex info qdm -Show qdev device model list. -ETEXI SRST ``info qdm`` Show qdev device model list.
@@ -854,11 +627,6 @@ ERST .flags = "p", }, -STEXI -@item info qom-tree -@findex info qom-tree -Show QOM composition tree. -ETEXI SRST ``info qom-tree`` Show QOM composition tree.
@@ -872,11 +640,6 @@ ERST .cmd = hmp_info_roms, }, -STEXI -@item info roms -@findex info roms -Show roms. -ETEXI SRST ``info roms`` Show roms.
@@ -892,11 +655,6 @@ ERST .command_completion = info_trace_events_completion, }, -STEXI -@item info trace-events -@findex info trace-events -Show available trace-events & their state. -ETEXI SRST ``info trace-events`` Show available trace-events & their state.
@@ -910,11 +668,6 @@ ERST .cmd = hmp_info_tpm, }, -STEXI -@item info tpm -@findex info tpm -Show the TPM device. -ETEXI SRST ``info tpm`` Show the TPM device.
@@ -929,11 +682,6 @@ ERST .flags = "p", }, -STEXI -@item info memdev -@findex info memdev -Show memory backends -ETEXI SRST ``info memdev`` Show memory backends
@@ -947,11 +695,6 @@ ERST .cmd = hmp_info_memory_devices, }, -STEXI -@item info memory-devices -@findex info memory-devices -Show memory devices. -ETEXI SRST ``info memory-devices`` Show memory devices.
@@ -966,11 +709,6 @@ ERST .flags = "p", }, -STEXI -@item info iothreads -@findex info iothreads -Show iothread's identifiers. -ETEXI SRST ``info iothreads`` Show iothread's identifiers.
@@ -984,11 +722,6 @@ ERST .cmd = hmp_rocker, }, -STEXI -@item info rocker @var{name} -@findex info rocker -Show rocker switch. -ETEXI SRST ``info rocker`` *name* Show rocker switch.
@@ -1002,11 +735,6 @@ ERST .cmd = hmp_rocker_ports, }, -STEXI -@item info rocker-ports @var{name}-ports -@findex info rocker-ports -Show rocker ports. -ETEXI SRST ``info rocker-ports`` *name*-ports Show rocker ports.
@@ -1020,11 +748,6 @@ ERST .cmd = hmp_rocker_of_dpa_flows, }, -STEXI -@item info rocker-of-dpa-flows @var{name} [@var{tbl_id}] -@findex info rocker-of-dpa-flows -Show rocker OF-DPA flow tables. -ETEXI SRST ``info rocker-of-dpa-flows`` *name* [*tbl_id*] Show rocker OF-DPA flow tables.
@@ -1038,11 +761,6 @@ ERST .cmd = hmp_rocker_of_dpa_groups, }, -STEXI -@item info rocker-of-dpa-groups @var{name} [@var{type}] -@findex info rocker-of-dpa-groups -Show rocker OF-DPA groups. -ETEXI SRST ``info rocker-of-dpa-groups`` *name* [*type*] Show rocker OF-DPA groups.
@@ -1058,11 +776,6 @@ ERST }, #endif -STEXI -@item info skeys @var{address} -@findex info skeys -Display the value of a storage key (s390 only) -ETEXI SRST ``info skeys`` *address* Display the value of a storage key (s390 only)
@@ -1078,11 +791,6 @@ ERST }, #endif -STEXI -@item info cmma @var{address} -@findex info cmma -Display the values of the CMMA storage attributes for a range of pages (s390 only) -ETEXI SRST ``info cmma`` *address* Display the values of the CMMA storage attributes for a range of
@@ -1097,11 +805,6 @@ ERST .cmd = hmp_info_dump, }, -STEXI -@item info dump -@findex info dump -Display the latest dump status. -ETEXI SRST ``info dump`` Display the latest dump status.
@@ -1115,11 +818,6 @@ ERST .cmd = hmp_info_ramblock, }, -STEXI -@item info ramblock -@findex info ramblock -Dump all the ramblocks of the system. -ETEXI SRST ``info ramblock`` Dump all the ramblocks of the system.
@@ -1134,11 +832,6 @@ ERST .flags = "p", }, -STEXI -@item info hotpluggable-cpus -@findex info hotpluggable-cpus -Show information about hotpluggable CPUs -ETEXI SRST ``info hotpluggable-cpus`` Show information about hotpluggable CPUs
@@ -1152,11 +845,6 @@ ERST .cmd = hmp_info_vm_generation_id, }, -STEXI -@item info vm-generation-id -@findex info vm-generation-id -Show Virtual Machine Generation ID -ETEXI SRST ``info vm-generation-id`` Show Virtual Machine Generation ID
@@ -1171,12 +859,6 @@ ERST .cmd = hmp_info_memory_size_summary, }, -STEXI -@item info memory_size_summary -@findex info memory_size_summary -Display the amount of initially allocated and present hotpluggable (if -enabled) memory in bytes. -ETEXI SRST ``info memory_size_summary`` Display the amount of initially allocated and present hotpluggable (if
@@ -1193,20 +875,9 @@ ERST }, #endif -STEXI -@item info sev -@findex info sev -Show SEV information. -ETEXI SRST ``info sev`` Show SEV information. ERST -STEXI -@end table -ETEXI -STEXI -@end table -ETEXI
hmp-commands.hx +0 -821
1,502 lines not on this page · raw message
qemu-options.hx +0 -4075
788 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
2.20.1
Part of the diff is not shown here. View the raw message.
[PULL 19/33] docs/system: convert Texinfo documentation to rST
In reply to Peter MaydellFrom: Paolo Bonzini <[email protected]>
Apart from targets.rst, which was written by hand, this is an automated conversion obtained with the following command:
makeinfo --force -o - --docbook \
-D 'qemu_system_x86 QEMU_SYSTEM_X86_MACRO' \
-D 'qemu_system QEMU_SYSTEM_MACRO' \
$texi | pandoc -f docbook -t rst+smart | perl -e '
$/=undef;
$_ = <>;
s/^- − /- /gm;
s/QEMU_SYSTEM_MACRO/|qemu_system|/g;
s/QEMU_SYSTEM_X86_MACRO/|qemu_system_x86|/g;
s/(?=::\n\n +\|qemu)/.. parsed-literal/g;
s/:\n\n::$/::/gm;
print' > $rstIn addition, the following changes were made manually:
- target-i386.rst and target-mips.rst: replace CPU model documentation with an include directive
- monitor.rst: replace the command section with a comment
- images.rst: add toctree
- target-arm.rst: Replace use of :math: (which Sphinx complains about) with :sup:, and hide it behind |I2C| and |I2C| substitutions.
Content that is not @included remains exclusive to qemu-doc.texi.
Message-id: [email protected]
Message-id: [email protected] [PMM: Fixed target-arm.rst use of :math:; remove out of date
note about images.rst from commit message; fixed expansion of |qemu_system_x86|; use parsed-literal in invocation.rst when we want to use |qemu_system_x86|; fix incorrect subsection level for "OS requirements" in target-i386.rst; fix incorrect syntax for making links to other sections of the manual]
--- docs/defs.rst.inc | 12 +- docs/system/build-platforms.rst | 79 ++++++++ docs/system/gdb.rst | 81 ++++++++ docs/system/images.rst | 85 +++++++++ docs/system/index.rst | 19 +- docs/system/invocation.rst | 242 +++++++++++++++++++++++ docs/system/ivshmem.rst | 64 +++++++ docs/system/keys.rst | 40 ++++ docs/system/license.rst | 11 ++ docs/system/linuxboot.rst | 30 +++ docs/system/monitor.rst | 25 +++ docs/system/mux-chardev.rst | 32 ++++ docs/system/net.rst | 100 ++++++++++ docs/system/quickstart.rst | 13 ++ docs/system/target-arm.rst | 227 ++++++++++++++++++++++ docs/system/target-i386.rst | 84 ++++++++ docs/system/target-m68k.rst | 32 ++++ docs/system/target-mips.rst | 120 ++++++++++++ docs/system/target-ppc.rst | 61 ++++++ docs/system/target-sparc.rst | 81 ++++++++ docs/system/target-sparc64.rst | 49 +++++ docs/system/target-xtensa.rst | 39 ++++ docs/system/targets.rst | 19 ++ docs/system/tls.rst | 328 ++++++++++++++++++++++++++++++++ docs/system/usb.rst | 137 +++++++++++++ docs/system/vnc-security.rst | 202 ++++++++++++++++++++ 26 files changed, 2207 insertions(+), 5 deletions(-) create mode 100644 docs/system/build-platforms.rst create mode 100644 docs/system/gdb.rst create mode 100644 docs/system/images.rst create mode 100644 docs/system/invocation.rst create mode 100644 docs/system/ivshmem.rst create mode 100644 docs/system/keys.rst create mode 100644 docs/system/license.rst create mode 100644 docs/system/linuxboot.rst create mode 100644 docs/system/monitor.rst create mode 100644 docs/system/mux-chardev.rst create mode 100644 docs/system/net.rst create mode 100644 docs/system/quickstart.rst create mode 100644 docs/system/target-arm.rst create mode 100644 docs/system/target-i386.rst create mode 100644 docs/system/target-m68k.rst create mode 100644 docs/system/target-mips.rst create mode 100644 docs/system/target-ppc.rst create mode 100644 docs/system/target-sparc.rst create mode 100644 docs/system/target-sparc64.rst create mode 100644 docs/system/target-xtensa.rst create mode 100644 docs/system/targets.rst create mode 100644 docs/system/tls.rst create mode 100644 docs/system/usb.rst create mode 100644 docs/system/vnc-security.rst
docs/defs.rst.inc +8 -4
@@ -3,9 +3,13 @@ all rST files as part of the epilogue by docs/conf.py. conf.py also defines some dynamically generated substitutions like CONFDIR. - Note that |qemu_system| is intended to be used inside a parsed-literal - block: the definition must not include extra literal formatting with - ``..``: this works in the HTML output but the manpages will end up - misrendered with following normal text incorrectly in boldface. + Note that |qemu_system| and |qemu_system_x86| are intended to be + used inside a parsed-literal block: the definition must not include + extra literal formatting with ``..``: this works in the HTML output + but the manpages will end up misrendered with following normal text + incorrectly in boldface. .. |qemu_system| replace:: qemu-system-x86_64 +.. |qemu_system_x86| replace:: qemu_system-x86_64 +.. |I2C| replace:: I\ :sup:`2`\ C +.. |I2S| replace:: I\ :sup:`2`\ S
docs/system/build-platforms.rst new file +79 -0
79 lines not on this page · raw message
docs/system/gdb.rst new file +81 -0
81 lines not on this page · raw message
docs/system/images.rst new file +85 -0
85 lines not on this page · raw message
docs/system/index.rst +18 -1
@@ -12,8 +12,25 @@ or Hypervisor.Framework. Contents: .. toctree:: - :maxdepth: 2 + :maxdepth: 3 + + quickstart + invocation + keys + mux-chardev + monitor + images + net + usb + ivshmem + linuxboot + vnc-security + tls + gdb managed-startup + targets security vfio-ap deprecated + build-platforms + license
docs/system/invocation.rst new file +242 -0
242 lines not on this page · raw message
docs/system/ivshmem.rst new file +64 -0
64 lines not on this page · raw message
docs/system/keys.rst new file +40 -0
@@ -0,0 +1,40 @@ +.. _pcsys_005fkeys: + +Keys in the graphical frontends +------------------------------- + +During the graphical emulation, you can use special key combinations to +change modes. The default key mappings are shown below, but if you use +``-alt-grab`` then the modifier is Ctrl-Alt-Shift (instead of Ctrl-Alt) +and if you use ``-ctrl-grab`` then the modifier is the right Ctrl key +(instead of Ctrl-Alt): + +Ctrl-Alt-f + Toggle full screen + +Ctrl-Alt-+ + Enlarge the screen + +Ctrl-Alt\-- + Shrink the screen + +Ctrl-Alt-u + Restore the screen's un-scaled dimensions + +Ctrl-Alt-n + Switch to virtual console 'n'. Standard console mappings are: + + *1* + Target system display + + *2* + Monitor + + *3* + Serial port + +Ctrl-Alt + Toggle mouse and keyboard grab. + +In the virtual consoles, you can use Ctrl-Up, Ctrl-Down, Ctrl-PageUp and +Ctrl-PageDown to move in the back log.
docs/system/license.rst new file +11 -0
@@ -0,0 +1,11 @@ +.. _License: + +License +======= + +QEMU is a trademark of Fabrice Bellard. + +QEMU is released under the `GNU General Public +License <https://www.gnu.org/licenses/gpl-2.0.txt>`__, version 2. Parts +of QEMU have specific licenses, see file +`LICENSE <https://git.qemu.org/?p=qemu.git;a=blob_plain;f=LICENSE>`__.
docs/system/linuxboot.rst new file +30 -0
@@ -0,0 +1,30 @@ +.. _direct_005flinux_005fboot: + +Direct Linux Boot +----------------- + +This section explains how to launch a Linux kernel inside QEMU without +having to make a full bootable image. It is very useful for fast Linux +kernel testing. + +The syntax is: + +.. parsed-literal:: + + |qemu_system| -kernel bzImage -hda rootdisk.img -append "root=/dev/hda" + +Use ``-kernel`` to provide the Linux kernel image and ``-append`` to +give the kernel command line arguments. The ``-initrd`` option can be +used to provide an INITRD image. + +If you do not need graphical output, you can disable it and redirect the +virtual serial port and the QEMU monitor to the console with the +``-nographic`` option. The typical command line is: + +.. parsed-literal:: + + |qemu_system| -kernel bzImage -hda rootdisk.img \ + -append "root=/dev/hda console=ttyS0" -nographic + +Use Ctrl-a c to switch between the serial console and the monitor (see +:ref:`pcsys_005fkeys`).
docs/system/monitor.rst new file +25 -0
@@ -0,0 +1,25 @@ +.. _pcsys_005fmonitor: + +QEMU Monitor +------------ + +The QEMU monitor is used to give complex commands to the QEMU emulator. +You can use it to: + +- Remove or insert removable media images (such as CD-ROM or + floppies). + +- Freeze/unfreeze the Virtual Machine (VM) and save or restore its + state from a disk file. + +- Inspect the VM state without an external debugger. + +.. + The commands section goes here once it's converted from Texinfo to RST. + +Integer expressions +~~~~~~~~~~~~~~~~~~~ + +The monitor understands integers expressions for every integer argument. +You can use register names to get the value of specifics CPU registers +by prefixing them with *$*.
docs/system/mux-chardev.rst new file +32 -0
@@ -0,0 +1,32 @@ +.. _mux_005fkeys: + +Keys in the character backend multiplexer +----------------------------------------- + +During emulation, if you are using a character backend multiplexer +(which is the default if you are using ``-nographic``) then several +commands are available via an escape sequence. These key sequences all +start with an escape character, which is Ctrl-a by default, but can be +changed with ``-echr``. The list below assumes you're using the default. + +Ctrl-a h + Print this help + +Ctrl-a x + Exit emulator + +Ctrl-a s + Save disk data back to file (if -snapshot) + +Ctrl-a t + Toggle console timestamps + +Ctrl-a b + Send break (magic sysrq in Linux) + +Ctrl-a c + Rotate between the frontends connected to the multiplexer (usually + this switches between the monitor and the console) + +Ctrl-a Ctrl-a + Send the escape character to the frontend
docs/system/net.rst new file +100 -0
100 lines not on this page · raw message
docs/system/quickstart.rst new file +13 -0
@@ -0,0 +1,13 @@ +.. _pcsys_005fquickstart: + +Quick Start +----------- + +Download and uncompress a PC hard disk image with Linux installed (e.g. +``linux.img``) and type: + +.. parsed-literal:: + + |qemu_system| linux.img + +Linux should boot and give you a prompt.
docs/system/target-arm.rst new file +227 -0
227 lines not on this page · raw message
docs/system/target-i386.rst new file +84 -0
84 lines not on this page · raw message
docs/system/target-m68k.rst new file +32 -0
@@ -0,0 +1,32 @@ +.. _ColdFire-System-emulator: + +ColdFire System emulator +------------------------ + +Use the executable ``qemu-system-m68k`` to simulate a ColdFire machine. +The emulator is able to boot a uClinux kernel. + +The M5208EVB emulation includes the following devices: + +- MCF5208 ColdFire V2 Microprocessor (ISA A+ with EMAC). + +- Three Two on-chip UARTs. + +- Fast Ethernet Controller (FEC) + +The AN5206 emulation includes the following devices: + +- MCF5206 ColdFire V2 Microprocessor. + +- Two on-chip UARTs. + +The following options are specific to the ColdFire emulation: + +``-semihosting`` + Enable semihosting syscall emulation. + + On M68K this implements the \"ColdFire GDB\" interface used by + libgloss. + + Note that this allows guest direct access to the host filesystem, so + should only be used with trusted guest OS.
docs/system/target-mips.rst new file +120 -0
120 lines not on this page · raw message
docs/system/target-ppc.rst new file +61 -0
61 lines not on this page · raw message
docs/system/target-sparc.rst new file +81 -0
81 lines not on this page · raw message
docs/system/target-sparc64.rst new file +49 -0
49 lines not on this page · raw message
docs/system/target-xtensa.rst new file +39 -0
@@ -0,0 +1,39 @@ +.. _Xtensa-System-emulator: + +Xtensa System emulator +---------------------- + +Two executables cover simulation of both Xtensa endian options, +``qemu-system-xtensa`` and ``qemu-system-xtensaeb``. Two different +machine types are emulated: + +- Xtensa emulator pseudo board \"sim\" + +- Avnet LX60/LX110/LX200 board + +The sim pseudo board emulation provides an environment similar to one +provided by the proprietary Tensilica ISS. It supports: + +- A range of Xtensa CPUs, default is the DC232B + +- Console and filesystem access via semihosting calls + +The Avnet LX60/LX110/LX200 emulation supports: + +- A range of Xtensa CPUs, default is the DC232B + +- 16550 UART + +- OpenCores 10/100 Mbps Ethernet MAC + +The following options are specific to the Xtensa emulation: + +``-semihosting`` + Enable semihosting syscall emulation. + + Xtensa semihosting provides basic file IO calls, such as + open/read/write/seek/select. Tensilica baremetal libc for ISS and + linux platform \"sim\" use this interface. + + Note that this allows guest direct access to the host filesystem, so + should only be used with trusted guest OS.
docs/system/targets.rst new file +19 -0
@@ -0,0 +1,19 @@ +QEMU System Emulator Targets +============================ + +QEMU is a generic emulator and it emulates many machines. Most of the +options are similar for all machines. Specific information about the +various targets are mentioned in the following sections. + +Contents: + +.. toctree:: + + target-i386 + target-ppc + target-sparc + target-sparc64 + target-mips + target-arm + target-m68k + target-xtensa
docs/system/tls.rst new file +328 -0
328 lines not on this page · raw message
docs/system/usb.rst new file +137 -0
137 lines not on this page · raw message
docs/system/vnc-security.rst new file +202 -0
202 lines not on this page · raw message
Signature · 1 line
2.20.1
[PULL 25/33] scripts/hxtool-conv: Archive script used in qemu-options.hx conversion
In reply to Peter MaydellThis commit archives the perl script used to do conversion of the STEXI/ETEXI blocks in qemu-options.hx. (The other .hx files were manually converted, but qemu-options.hx is complicated enough that I felt I needed some scripting.)
Message-id: [email protected]
--- scripts/hxtool-conv.pl | 137 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 137 insertions(+) create mode 100755 scripts/hxtool-conv.pl
scripts/hxtool-conv.pl new file +137 -0
@@ -0,0 +1,137 @@ +#!/usr/bin/perl -w +# +# Script to convert .hx file STEXI/ETEXI blocks to SRST/ERST +# +# Copyright (C) 2020 Linaro +# +# This work is licensed under the terms of the GNU GPL, version 2 or +# (at your option) any later version. See the COPYING file in the +# top-level directory. + +# This script was only ever intended as a one-off conversion operation. +# Please excuse the places where it is a bit hacky. +# Some manual intervention after the conversion is expected, as are +# some warnings from makeinfo. +# Warning: this script is not idempotent: don't try to run it on +# a .hx file that already has SRST/ERST sections. + +# Expected usage: +# scripts/hxtool-conv.pl file.hx > file.hx.new + +use utf8; + +my $reading_texi = 0; +my $texiblock = ''; +my @tables = (); + +sub update_tables($) { + my ($texi) = @_; + # Update our list of open table directives: every @table + # line in the texi fragment is added to the list, and every + # @end table line means we remove an entry from the list. + # If this fragment had a completely self contained table with + # both the @table and @end table lines, this will be a no-op. + foreach (split(/\n/, $texi)) { + push @tables, $_ if /^\@table/; + pop @tables if /^\@end table/; + } +} + +sub only_table_directives($) { + # Return true if every line in the fragment is a start or end table directive + my ($texi) = @_; + foreach (split(/\n/, $texi)) { + return 0 unless /^\@table/ or /^\@end table/; + } + return 1; +} + +sub output_rstblock($) { + # Write the output to /tmp/frag.texi, wrapped in whatever current @table + # lines we need. + my ($texi) = @_; + + # As a special case, if this fragment is only table directives and + # nothing else, update our set of open table directives but otherwise + # ignore it. This avoids emitting an empty SRST/ERST block. + if (only_table_directives($texi)) { + update_tables($texi); + return; + } + + open(my $fragfh, '>', '/tmp/frag.texi'); + # First output the currently active set of open table directives + print $fragfh join("\n", @tables); + # Next, update our list of open table directives. + # We need to do this before we emit the closing table directives + # so that we emit the right number if this fragment had an + # unbalanced set of directives. + update_tables($texi); + # Then emit the texi fragment itself. + print $fragfh "\n$texi\n"; + # Finally, add the necessary closing table directives. + print $fragfh "\@end table\n" x scalar @tables; + close $fragfh; + + # Now invoke makeinfo/pandoc on it and slurp the results into a string + open(my $fh, '-|', "makeinfo --force -o - --docbook " + . "-D 'qemu_system_x86 QEMU_SYSTEM_X86_MACRO' " + . "-D 'qemu_system QEMU_SYSTEM_MACRO' /tmp/frag.texi " + . " | pandoc -f docbook -t rst") + or die "can't start makeinfo/pandoc: $!"; + + binmode $fh, ':encoding(utf8)'; + + print "SRST\n"; + + # Slurp the whole thing into a string so we can do multiline + # string matches on it. + my $rst = do { + local $/ = undef; + <$fh>; + }; + $rst =~ s/^- − /- /gm; + $rst =~ s/“/"/gm; + $rst =~ s/”/"/gm; + $rst =~ s/‘/'/gm; + $rst =~ s/’/'/gm; + $rst =~ s/QEMU_SYSTEM_MACRO/|qemu_system|/g; + $rst =~ s/QEMU_SYSTEM_X86_MACRO/|qemu_system_x86|/g; + $rst =~ s/(?=::\n\n +\|qemu)/.. parsed-literal/g; + $rst =~ s/:\n\n::$/::/gm; + + # Fix up the invalid reference format makeinfo/pandoc emit: + # `Some string here <#anchorname>`__ + # should be: + # :ref:`anchorname` + $rst =~ s/\`[^<`]+\<\#([^>]+)\>\`__/:ref:`$1`/gm; + print $rst; + + close $fh or die "error on close: $!"; + print "ERST\n"; +} + +# Read the whole .hx input file. +while (<>) { + # Always print the current line + print; + if (/STEXI/) { + $reading_texi = 1; + $texiblock = ''; + next; + } + if (/ETEXI/) { + $reading_texi = 0; + # dump RST version of block + output_rstblock($texiblock); + next; + } + if ($reading_texi) { + # Accumulate the texi into a string + # but drop findex entries as they will confuse makeinfo + next if /^\@findex/; + $texiblock .= $_; + } +} + +die "Unexpectedly still in texi block at EOF" if $reading_texi;
Signature · 1 line
2.20.1
[PULL 30/33] ui/cocoa.m: Update documentation file and pathname
In reply to Peter MaydellWe want to stop generating the old qemu-doc.html; first we must update places that refer to it so they instead go to our top level index.html documentation landing page. The Cocoa UI has a menu option to bring up the documentation; make it point to the new top level index.html instead.
Message-id: [email protected]
--- ui/cocoa.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
ui/cocoa.m +2 -2
@@ -1174,7 +1174,7 @@ QemuCocoaView *cocoaView; - (void) openDocumentation: (NSString *) filename { /* Where to look for local files */ - NSString *path_array[] = {@"../share/doc/qemu/", @"../doc/qemu/", @"../"}; + NSString *path_array[] = {@"../share/doc/qemu/", @"../doc/qemu/", @"../docs/"}; NSString *full_file_path; /* iterate thru the possible paths until the file is found */
@@ -1198,7 +1198,7 @@ QemuCocoaView *cocoaView; { COCOA_DEBUG("QemuCocoaAppController: showQEMUDoc\n"); - [self openDocumentation: @"qemu-doc.html"]; + [self openDocumentation: @"index.html"]; } /* Stretches video to fit host monitor size */
Signature · 1 line
2.20.1
[PULL 20/33] hmp-commands.hx: Add rST documentation fragments
In reply to Peter MaydellAdd the rST versions of the documentation fragments. Once we've converted fully from Texinfo to rST we can remove the ETEXI fragments; for the moment we need both.
Since the only consumer of the hmp-commands hxtool documentation is the HTML manual, all we need to do for the monitor command documentation to appear in the Sphinx system manual is add the one line that invokes the hxtool extension on the .hx file.
Message-id: [email protected]
--- Makefile | 2 +- docs/system/monitor.rst | 10 +- hmp-commands.hx | 688 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 698 insertions(+), 2 deletions(-)
Makefile +1 -1
@@ -1071,7 +1071,7 @@ $(MANUAL_BUILDDIR)/interop/index.html: $(call manual-deps,interop) $(MANUAL_BUILDDIR)/specs/index.html: $(call manual-deps,specs) $(call build-manual,specs,html) -$(MANUAL_BUILDDIR)/system/index.html: $(call manual-deps,system) +$(MANUAL_BUILDDIR)/system/index.html: $(call manual-deps,system) $(SRC_PATH)/hmp-commands.hx $(call build-manual,system,html) $(MANUAL_BUILDDIR)/tools/index.html: $(call manual-deps,tools) $(SRC_PATH)/qemu-img-cmds.hx $(SRC_PATH)/docs/qemu-option-trace.rst.inc
docs/system/monitor.rst +9 -1
@@ -14,8 +14,16 @@ You can use it to: - Inspect the VM state without an external debugger. +Commands +~~~~~~~~ + +The following commands are available: + +.. hxtool-doc:: hmp-commands.hx + .. - The commands section goes here once it's converted from Texinfo to RST. + TODO: convert and reference hmp-commands-info.hx + Integer expressions ~~~~~~~~~~~~~~~~~~~
hmp-commands.hx +688 -0
1,360 lines not on this page · raw message
Signature · 1 line
2.20.1
[PULL 31/33] docs: Stop building qemu-doc
In reply to Peter MaydellStop building the old texinfo qemu-doc; all its contents are now available in the Sphinx-generated manuals and manpages.
Message-id: [email protected]
--- docs/specs/ivshmem-spec.txt | 4 ++-- Makefile | 39 ++++--------------------------------- .gitignore | 3 --- docs/index.html.in | 1 - 4 files changed, 6 insertions(+), 41 deletions(-)
docs/specs/ivshmem-spec.txt +2 -2
@@ -38,8 +38,8 @@ There are two basic configurations: Interrupts are message-signaled (MSI-X). vectors=N configures the number of vectors to use. -For more details on ivshmem device properties, see The QEMU Emulator -User Documentation (qemu-doc.*). +For more details on ivshmem device properties, see the QEMU Emulator +user documentation. == The ivshmem PCI device's guest interface ==
Makefile +4 -35
@@ -344,7 +344,6 @@ MANUAL_BUILDDIR := docs endif ifdef BUILD_DOCS -DOCS=qemu-doc.html qemu-doc.txt DOCS+=$(MANUAL_BUILDDIR)/system/qemu.1 DOCS+=$(MANUAL_BUILDDIR)/tools/qemu-img.1 DOCS+=$(MANUAL_BUILDDIR)/tools/qemu-nbd.8
@@ -768,10 +767,6 @@ distclean: clean rm -f $(SUBDIR_DEVICES_MAK) rm -f po/*.mo tests/qemu-iotests/common.env rm -f roms/seabios/config.mak roms/vgabios/config.mak - rm -f qemu-doc.info qemu-doc.aux qemu-doc.cp qemu-doc.cps - rm -f qemu-doc.fn qemu-doc.fns qemu-doc.info qemu-doc.ky qemu-doc.kys - rm -f qemu-doc.log qemu-doc.pdf qemu-doc.pg qemu-doc.toc qemu-doc.tp - rm -f qemu-doc.vr qemu-doc.txt rm -f qemu-plugins-ld.symbols qemu-plugins-ld64.symbols rm -f config.log rm -f linux-headers/asm
@@ -851,8 +846,6 @@ install-sphinxdocs: sphinxdocs install-doc: $(DOCS) install-sphinxdocs $(INSTALL_DIR) "$(DESTDIR)$(qemu_docdir)" $(INSTALL_DATA) $(MANUAL_BUILDDIR)/index.html "$(DESTDIR)$(qemu_docdir)" - $(INSTALL_DATA) qemu-doc.html "$(DESTDIR)$(qemu_docdir)" - $(INSTALL_DATA) qemu-doc.txt "$(DESTDIR)$(qemu_docdir)" $(INSTALL_DATA) docs/interop/qemu-qmp-ref.html "$(DESTDIR)$(qemu_docdir)" $(INSTALL_DATA) docs/interop/qemu-qmp-ref.txt "$(DESTDIR)$(qemu_docdir)" ifdef CONFIG_POSIX
@@ -1110,34 +1103,10 @@ docs/interop/qemu-qmp-qapi.texi: qapi/qapi-doc.texi docs/interop/qemu-ga-qapi.texi: qga/qapi-generated/qga-qapi-doc.texi @cp -p $< $@ -html: qemu-doc.html docs/interop/qemu-qmp-ref.html docs/interop/qemu-ga-ref.html sphinxdocs -info: qemu-doc.info docs/interop/qemu-qmp-ref.info docs/interop/qemu-ga-ref.info -pdf: qemu-doc.pdf docs/interop/qemu-qmp-ref.pdf docs/interop/qemu-ga-ref.pdf -txt: qemu-doc.txt docs/interop/qemu-qmp-ref.txt docs/interop/qemu-ga-ref.txt - -qemu-doc.html qemu-doc.info qemu-doc.pdf qemu-doc.txt: \ - qemu-options.texi \ - qemu-monitor.texi \ - qemu-monitor-info.texi \ - docs/system/quickstart.texi \ - docs/system/invocation.texi \ - docs/system/keys.texi \ - docs/system/mux-chardev.texi \ - docs/system/monitor.texi \ - docs/system/cpu-models-x86.texi \ - docs/system/images.texi \ - docs/system/net.texi \ - docs/system/usb.texi \ - docs/system/ivshmem.texi \ - docs/system/linuxboot.texi \ - docs/system/vnc-security.texi \ - docs/system/tls.texi \ - docs/system/gdb.texi \ - docs/system/build-platforms.texi \ - docs/system/license.texi \ - docs/system/cpu-models-x86.texi docs/system/cpu-models-mips.texi \ - docs/system/deprecated.texi docs/system/qemu-option-trace.texi \ - docs/system/security.texi +html: docs/interop/qemu-qmp-ref.html docs/interop/qemu-ga-ref.html sphinxdocs +info: docs/interop/qemu-qmp-ref.info docs/interop/qemu-ga-ref.info +pdf: docs/interop/qemu-qmp-ref.pdf docs/interop/qemu-ga-ref.pdf +txt: docs/interop/qemu-qmp-ref.txt docs/interop/qemu-ga-ref.txt docs/interop/qemu-ga-ref.dvi docs/interop/qemu-ga-ref.html \ docs/interop/qemu-ga-ref.info docs/interop/qemu-ga-ref.pdf \
.gitignore +0 -3
@@ -46,9 +46,6 @@ !/qapi/qapi-visit-core.c /qapi/qapi-visit.[ch] /qapi/qapi-doc.texi -/qemu-doc.html -/qemu-doc.info -/qemu-doc.txt /qemu-edid /qemu-img /qemu-nbd
docs/index.html.in +0 -1
@@ -7,7 +7,6 @@ <body> <h1>QEMU @@VERSION@@ Documentation</h1> <ul> - <li><a href="qemu-doc.html">User Documentation</a></li> <li><a href="qemu-qmp-ref.html">QMP Reference Manual</a></li> <li><a href="qemu-ga-ref.html">Guest Agent Protocol Reference</a></li> <li><a href="interop/index.html">System Emulation Management and Interoperability Guide</a></li>
Signature · 1 line
2.20.1
[PULL 26/33] qemu-options.hx: Add rST documentation fragments
In reply to Peter MaydellAdd the rST versions of the documentation fragments to qemu-options.hx.
This is entirely autogenerated using scripts/hxtool-conv.pl. The result is not quite valid rST in all places; the following commit will have the manual adjustments needed.
--- qemu-options.hx | 4020 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 4020 insertions(+)
qemu-options.hx +4020 -0
@@ -18,6 +18,10 @@ STEXI @findex -h Display help and exit ETEXI +SRST +``-h`` + Display help and exit +ERST DEF("version", 0, QEMU_OPTION_version, "-version display version information and exit\n", QEMU_ARCH_ALL)
@@ -26,6 +30,10 @@ STEXI @findex -version Display version information and exit ETEXI +SRST +``-version`` + Display version information and exit +ERST DEF("machine", HAS_ARG, QEMU_OPTION_machine, \ "-machine [type=]name[,prop[=value][,...]]\n"
@@ -100,6 +108,73 @@ Enables or disables ACPI Heterogeneous Memory Attribute Table (HMAT) support. The default is off. @end table ETEXI +SRST +``-machine [type=]name[,prop=value[,...]]`` + Select the emulated machine by name. Use ``-machine help`` to list + available machines. + + For architectures which aim to support live migration compatibility + across releases, each release will introduce a new versioned machine + type. For example, the 2.8.0 release introduced machine types + "pc-i440fx-2.8" and "pc-q35-2.8" for the x86\_64/i686 architectures. + + To allow live migration of guests from QEMU version 2.8.0, to QEMU + version 2.9.0, the 2.9.0 version must support the "pc-i440fx-2.8" + and "pc-q35-2.8" machines too. To allow users live migrating VMs to + skip multiple intermediate releases when upgrading, new releases of + QEMU will support machine types from many previous versions. + + Supported machine properties are: + + ``accel=accels1[:accels2[:...]]`` + This is used to enable an accelerator. Depending on the target + architecture, kvm, xen, hax, hvf, whpx or tcg can be available. + By default, tcg is used. If there is more than one accelerator + specified, the next one is used if the previous one fails to + initialize. + + ``vmport=on|off|auto`` + Enables emulation of VMWare IO port, for vmmouse etc. auto says + to select the value based on accel. For accel=xen the default is + off otherwise the default is on. + + ``dump-guest-core=on|off`` + Include guest memory in a core dump. The default is on. + + ``mem-merge=on|off`` + Enables or disables memory merge support. This feature, when + supported by the host, de-duplicates identical memory pages + among VMs instances (enabled by default). + + ``aes-key-wrap=on|off`` + Enables or disables AES key wrapping support on s390-ccw hosts. + This feature controls whether AES wrapping keys will be created + to allow execution of AES cryptographic functions. The default + is on. + + ``dea-key-wrap=on|off`` + Enables or disables DEA key wrapping support on s390-ccw hosts. + This feature controls whether DEA wrapping keys will be created + to allow execution of DEA cryptographic functions. The default + is on. + + ``nvdimm=on|off`` + Enables or disables NVDIMM support. The default is off. + + ``enforce-config-section=on|off`` + If ``enforce-config-section`` is set to on, force migration code + to send configuration section even if the machine-type sets the + ``migration.send-configuration`` property to off. NOTE: this + parameter is deprecated. Please use ``-global`` + ``migration.send-configuration``\ =on\|off instead. + + ``memory-encryption=`` + Memory encryption object to use. The default is none. + + ``hmat=on|off`` + Enables or disables ACPI Heterogeneous Memory Attribute Table + (HMAT) support. The default is off. +ERST HXCOMM Deprecated by -machine DEF("M", HAS_ARG, QEMU_OPTION_M, "", QEMU_ARCH_ALL)
@@ -111,6 +186,11 @@ STEXI @findex -cpu Select CPU model (@code{-cpu help} for list and additional feature selection) ETEXI +SRST +``-cpu model`` + Select CPU model (``-cpu help`` for list and additional feature + selection) +ERST DEF("accel", HAS_ARG, QEMU_OPTION_accel, "-accel [accel=]accelerator[,prop[=value][,...]]\n"
@@ -147,6 +227,40 @@ is to enable multi-threading where both the back-end and front-ends support it a no incompatible TCG features have been enabled (e.g. icount/replay). @end table ETEXI +SRST +``-accel name[,prop=value[,...]]`` + This is used to enable an accelerator. Depending on the target + architecture, kvm, xen, hax, hvf, whpx or tcg can be available. By + default, tcg is used. If there is more than one accelerator + specified, the next one is used if the previous one fails to + initialize. + + ``igd-passthru=on|off`` + When Xen is in use, this option controls whether Intel + integrated graphics devices can be passed through to the guest + (default=off) + + ``kernel-irqchip=on|off|split`` + Controls KVM in-kernel irqchip support. The default is full + acceleration of the interrupt controllers. On x86, split irqchip + reduces the kernel attack surface, at a performance cost for + non-MSI interrupts. Disabling the in-kernel irqchip completely + is not recommended except for debugging purposes. + + ``kvm-shadow-mem=size`` + Defines the size of the KVM shadow MMU. + + ``tb-size=n`` + Controls the size (in MiB) of the TCG translation block cache. + + ``thread=single|multi`` + Controls number of TCG threads. When the TCG is multi-threaded + there will be one thread per vCPU therefor taking advantage of + additional host cores. The default is to enable multi-threading + where both the back-end and front-ends support it and no + incompatible TCG features have been enabled (e.g. + icount/replay). +ERST DEF("smp", HAS_ARG, QEMU_OPTION_smp, "-smp [cpus=]n[,maxcpus=cpus][,cores=cores][,threads=threads][,dies=dies][,sockets=sockets]\n"
@@ -170,6 +284,17 @@ per cores, the number of @var{dies} per packages and the total number of If any on the three values is given, the total number of CPUs @var{n} can be omitted. @var{maxcpus} specifies the maximum number of hotpluggable CPUs. ETEXI +SRST +``-smp [cpus=]n[,cores=cores][,threads=threads][,dies=dies][,sockets=sockets][,maxcpus=maxcpus]`` + Simulate an SMP system with n CPUs. On the PC target, up to 255 CPUs + are supported. On Sparc32 target, Linux limits the number of usable + CPUs to 4. For the PC target, the number of cores per die, the + number of threads per cores, the number of dies per packages and the + total number of sockets can be specified. Missing values will be + computed. If any on the three values is given, the total number of + CPUs n can be omitted. maxcpus specifies the maximum number of + hotpluggable CPUs. +ERST DEF("numa", HAS_ARG, QEMU_OPTION_numa, "-numa node[,mem=size][,cpus=firstcpu[-lastcpu]][,nodeid=node][,initiator=node]\n"
@@ -322,6 +447,152 @@ cache, size is 10KB, policy is write-back, the cache Line size is 8 bytes: @end example ETEXI +SRST +``-numa node[,mem=size][,cpus=firstcpu[-lastcpu]][,nodeid=node][,initiator=initiator]``; \ ``-numa node[,memdev=id][,cpus=firstcpu[-lastcpu]][,nodeid=node][,initiator=initiator]``; \ ``-numa dist,src=source,dst=destination,val=distance``; \ ``-numa cpu,node-id=node[,socket-id=x][,core-id=y][,thread-id=z]``; \ ``-numa hmat-lb,initiator=node,target=node,hierarchy=hierarchy,data-type=tpye[,latency=lat][,bandwidth=bw]``; \ ``-numa hmat-cache,node-id=node,size=size,level=level[,associativity=str][,policy=str][,line=size]`` + Define a NUMA node and assign RAM and VCPUs to it. Set the NUMA + distance from a source node to a destination node. Set the ACPI + Heterogeneous Memory Attributes for the given nodes. + + Legacy VCPU assignment uses '\ ``cpus``\ ' option where firstcpu and + lastcpu are CPU indexes. Each '\ ``cpus``\ ' option represent a + contiguous range of CPU indexes (or a single VCPU if lastcpu is + omitted). A non-contiguous set of VCPUs can be represented by + providing multiple '\ ``cpus``\ ' options. If '\ ``cpus``\ ' is + omitted on all nodes, VCPUs are automatically split between them. + + For example, the following option assigns VCPUs 0, 1, 2 and 5 to a + NUMA node: + + :: + + -numa node,cpus=0-2,cpus=5 + + '\ ``cpu``\ ' option is a new alternative to '\ ``cpus``\ ' option + which uses '\ ``socket-id|core-id|thread-id``\ ' properties to + assign CPU objects to a node using topology layout properties of + CPU. The set of properties is machine specific, and depends on used + machine type/'\ ``smp``\ ' options. It could be queried with + '\ ``hotpluggable-cpus``\ ' monitor command. '\ ``node-id``\ ' + property specifies node to which CPU object will be assigned, it's + required for node to be declared with '\ ``node``\ ' option before + it's used with '\ ``cpu``\ ' option. + + For example: + + :: + + -M pc \ + -smp 1,sockets=2,maxcpus=2 \ + -numa node,nodeid=0 -numa node,nodeid=1 \ + -numa cpu,node-id=0,socket-id=0 -numa cpu,node-id=1,socket-id=1 + + '\ ``mem``\ ' assigns a given RAM amount to a node. '\ ``memdev``\ ' + assigns RAM from a given memory backend device to a node. If + '\ ``mem``\ ' and '\ ``memdev``\ ' are omitted in all nodes, RAM is + split equally between them. + + '\ ``mem``\ ' and '\ ``memdev``\ ' are mutually exclusive. + Furthermore, if one node uses '\ ``memdev``\ ', all of them have to + use it. + + '\ ``initiator``\ ' is an additional option that points to an + initiator NUMA node that has best performance (the lowest latency or + largest bandwidth) to this NUMA node. Note that this option can be + set only when the machine property 'hmat' is set to 'on'. + + Following example creates a machine with 2 NUMA nodes, node 0 has + CPU. node 1 has only memory, and its initiator is node 0. Note that + because node 0 has CPU, by default the initiator of node 0 is itself + and must be itself. + + :: + + -machine hmat=on \ + -m 2G,slots=2,maxmem=4G \ + -object memory-backend-ram,size=1G,id=m0 \ + -object memory-backend-ram,size=1G,id=m1 \ + -numa node,nodeid=0,memdev=m0 \ + -numa node,nodeid=1,memdev=m1,initiator=0 \ + -smp 2,sockets=2,maxcpus=2 \ + -numa cpu,node-id=0,socket-id=0 \ + -numa cpu,node-id=0,socket-id=1 + + source and destination are NUMA node IDs. distance is the NUMA + distance from source to destination. The distance from a node to + itself is always 10. If any pair of nodes is given a distance, then + all pairs must be given distances. Although, when distances are only + given in one direction for each pair of nodes, then the distances in + the opposite directions are assumed to be the same. If, however, an + asymmetrical pair of distances is given for even one node pair, then + all node pairs must be provided distance values for both directions, + even when they are symmetrical. When a node is unreachable from + another node, set the pair's distance to 255. + + Note that the -``numa`` option doesn't allocate any of the specified + resources, it just assigns existing resources to NUMA nodes. This + means that one still has to use the ``-m``, ``-smp`` options to + allocate RAM and VCPUs respectively. + + Use '\ ``hmat-lb``\ ' to set System Locality Latency and Bandwidth + Information between initiator and target NUMA nodes in ACPI + Heterogeneous Attribute Memory Table (HMAT). Initiator NUMA node can + create memory requests, usually it has one or more processors. + Target NUMA node contains addressable memory. + + In '\ ``hmat-lb``\ ' option, node are NUMA node IDs. hierarchy is + the memory hierarchy of the target NUMA node: if hierarchy is + 'memory', the structure represents the memory performance; if + hierarchy is 'first-level\|second-level\|third-level', this + structure represents aggregated performance of memory side caches + for each domain. type of 'data-type' is type of data represented by + this structure instance: if 'hierarchy' is 'memory', 'data-type' is + 'access\|read\|write' latency or 'access\|read\|write' bandwidth of + the target memory; if 'hierarchy' is + 'first-level\|second-level\|third-level', 'data-type' is + 'access\|read\|write' hit latency or 'access\|read\|write' hit + bandwidth of the target memory side cache. + + lat is latency value in nanoseconds. bw is bandwidth value, the + possible value and units are NUM[M\|G\|T], mean that the bandwidth + value are NUM byte per second (or MB/s, GB/s or TB/s depending on + used suffix). Note that if latency or bandwidth value is 0, means + the corresponding latency or bandwidth information is not provided. + + In '\ ``hmat-cache``\ ' option, node-id is the NUMA-id of the memory + belongs. size is the size of memory side cache in bytes. level is + the cache level described in this structure, note that the cache + level 0 should not be used with '\ ``hmat-cache``\ ' option. + associativity is the cache associativity, the possible value is + 'none/direct(direct-mapped)/complex(complex cache indexing)'. policy + is the write policy. line is the cache Line size in bytes. + + For example, the following options describe 2 NUMA nodes. Node 0 has + 2 cpus and a ram, node 1 has only a ram. The processors in node 0 + access memory in node 0 with access-latency 5 nanoseconds, + access-bandwidth is 200 MB/s; The processors in NUMA node 0 access + memory in NUMA node 1 with access-latency 10 nanoseconds, + access-bandwidth is 100 MB/s. And for memory side cache information, + NUMA node 0 and 1 both have 1 level memory cache, size is 10KB, + policy is write-back, the cache Line size is 8 bytes: + + :: + + -machine hmat=on \ + -m 2G \ + -object memory-backend-ram,size=1G,id=m0 \ + -object memory-backend-ram,size=1G,id=m1 \ + -smp 2 \ + -numa node,nodeid=0,memdev=m0 \ + -numa node,nodeid=1,memdev=m1,initiator=0 \ + -numa cpu,node-id=0,socket-id=0 \ + -numa cpu,node-id=0,socket-id=1 \ + -numa hmat-lb,initiator=0,target=0,hierarchy=memory,data-type=access-latency,latency=5 \ + -numa hmat-lb,initiator=0,target=0,hierarchy=memory,data-type=access-bandwidth,bandwidth=200M \ + -numa hmat-lb,initiator=0,target=1,hierarchy=memory,data-type=access-latency,latency=10 \ + -numa hmat-lb,initiator=0,target=1,hierarchy=memory,data-type=access-bandwidth,bandwidth=100M \ + -numa hmat-cache,node-id=0,size=10K,level=1,associativity=direct,policy=write-back,line=8 \ + -numa hmat-cache,node-id=1,size=10K,level=1,associativity=direct,policy=write-back,line=8 +ERST DEF("add-fd", HAS_ARG, QEMU_OPTION_add_fd, "-add-fd fd=fd,set=set[,opaque=opaque]\n"
@@ -350,6 +621,33 @@ You can open an image using pre-opened file descriptors from an fd set: -drive file=/dev/fdset/2,index=0,media=disk @end example ETEXI +SRST +``-add-fd fd=fd,set=set[,opaque=opaque]`` + Add a file descriptor to an fd set. Valid options are: + + ``fd=fd`` + This option defines the file descriptor of which a duplicate is + added to fd set. The file descriptor cannot be stdin, stdout, or + stderr. + + ``set=set`` + This option defines the ID of the fd set to add the file + descriptor to. + + ``opaque=opaque`` + This option defines a free-form string that can be used to + describe fd. + + You can open an image using pre-opened file descriptors from an fd + set: + + .. parsed-literal:: + + |qemu_system| \ + -add-fd fd=3,set=2,opaque="rdwr:/path/to/file" \ + -add-fd fd=4,set=2,opaque="rdonly:/path/to/file" \ + -drive file=/dev/fdset/2,index=0,media=disk +ERST DEF("set", HAS_ARG, QEMU_OPTION_set, "-set group.id.arg=value\n"
@@ -360,6 +658,10 @@ STEXI @findex -set Set parameter @var{arg} for item @var{id} of type @var{group} ETEXI +SRST +``-set group.id.arg=value`` + Set parameter arg for item id of type group +ERST DEF("global", HAS_ARG, QEMU_OPTION_global, "-global driver.property=value\n"
@@ -384,6 +686,23 @@ created automatically and set properties on it, use -@option{device}. driver=@var{driver},property=@var{prop},value=@var{value}. The longhand syntax works even when @var{driver} contains a dot. ETEXI +SRST +``-global driver.prop=value``; \ ``-global driver=driver,property=property,value=value`` + Set default value of driver's property prop to value, e.g.: + + .. parsed-literal:: + + |qemu_system_x86| -global ide-hd.physical_block_size=4096 disk-image.img + + In particular, you can use this to set driver properties for devices + which are created automatically by the machine model. To create a + device which is not created automatically and set properties on it, + use -``device``. + + -global driver.prop=value is shorthand for -global + driver=driver,property=prop,value=value. The longhand syntax works + even when driver contains a dot. +ERST DEF("boot", HAS_ARG, QEMU_OPTION_boot, "-boot [order=drives][,once=drives][,menu=on|off]\n"
@@ -437,6 +756,50 @@ bootindex options. The default is non-strict boot. Note: The legacy format '-boot @var{drives}' is still supported but its use is discouraged as it may be removed from future versions. ETEXI +SRST +``-boot [order=drives][,once=drives][,menu=on|off][,splash=sp_name][,splash-time=sp_time][,reboot-timeout=rb_timeout][,strict=on|off]`` + Specify boot order drives as a string of drive letters. Valid drive + letters depend on the target architecture. The x86 PC uses: a, b + (floppy 1 and 2), c (first hard disk), d (first CD-ROM), n-p + (Etherboot from network adapter 1-4), hard disk boot is the default. + To apply a particular boot order only on the first startup, specify + it via ``once``. Note that the ``order`` or ``once`` parameter + should not be used together with the ``bootindex`` property of + devices, since the firmware implementations normally do not support + both at the same time. + + Interactive boot menus/prompts can be enabled via ``menu=on`` as far + as firmware/BIOS supports them. The default is non-interactive boot. + + A splash picture could be passed to bios, enabling user to show it + as logo, when option splash=sp\_name is given and menu=on, If + firmware/BIOS supports them. Currently Seabios for X86 system + support it. limitation: The splash file could be a jpeg file or a + BMP file in 24 BPP format(true color). The resolution should be + supported by the SVGA mode, so the recommended is 320x240, 640x480, + 800x640. + + A timeout could be passed to bios, guest will pause for rb\_timeout + ms when boot failed, then reboot. If rb\_timeout is '-1', guest will + not reboot, qemu passes '-1' to bios by default. Currently Seabios + for X86 system support it. + + Do strict boot via ``strict=on`` as far as firmware/BIOS supports + it. This only effects when boot priority is changed by bootindex + options. The default is non-strict boot. + + :: + + # try to boot from network first, then from hard disk + |qemu_system_x86| -boot order=nc + # boot from CD-ROM first, switch back to default order after reboot + |qemu_system_x86| -boot once=d + # boot with a splash picture for 5 seconds. + |qemu_system_x86| -boot menu=on,splash=/root/boot.bmp,splash-time=5000 + + Note: The legacy format '-boot drives' is still supported but its + use is discouraged as it may be removed from future versions. +ERST DEF("m", HAS_ARG, QEMU_OPTION_m, "-m [size=]megs[,slots=n,maxmem=size]\n"
@@ -466,6 +829,25 @@ memory the guest can reach to 4GB: If @var{slots} and @var{maxmem} are not specified, memory hotplug won't be enabled and the guest startup RAM will never increase. ETEXI +SRST +``-m [size=]megs[,slots=n,maxmem=size]`` + Sets guest startup RAM size to megs megabytes. Default is 128 MiB. + Optionally, a suffix of "M" or "G" can be used to signify a value in + megabytes or gigabytes respectively. Optional pair slots, maxmem + could be used to set amount of hotpluggable memory slots and maximum + amount of memory. Note that maxmem must be aligned to the page size. + + For example, the following command-line sets the guest startup RAM + size to 1GB, creates 3 slots to hotplug additional memory and sets + the maximum memory the guest can reach to 4GB: + + .. parsed-literal:: + + |qemu_system| -m 1G,slots=3,maxmem=4G + + If slots and maxmem are not specified, memory hotplug won't be + enabled and the guest startup RAM will never increase. +ERST DEF("mem-path", HAS_ARG, QEMU_OPTION_mempath, "-mem-path FILE provide backing storage for guest RAM\n", QEMU_ARCH_ALL)
@@ -474,6 +856,10 @@ STEXI @findex -mem-path Allocate guest RAM from a temporarily created file in @var{path}. ETEXI +SRST +``-mem-path path`` + Allocate guest RAM from a temporarily created file in path. +ERST DEF("mem-prealloc", 0, QEMU_OPTION_mem_prealloc, "-mem-prealloc preallocate guest memory (use with -mem-path)\n",
@@ -483,6 +869,10 @@ STEXI @findex -mem-prealloc Preallocate memory when using -mem-path. ETEXI +SRST +``-mem-prealloc`` + Preallocate memory when using -mem-path. +ERST DEF("k", HAS_ARG, QEMU_OPTION_k, "-k language use keyboard layout (for example 'fr' for French)\n",
@@ -505,6 +895,24 @@ de en-us fi fr-be hr it lv nl-be pt sl tr The default is @code{en-us}. ETEXI +SRST +``-k language`` + Use keyboard layout language (for example ``fr`` for French). This + option is only needed where it is not easy to get raw PC keycodes + (e.g. on Macs, with some X11 servers or with a VNC or curses + display). You don't normally need to use it on PC/Linux or + PC/Windows hosts. + + The available layouts are: + + :: + + ar de-ch es fo fr-ca hu ja mk no pt-br sv + da en-gb et fr fr-ch is lt nl pl ru th + de en-us fi fr-be hr it lv nl-be pt sl tr + + The default is ``en-us``. +ERST HXCOMM Deprecated by -audiodev
@@ -517,6 +925,11 @@ STEXI Will show the -audiodev equivalent of the currently specified (deprecated) environment variables. ETEXI +SRST +``-audio-help`` + Will show the -audiodev equivalent of the currently specified + (deprecated) environment variables. +ERST DEF("audiodev", HAS_ARG, QEMU_OPTION_audiodev, "-audiodev [driver=]driver,id=id[,prop[=value][,...]]\n"
@@ -766,6 +1179,173 @@ Write recorded audio into the specified file. Default is @end table ETEXI +SRST +``-audiodev [driver=]driver,id=id[,prop[=value][,...]]`` + Adds a new audio backend driver identified by id. There are global + and driver specific properties. Some values can be set differently + for input and output, they're marked with ``in|out.``. You can set + the input's property with ``in.prop`` and the output's property with + ``out.prop``. For example: + + :: + + -audiodev alsa,id=example,in.frequency=44110,out.frequency=8000 + -audiodev alsa,id=example,out.channels=1 # leaves in.channels unspecified + + NOTE: parameter validation is known to be incomplete, in many cases + specifying an invalid option causes QEMU to print an error message + and continue emulation without sound. + + Valid global options are: + + ``id=identifier`` + Identifies the audio backend. + + ``timer-period=period`` + Sets the timer period used by the audio subsystem in + microseconds. Default is 10000 (10 ms). + + ``in|out.mixing-engine=on|off`` + Use QEMU's mixing engine to mix all streams inside QEMU and + convert audio formats when not supported by the backend. When + off, fixed-settings must be off too. Note that disabling this + option means that the selected backend must support multiple + streams and the audio formats used by the virtual cards, + otherwise you'll get no sound. It's not recommended to disable + this option unless you want to use 5.1 or 7.1 audio, as mixing + engine only supports mono and stereo audio. Default is on. + + ``in|out.fixed-settings=on|off`` + Use fixed settings for host audio. When off, it will change + based on how the guest opens the sound card. In this case you + must not specify frequency, channels or format. Default is on. + + ``in|out.frequency=frequency`` + Specify the frequency to use when using fixed-settings. Default + is 44100Hz. + + ``in|out.channels=channels`` + Specify the number of channels to use when using fixed-settings. + Default is 2 (stereo). + + ``in|out.format=format`` + Specify the sample format to use when using fixed-settings. + Valid values are: ``s8``, ``s16``, ``s32``, ``u8``, ``u16``, + ``u32``. Default is ``s16``. + + ``in|out.voices=voices`` + Specify the number of voices to use. Default is 1. + + ``in|out.buffer-length=usecs`` + Sets the size of the buffer in microseconds. + +``-audiodev none,id=id[,prop[=value][,...]]`` + Creates a dummy backend that discards all outputs. This backend has + no backend specific properties. + +``-audiodev alsa,id=id[,prop[=value][,...]]`` + Creates backend using the ALSA. This backend is only available on + Linux. + + ALSA specific options are: + + ``in|out.dev=device`` + Specify the ALSA device to use for input and/or output. Default + is ``default``. + + ``in|out.period-length=usecs`` + Sets the period length in microseconds. + + ``in|out.try-poll=on|off`` + Attempt to use poll mode with the device. Default is on. + + ``threshold=threshold`` + Threshold (in microseconds) when playback starts. Default is 0. + +``-audiodev coreaudio,id=id[,prop[=value][,...]]`` + Creates a backend using Apple's Core Audio. This backend is only + available on Mac OS and only supports playback. + + Core Audio specific options are: + + ``in|out.buffer-count=count`` + Sets the count of the buffers. + +``-audiodev dsound,id=id[,prop[=value][,...]]`` + Creates a backend using Microsoft's DirectSound. This backend is + only available on Windows and only supports playback. + + DirectSound specific options are: + + ``latency=usecs`` + Add extra usecs microseconds latency to playback. Default is + 10000 (10 ms). + +``-audiodev oss,id=id[,prop[=value][,...]]`` + Creates a backend using OSS. This backend is available on most + Unix-like systems. + + OSS specific options are: + + ``in|out.dev=device`` + Specify the file name of the OSS device to use. Default is + ``/dev/dsp``. + + ``in|out.buffer-count=count`` + Sets the count of the buffers. + + ``in|out.try-poll=on|of`` + Attempt to use poll mode with the device. Default is on. + + ``try-mmap=on|off`` + Try using memory mapped device access. Default is off. + + ``exclusive=on|off`` + Open the device in exclusive mode (vmix won't work in this + case). Default is off. + + ``dsp-policy=policy`` + Sets the timing policy (between 0 and 10, where smaller number + means smaller latency but higher CPU usage). Use -1 to use + buffer sizes specified by ``buffer`` and ``buffer-count``. This + option is ignored if you do not have OSS 4. Default is 5. + +``-audiodev pa,id=id[,prop[=value][,...]]`` + Creates a backend using PulseAudio. This backend is available on + most systems. + + PulseAudio specific options are: + + ``server=server`` + Sets the PulseAudio server to connect to. + + ``in|out.name=sink`` + Use the specified source/sink for recording/playback. + + ``in|out.latency=usecs`` + Desired latency in microseconds. The PulseAudio server will try + to honor this value but actual latencies may be lower or higher. + +``-audiodev sdl,id=id[,prop[=value][,...]]`` + Creates a backend using SDL. This backend is available on most + systems, but you should use your platform's native backend if + possible. This backend has no backend specific properties. + +``-audiodev spice,id=id[,prop[=value][,...]]`` + Creates a backend that sends audio through SPICE. This backend + requires ``-spice`` and automatically selected in that case, so + usually you can ignore this option. This backend has no backend + specific properties. + +``-audiodev wav,id=id[,prop[=value][,...]]`` + Creates a backend that writes audio to a WAV file. + + Backend specific options are: + + ``path=path`` + Write recorded audio into the specified file. Default is + ``qemu.wav``. +ERST DEF("soundhw", HAS_ARG, QEMU_OPTION_soundhw, "-soundhw c1,... enable audio support\n"
@@ -794,6 +1374,27 @@ require manually specifying clocking. modprobe i810_audio clocking=48000 @end example ETEXI +SRST +``-soundhw card1[,card2,...] or -soundhw all`` + Enable audio and selected sound hardware. Use 'help' to print all + available sound hardware. For example: + + .. parsed-literal:: + + |qemu_system_x86| -soundhw sb16,adlib disk.img + |qemu_system_x86| -soundhw es1370 disk.img + |qemu_system_x86| -soundhw ac97 disk.img + |qemu_system_x86| -soundhw hda disk.img + |qemu_system_x86| -soundhw all disk.img + |qemu_system_x86| -soundhw help + + Note that Linux's i810\_audio OSS kernel (for AC97) module might + require manually specifying clocking. + + :: + + modprobe i810_audio clocking=48000 +ERST DEF("device", HAS_ARG, QEMU_OPTION_device, "-device driver[,prop[=value][,...]]\n"
@@ -879,6 +1480,85 @@ Like the KCS interface, but defines a BT interface. The default port is 0xe4 and the default interrupt is 5. ETEXI +SRST +``-device driver[,prop[=value][,...]]`` + Add device driver. prop=value sets driver properties. Valid + properties depend on the driver. To get help on possible drivers and + properties, use ``-device help`` and ``-device driver,help``. + + Some drivers are: + +``-device ipmi-bmc-sim,id=id[,slave_addr=val][,sdrfile=file][,furareasize=val][,furdatafile=file][,guid=uuid]`` + Add an IPMI BMC. This is a simulation of a hardware management + interface processor that normally sits on a system. It provides a + watchdog and the ability to reset and power control the system. You + need to connect this to an IPMI interface to make it useful + + The IPMI slave address to use for the BMC. The default is 0x20. This + address is the BMC's address on the I2C network of management + controllers. If you don't know what this means, it is safe to ignore + it. + + ``id=id`` + The BMC id for interfaces to use this device. + + ``slave_addr=val`` + Define slave address to use for the BMC. The default is 0x20. + + ``sdrfile=file`` + file containing raw Sensor Data Records (SDR) data. The default + is none. + + ``fruareasize=val`` + size of a Field Replaceable Unit (FRU) area. The default is + 1024. + + ``frudatafile=file`` + file containing raw Field Replaceable Unit (FRU) inventory data. + The default is none. + + ``guid=uuid`` + value for the GUID for the BMC, in standard UUID format. If this + is set, get "Get GUID" command to the BMC will return it. + Otherwise "Get GUID" will return an error. + +``-device ipmi-bmc-extern,id=id,chardev=id[,slave_addr=val]`` + Add a connection to an external IPMI BMC simulator. Instead of + locally emulating the BMC like the above item, instead connect to an + external entity that provides the IPMI services. + + A connection is made to an external BMC simulator. If you do this, + it is strongly recommended that you use the "reconnect=" chardev + option to reconnect to the simulator if the connection is lost. Note + that if this is not used carefully, it can be a security issue, as + the interface has the ability to send resets, NMIs, and power off + the VM. It's best if QEMU makes a connection to an external + simulator running on a secure port on localhost, so neither the + simulator nor QEMU is exposed to any outside network. + + See the "lanserv/README.vm" file in the OpenIPMI library for more + details on the external interface. + +``-device isa-ipmi-kcs,bmc=id[,ioport=val][,irq=val]`` + Add a KCS IPMI interafce on the ISA bus. This also adds a + corresponding ACPI and SMBIOS entries, if appropriate. + + ``bmc=id`` + The BMC to connect to, one of ipmi-bmc-sim or ipmi-bmc-extern + above. + + ``ioport=val`` + Define the I/O address of the interface. The default is 0xca0 + for KCS. + + ``irq=val`` + Define the interrupt to use. The default is 5. To disable + interrupts, set this to 0. + +``-device isa-ipmi-bt,bmc=id[,ioport=val][,irq=val]`` + Like the KCS interface, but defines a BT interface. The default port + is 0xe4 and the default interrupt is 5. +ERST DEF("name", HAS_ARG, QEMU_OPTION_name, "-name string1[,process=string2][,debug-threads=on|off]\n"
@@ -896,6 +1576,13 @@ The @var{name} will also be used for the VNC server. Also optionally set the top visible process name in Linux. Naming of individual threads can also be enabled on Linux to aid debugging. ETEXI +SRST +``-name name`` + Sets the name of the guest. This name will be displayed in the SDL + window caption. The name will also be used for the VNC server. Also + optionally set the top visible process name in Linux. Naming of + individual threads can also be enabled on Linux to aid debugging. +ERST DEF("uuid", HAS_ARG, QEMU_OPTION_uuid, "-uuid %08x-%04x-%04x-%04x-%012x\n"
@@ -905,6 +1592,10 @@ STEXI @findex -uuid Set system UUID. ETEXI +SRST +``-uuid uuid`` + Set system UUID. +ERST STEXI @end table
@@ -926,6 +1617,11 @@ STEXI @findex -fdb Use @var{file} as floppy disk 0/1 image (@pxref{disk_images}). ETEXI +SRST +``-fda file``; \ ``-fdb file`` + Use file as floppy disk 0/1 image (see + :ref:`disk_005fimages`). +ERST DEF("hda", HAS_ARG, QEMU_OPTION_hda, "-hda/-hdb file use 'file' as IDE hard disk 0/1 image\n", QEMU_ARCH_ALL)
@@ -944,6 +1640,11 @@ STEXI @findex -hdd Use @var{file} as hard disk 0, 1, 2 or 3 image (@pxref{disk_images}). ETEXI +SRST +``-hda file``; \ ``-hdb file``; \ ``-hdc file``; \ ``-hdd file`` + Use file as hard disk 0, 1, 2 or 3 image (see + :ref:`disk_005fimages`). +ERST DEF("cdrom", HAS_ARG, QEMU_OPTION_cdrom, "-cdrom file use 'file' as IDE cdrom image (cdrom is ide1 master)\n",
@@ -955,6 +1656,12 @@ Use @var{file} as CD-ROM image (you cannot use @option{-hdc} and @option{-cdrom} at the same time). You can use the host CD-ROM by using @file{/dev/cdrom} as filename. ETEXI +SRST +``-cdrom file`` + Use file as CD-ROM image (you cannot use ``-hdc`` and ``-cdrom`` at + the same time). You can use the host CD-ROM by using ``/dev/cdrom`` + as filename. +ERST DEF("blockdev", HAS_ARG, QEMU_OPTION_blockdev, "-blockdev [driver=]driver[,node-name=N][,discard=ignore|unmap]\n"
@@ -1150,6 +1857,216 @@ Please refer to the QAPI documentation of the @code{blockdev-add} QMP command. @end table ETEXI +SRST +``-blockdev option[,option[,option[,...]]]`` + Define a new block driver node. Some of the options apply to all + block drivers, other options are only accepted for a specific block + driver. See below for a list of generic options and options for the + most common block drivers. + + Options that expect a reference to another node (e.g. ``file``) can + be given in two ways. Either you specify the node name of an already + existing node (file=node-name), or you define a new node inline, + adding options for the referenced node after a dot + (file.filename=path,file.aio=native). + + A block driver node created with ``-blockdev`` can be used for a + guest device by specifying its node name for the ``drive`` property + in a ``-device`` argument that defines a block device. + + ``Valid options for any block driver node:`` + ``driver`` + Specifies the block driver to use for the given node. + + ``node-name`` + This defines the name of the block driver node by which it + will be referenced later. The name must be unique, i.e. it + must not match the name of a different block driver node, or + (if you use ``-drive`` as well) the ID of a drive. + + If no node name is specified, it is automatically generated. + The generated node name is not intended to be predictable + and changes between QEMU invocations. For the top level, an + explicit node name must be specified. + + ``read-only`` + Open the node read-only. Guest write attempts will fail. + + Note that some block drivers support only read-only access, + either generally or in certain configurations. In this case, + the default value ``read-only=off`` does not work and the + option must be specified explicitly. + + ``auto-read-only`` + If ``auto-read-only=on`` is set, QEMU may fall back to + read-only usage even when ``read-only=off`` is requested, or + even switch between modes as needed, e.g. depending on + whether the image file is writable or whether a writing user + is attached to the node. + + ``force-share`` + Override the image locking system of QEMU by forcing the + node to utilize weaker shared access for permissions where + it would normally request exclusive access. When there is + the potential for multiple instances to have the same file + open (whether this invocation of QEMU is the first or the + second instance), both instances must permit shared access + for the second instance to succeed at opening the file. + + Enabling ``force-share=on`` requires ``read-only=on``. + + ``cache.direct`` + The host page cache can be avoided with ``cache.direct=on``. + This will attempt to do disk IO directly to the guest's + memory. QEMU may still perform an internal copy of the data. + + ``cache.no-flush`` + In case you don't care about data integrity over host + failures, you can use ``cache.no-flush=on``. This option + tells QEMU that it never needs to write any data to the disk + but can instead keep things in cache. If anything goes + wrong, like your host losing power, the disk storage getting + disconnected accidentally, etc. your image will most + probably be rendered unusable. + + ``discard=discard`` + discard is one of "ignore" (or "off") or "unmap" (or "on") + and controls whether ``discard`` (also known as ``trim`` or + ``unmap``) requests are ignored or passed to the filesystem. + Some machine types may not support discard requests. + + ``detect-zeroes=detect-zeroes`` + detect-zeroes is "off", "on" or "unmap" and enables the + automatic conversion of plain zero writes by the OS to + driver specific optimized zero write commands. You may even + choose "unmap" if discard is set to "unmap" to allow a zero + write to be converted to an ``unmap`` operation. + + ``Driver-specific options for file`` + This is the protocol-level block driver for accessing regular + files. + + ``filename`` + The path to the image file in the local filesystem + + ``aio`` + Specifies the AIO backend (threads/native, default: threads) + + ``locking`` + Specifies whether the image file is protected with Linux OFD + / POSIX locks. The default is to use the Linux Open File + Descriptor API if available, otherwise no lock is applied. + (auto/on/off, default: auto) + + Example: + + :: + + -blockdev driver=file,node-name=disk,filename=disk.img + + ``Driver-specific options for raw`` + This is the image format block driver for raw images. It is + usually stacked on top of a protocol level block driver such as + ``file``. + + ``file`` + Reference to or definition of the data source block driver + node (e.g. a ``file`` driver node) + + Example 1: + + :: + + -blockdev driver=file,node-name=disk_file,filename=disk.img + -blockdev driver=raw,node-name=disk,file=disk_file + + Example 2: + + :: + + -blockdev driver=raw,node-name=disk,file.driver=file,file.filename=disk.img + + ``Driver-specific options for qcow2`` + This is the image format block driver for qcow2 images. It is + usually stacked on top of a protocol level block driver such as + ``file``. + + ``file`` + Reference to or definition of the data source block driver + node (e.g. a ``file`` driver node) + + ``backing`` + Reference to or definition of the backing file block device + (default is taken from the image file). It is allowed to + pass ``null`` here in order to disable the default backing + file. + + ``lazy-refcounts`` + Whether to enable the lazy refcounts feature (on/off; + default is taken from the image file) + + ``cache-size`` + The maximum total size of the L2 table and refcount block + caches in bytes (default: the sum of l2-cache-size and + refcount-cache-size) + + ``l2-cache-size`` + The maximum size of the L2 table cache in bytes (default: if + cache-size is not specified - 32M on Linux platforms, and 8M + on non-Linux platforms; otherwise, as large as possible + within the cache-size, while permitting the requested or the + minimal refcount cache size) + + ``refcount-cache-size`` + The maximum size of the refcount block cache in bytes + (default: 4 times the cluster size; or if cache-size is + specified, the part of it which is not used for the L2 + cache) + + ``cache-clean-interval`` + Clean unused entries in the L2 and refcount caches. The + interval is in seconds. The default value is 600 on + supporting platforms, and 0 on other platforms. Setting it + to 0 disables this feature. + + ``pass-discard-request`` + Whether discard requests to the qcow2 device should be + forwarded to the data source (on/off; default: on if + discard=unmap is specified, off otherwise) + + ``pass-discard-snapshot`` + Whether discard requests for the data source should be + issued when a snapshot operation (e.g. deleting a snapshot) + frees clusters in the qcow2 file (on/off; default: on) + + ``pass-discard-other`` + Whether discard requests for the data source should be + issued on other occasions where a cluster gets freed + (on/off; default: off) + + ``overlap-check`` + Which overlap checks to perform for writes to the image + (none/constant/cached/all; default: cached). For details or + finer granularity control refer to the QAPI documentation of + ``blockdev-add``. + + Example 1: + + :: + + -blockdev driver=file,node-name=my_file,filename=/tmp/disk.qcow2 + -blockdev driver=qcow2,node-name=hda,file=my_file,overlap-check=none,cache-size=16777216 + + Example 2: + + :: + + -blockdev driver=qcow2,node-name=disk,file.driver=http,file.filename=http://example.com/image.qcow2 + + ``Driver-specific options for other drivers`` + Please refer to the QAPI documentation of the ``blockdev-add`` + QMP command. +ERST DEF("drive", HAS_ARG, QEMU_OPTION_drive, "-drive [file=file][,if=type][,bus=n][,unit=m][,media=d][,index=i]\n"
@@ -1329,6 +2246,197 @@ is interpreted like: @value{qemu_system_x86} -hda a -hdb b @end example ETEXI +SRST +``-drive option[,option[,option[,...]]]`` + Define a new drive. This includes creating a block driver node (the + backend) as well as a guest device, and is mostly a shortcut for + defining the corresponding ``-blockdev`` and ``-device`` options. + + ``-drive`` accepts all options that are accepted by ``-blockdev``. + In addition, it knows the following options: + + ``file=file`` + This option defines which disk image (see + :ref:`disk_005fimages`) to use with this drive. If + the filename contains comma, you must double it (for instance, + "file=my,,file" to use file "my,file"). + + Special files such as iSCSI devices can be specified using + protocol specific URLs. See the section for "Device URL Syntax" + for more information. + + ``if=interface`` + This option defines on which type on interface the drive is + connected. Available types are: ide, scsi, sd, mtd, floppy, + pflash, virtio, none. + + ``bus=bus,unit=unit`` + These options define where is connected the drive by defining + the bus number and the unit id. + + ``index=index`` + This option defines where is connected the drive by using an + index in the list of available connectors of a given interface + type. + + ``media=media`` + This option defines the type of the media: disk or cdrom. + + ``snapshot=snapshot`` + snapshot is "on" or "off" and controls snapshot mode for the + given drive (see ``-snapshot``). + + ``cache=cache`` + cache is "none", "writeback", "unsafe", "directsync" or + "writethrough" and controls how the host cache is used to access + block data. This is a shortcut that sets the ``cache.direct`` + and ``cache.no-flush`` options (as in ``-blockdev``), and + additionally ``cache.writeback``, which provides a default for + the ``write-cache`` option of block guest devices (as in + ``-device``). The modes correspond to the following settings: + + :: + + � │ cache.writeback cache.direct cache.no-flush + ─────────────┼───────────────────────────────────────────────── + writeback │ on off off + none │ on on off + writethrough │ off off off + directsync │ off on off + unsafe │ on off on + + The default mode is ``cache=writeback``. + + ``aio=aio`` + aio is "threads", or "native" and selects between pthread based + disk I/O and native Linux AIO. + + ``format=format`` + Specify which disk format will be used rather than detecting the + format. Can be used to specify format=raw to avoid interpreting + an untrusted format header. + + ``werror=action,rerror=action`` + Specify which action to take on write and read errors. Valid + actions are: "ignore" (ignore the error and try to continue), + "stop" (pause QEMU), "report" (report the error to the guest), + "enospc" (pause QEMU only if the host disk is full; report the + error to the guest otherwise). The default setting is + ``werror=enospc`` and ``rerror=report``. + + ``copy-on-read=copy-on-read`` + copy-on-read is "on" or "off" and enables whether to copy read + backing file sectors into the image file. + + ``bps=b,bps_rd=r,bps_wr=w`` + Specify bandwidth throttling limits in bytes per second, either + for all request types or for reads or writes only. Small values + can lead to timeouts or hangs inside the guest. A safe minimum + for disks is 2 MB/s. + + ``bps_max=bm,bps_rd_max=rm,bps_wr_max=wm`` + Specify bursts in bytes per second, either for all request types + or for reads or writes only. Bursts allow the guest I/O to spike + above the limit temporarily. + + ``iops=i,iops_rd=r,iops_wr=w`` + Specify request rate limits in requests per second, either for + all request types or for reads or writes only. + + ``iops_max=bm,iops_rd_max=rm,iops_wr_max=wm`` + Specify bursts in requests per second, either for all request + types or for reads or writes only. Bursts allow the guest I/O to + spike above the limit temporarily. + + ``iops_size=is`` + Let every is bytes of a request count as a new request for iops + throttling purposes. Use this option to prevent guests from + circumventing iops limits by sending fewer but larger requests. + + ``group=g`` + Join a throttling quota group with given name g. All drives that + are members of the same group are accounted for together. Use + this option to prevent guests from circumventing throttling + limits by using many small disks instead of a single larger + disk. + + By default, the ``cache.writeback=on`` mode is used. It will report + data writes as completed as soon as the data is present in the host + page cache. This is safe as long as your guest OS makes sure to + correctly flush disk caches where needed. If your guest OS does not + handle volatile disk write caches correctly and your host crashes or + loses power, then the guest may experience data corruption. + + For such guests, you should consider using ``cache.writeback=off``. + This means that the host page cache will be used to read and write + data, but write notification will be sent to the guest only after + QEMU has made sure to flush each write to the disk. Be aware that + this has a major impact on performance. + + When using the ``-snapshot`` option, unsafe caching is always used. + + Copy-on-read avoids accessing the same backing file sectors + repeatedly and is useful when the backing file is over a slow + network. By default copy-on-read is off. + + Instead of ``-cdrom`` you can use: + + .. parsed-literal:: + + |qemu_system| -drive file=file,index=2,media=cdrom + + Instead of ``-hda``, ``-hdb``, ``-hdc``, ``-hdd``, you can use: + + .. parsed-literal:: + + |qemu_system| -drive file=file,index=0,media=disk + |qemu_system| -drive file=file,index=1,media=disk + |qemu_system| -drive file=file,index=2,media=disk + |qemu_system| -drive file=file,index=3,media=disk + + You can open an image using pre-opened file descriptors from an fd + set: + + .. parsed-literal:: + + |qemu_system| \ + -add-fd fd=3,set=2,opaque="rdwr:/path/to/file" \ + -add-fd fd=4,set=2,opaque="rdonly:/path/to/file" \ + -drive file=/dev/fdset/2,index=0,media=disk + + You can connect a CDROM to the slave of ide0: + + .. parsed-literal:: + + |qemu_system_x86| -drive file=file,if=ide,index=1,media=cdrom + + If you don't specify the "file=" argument, you define an empty + drive: + + .. parsed-literal:: + + |qemu_system_x86| -drive if=ide,index=1,media=cdrom + + Instead of ``-fda``, ``-fdb``, you can use: + + .. parsed-literal:: + + |qemu_system_x86| -drive file=file,index=0,if=floppy + |qemu_system_x86| -drive file=file,index=1,if=floppy + + By default, interface is "ide" and index is automatically + incremented: + + .. parsed-literal:: + + |qemu_system_x86| -drive file=a -drive file=b" + + is interpreted like: + + .. parsed-literal:: + + |qemu_system_x86| -hda a -hdb b +ERST DEF("mtdblock", HAS_ARG, QEMU_OPTION_mtdblock, "-mtdblock file use 'file' as on-board Flash memory image\n",
@@ -1338,6 +2446,10 @@ STEXI @findex -mtdblock Use @var{file} as on-board Flash memory image. ETEXI +SRST +``-mtdblock file`` + Use file as on-board Flash memory image. +ERST DEF("sd", HAS_ARG, QEMU_OPTION_sd, "-sd file use 'file' as SecureDigital card image\n", QEMU_ARCH_ALL)
@@ -1346,6 +2458,10 @@ STEXI @findex -sd Use @var{file} as SecureDigital card image. ETEXI +SRST +``-sd file`` + Use file as SecureDigital card image. +ERST DEF("pflash", HAS_ARG, QEMU_OPTION_pflash, "-pflash file use 'file' as a parallel flash image\n", QEMU_ARCH_ALL)
@@ -1354,6 +2470,10 @@ STEXI @findex -pflash Use @var{file} as a parallel flash image. ETEXI +SRST +``-pflash file`` + Use file as a parallel flash image. +ERST DEF("snapshot", 0, QEMU_OPTION_snapshot, "-snapshot write to temporary files instead of disk image files\n",
@@ -1365,6 +2485,13 @@ Write to temporary files instead of disk image files. In this case, the raw disk image you use is not written back. You can however force the write back by pressing @key{C-a s} (@pxref{disk_images}). ETEXI +SRST +``-snapshot`` + Write to temporary files instead of disk image files. In this case, + the raw disk image you use is not written back. You can however + force the write back by pressing C-a s (see + :ref:`disk_005fimages`). +ERST DEF("fsdev", HAS_ARG, QEMU_OPTION_fsdev, "-fsdev local,id=id,path=path,security_model=mapped-xattr|mapped-file|passthrough|none\n"
@@ -1466,6 +2593,112 @@ Specifies the tag name to be used by the guest to mount this export point. @end table ETEXI +SRST +``-fsdev local,id=id,path=path,security_model=security_model [,writeout=writeout][,readonly][,fmode=fmode][,dmode=dmode] [,throttling.option=value[,throttling.option=value[,...]]]``; \ ``-fsdev proxy,id=id,socket=socket[,writeout=writeout][,readonly]``; \ ``-fsdev proxy,id=id,sock_fd=sock_fd[,writeout=writeout][,readonly]``; \ ``-fsdev synth,id=id[,readonly]`` + Define a new file system device. Valid options are: + + ``local`` + Accesses to the filesystem are done by QEMU. + + ``proxy`` + Accesses to the filesystem are done by virtfs-proxy-helper(1). + + ``synth`` + Synthetic filesystem, only used by QTests. + + ``id=id`` + Specifies identifier for this device. + + ``path=path`` + Specifies the export path for the file system device. Files + under this path will be available to the 9p client on the guest. + + ``security_model=security_model`` + Specifies the security model to be used for this export path. + Supported security models are "passthrough", "mapped-xattr", + "mapped-file" and "none". In "passthrough" security model, files + are stored using the same credentials as they are created on the + guest. This requires QEMU to run as root. In "mapped-xattr" + security model, some of the file attributes like uid, gid, mode + bits and link target are stored as file attributes. For + "mapped-file" these attributes are stored in the hidden + .virtfs\_metadata directory. Directories exported by this + security model cannot interact with other unix tools. "none" + security model is same as passthrough except the sever won't + report failures if it fails to set file attributes like + ownership. Security model is mandatory only for local fsdriver. + Other fsdrivers (like proxy) don't take security model as a + parameter. + + ``writeout=writeout`` + This is an optional argument. The only supported value is + "immediate". This means that host page cache will be used to + read and write data but write notification will be sent to the + guest only when the data has been reported as written by the + storage subsystem. + + ``readonly`` + Enables exporting 9p share as a readonly mount for guests. By + default read-write access is given. + + ``socket=socket`` + Enables proxy filesystem driver to use passed socket file for + communicating with virtfs-proxy-helper(1). + + ``sock_fd=sock_fd`` + Enables proxy filesystem driver to use passed socket descriptor + for communicating with virtfs-proxy-helper(1). Usually a helper + like libvirt will create socketpair and pass one of the fds as + sock\_fd. + + ``fmode=fmode`` + Specifies the default mode for newly created files on the host. + Works only with security models "mapped-xattr" and + "mapped-file". + + ``dmode=dmode`` + Specifies the default mode for newly created directories on the + host. Works only with security models "mapped-xattr" and + "mapped-file". + + ``throttling.bps-total=b,throttling.bps-read=r,throttling.bps-write=w`` + Specify bandwidth throttling limits in bytes per second, either + for all request types or for reads or writes only. + + ``throttling.bps-total-max=bm,bps-read-max=rm,bps-write-max=wm`` + Specify bursts in bytes per second, either for all request types + or for reads or writes only. Bursts allow the guest I/O to spike + above the limit temporarily. + + ``throttling.iops-total=i,throttling.iops-read=r, throttling.iops-write=w`` + Specify request rate limits in requests per second, either for + all request types or for reads or writes only. + + ``throttling.iops-total-max=im,throttling.iops-read-max=irm, throttling.iops-write-max=iwm`` + Specify bursts in requests per second, either for all request + types or for reads or writes only. Bursts allow the guest I/O to + spike above the limit temporarily. + + ``throttling.iops-size=is`` + Let every is bytes of a request count as a new request for iops + throttling purposes. + + -fsdev option is used along with -device driver "virtio-9p-...". + +``-device virtio-9p-type,fsdev=id,mount_tag=mount_tag`` + Options for virtio-9p-... driver are: + + ``type`` + Specifies the variant to be used. Supported values are "pci", + "ccw" or "device", depending on the machine type. + + ``fsdev=id`` + Specifies the id value specified along with -fsdev option. + + ``mount_tag=mount_tag`` + Specifies the tag name to be used by the guest to mount this + export point. +ERST DEF("virtfs", HAS_ARG, QEMU_OPTION_virtfs, "-virtfs local,path=path,mount_tag=tag,security_model=mapped-xattr|mapped-file|passthrough|none\n"
@@ -1557,6 +2790,107 @@ currently not block all possible file access operations (e.g. readdir() would still return entries from other devices). @end table ETEXI +SRST +``-virtfs local,path=path,mount_tag=mount_tag ,security_model=security_model[,writeout=writeout][,readonly] [,fmode=fmode][,dmode=dmode][,multidevs=multidevs]``; \ ``-virtfs proxy,socket=socket,mount_tag=mount_tag [,writeout=writeout][,readonly]``; \ ``-virtfs proxy,sock_fd=sock_fd,mount_tag=mount_tag [,writeout=writeout][,readonly]``; \ ``-virtfs synth,mount_tag=mount_tag`` + Define a new filesystem device and expose it to the guest using a + virtio-9p-device. The general form of a Virtual File system + pass-through options are: + + ``local`` + Accesses to the filesystem are done by QEMU. + + ``proxy`` + Accesses to the filesystem are done by virtfs-proxy-helper(1). + + ``synth`` + Synthetic filesystem, only used by QTests. + + ``id=id`` + Specifies identifier for the filesystem device + + ``path=path`` + Specifies the export path for the file system device. Files + under this path will be available to the 9p client on the guest. + + ``security_model=security_model`` + Specifies the security model to be used for this export path. + Supported security models are "passthrough", "mapped-xattr", + "mapped-file" and "none". In "passthrough" security model, files + are stored using the same credentials as they are created on the + guest. This requires QEMU to run as root. In "mapped-xattr" + security model, some of the file attributes like uid, gid, mode + bits and link target are stored as file attributes. For + "mapped-file" these attributes are stored in the hidden + .virtfs\_metadata directory. Directories exported by this + security model cannot interact with other unix tools. "none" + security model is same as passthrough except the sever won't + report failures if it fails to set file attributes like + ownership. Security model is mandatory only for local fsdriver. + Other fsdrivers (like proxy) don't take security model as a + parameter. + + ``writeout=writeout`` + This is an optional argument. The only supported value is + "immediate". This means that host page cache will be used to + read and write data but write notification will be sent to the + guest only when the data has been reported as written by the + storage subsystem. + + ``readonly`` + Enables exporting 9p share as a readonly mount for guests. By + default read-write access is given. + + ``socket=socket`` + Enables proxy filesystem driver to use passed socket file for + communicating with virtfs-proxy-helper(1). Usually a helper like + libvirt will create socketpair and pass one of the fds as + sock\_fd. + + ``sock_fd`` + Enables proxy filesystem driver to use passed 'sock\_fd' as the + socket descriptor for interfacing with virtfs-proxy-helper(1). + + ``fmode=fmode`` + Specifies the default mode for newly created files on the host. + Works only with security models "mapped-xattr" and + "mapped-file". + + ``dmode=dmode`` + Specifies the default mode for newly created directories on the + host. Works only with security models "mapped-xattr" and + "mapped-file". + + ``mount_tag=mount_tag`` + Specifies the tag name to be used by the guest to mount this + export point. + + ``multidevs=multidevs`` + Specifies how to deal with multiple devices being shared with a + 9p export. Supported behaviours are either "remap", "forbid" or + "warn". The latter is the default behaviour on which virtfs 9p + expects only one device to be shared with the same export, and + if more than one device is shared and accessed via the same 9p + export then only a warning message is logged (once) by qemu on + host side. In order to avoid file ID collisions on guest you + should either create a separate virtfs export for each device to + be shared with guests (recommended way) or you might use "remap" + instead which allows you to share multiple devices with only one + export instead, which is achieved by remapping the original + inode numbers from host to guest in a way that would prevent + such collisions. Remapping inodes in such use cases is required + because the original device IDs from host are never passed and + exposed on guest. Instead all files of an export shared with + virtfs always share the same device id on guest. So two files + with identical inode numbers but from actually different devices + on host would otherwise cause a file ID collision and hence + potential misbehaviours on guest. "forbid" on the other hand + assumes like "warn" that only one device is shared by the same + export, however it will not only log a warning message but also + deny access to additional devices on guest. Note though that + "forbid" does currently not block all possible file access + operations (e.g. readdir() would still return entries from other + devices). +ERST DEF("iscsi", HAS_ARG, QEMU_OPTION_iscsi, "-iscsi [user=user][,password=password]\n"
@@ -1570,6 +2904,10 @@ STEXI @findex -iscsi Configure iSCSI session parameters. ETEXI +SRST +``-iscsi`` + Configure iSCSI session parameters. +ERST STEXI @end table
@@ -1592,6 +2930,13 @@ not enabled by default). Note that on-board USB host controllers may not support USB 3.0. In this case @option{-device qemu-xhci} can be used instead on machines with PCI. ETEXI +SRST +``-usb`` + Enable USB emulation on machine types with an on-board USB host + controller (if not enabled by default). Note that on-board USB host + controllers may not support USB 3.0. In this case + ``-device qemu-xhci`` can be used instead on machines with PCI. +ERST DEF("usbdevice", HAS_ARG, QEMU_OPTION_usbdevice, "-usbdevice name add the host or guest USB device 'name'\n",
@@ -1619,6 +2964,26 @@ or fake device. @end table ETEXI +SRST +``-usbdevice devname`` + Add the USB device devname. Note that this option is deprecated, + please use ``-device usb-...`` instead. See + :ref:`usb_005fdevices`. + + ``mouse`` + Virtual Mouse. This will override the PS/2 mouse emulation when + activated. + + ``tablet`` + Pointer device that uses absolute coordinates (like a + touchscreen). This means QEMU is able to report the mouse + position without having to grab the mouse. Also overrides the + PS/2 mouse emulation when activated. + + ``braille`` + Braille device. This will use BrlAPI to display the braille + output on a real or fake device. +ERST STEXI @end table
@@ -1705,6 +3070,53 @@ application. The Spice server will redirect the serial consoles and QEMU monitors. (Since 4.0) @end table ETEXI +SRST +``-display type`` + Select type of display to use. This option is a replacement for the + old style -sdl/-curses/... options. Use ``-display help`` to list + the available display types. Valid values for type are + + ``sdl`` + Display video output via SDL (usually in a separate graphics + window; see the SDL documentation for other possibilities). + + ``curses`` + Display video output via curses. For graphics device models + which support a text mode, QEMU can display this output using a + curses/ncurses interface. Nothing is displayed when the graphics + device is in graphical mode or if the graphics device does not + support a text mode. Generally only the VGA device models + support text mode. The font charset used by the guest can be + specified with the ``charset`` option, for example + ``charset=CP850`` for IBM CP850 encoding. The default is + ``CP437``. + + ``none`` + Do not display video output. The guest will still see an + emulated graphics card, but its output will not be displayed to + the QEMU user. This option differs from the -nographic option in + that it only affects what is done with video output; -nographic + also changes the destination of the serial and parallel port + data. + + ``gtk`` + Display video output in a GTK window. This interface provides + drop-down menus and other UI elements to configure and control + the VM during runtime. + + ``vnc`` + Start a VNC server on display <arg> + + ``egl-headless`` + Offload all OpenGL operations to a local DRI device. For any + graphical display, this display needs to be paired with either + VNC or SPICE displays. + + ``spice-app`` + Start QEMU as a Spice server and launch the default Spice client + application. The Spice server will redirect the serial consoles + and QEMU monitors. (Since 4.0) +ERST DEF("nographic", 0, QEMU_OPTION_nographic, "-nographic disable graphical output and redirect serial I/Os to console\n",
@@ -1721,6 +3133,17 @@ redirected elsewhere explicitly). Therefore, you can still use QEMU to debug a Linux kernel with a serial console. Use @key{C-a h} for help on switching between the console and monitor. ETEXI +SRST +``-nographic`` + Normally, if QEMU is compiled with graphical window support, it + displays output such as guest graphics, guest console, and the QEMU + monitor in a window. With this option, you can totally disable + graphical output so that QEMU is a simple command line application. + The emulated serial port is redirected on the console and muxed with + the monitor (unless redirected elsewhere explicitly). Therefore, you + can still use QEMU to debug a Linux kernel with a serial console. + Use C-a h for help on switching between the console and monitor. +ERST DEF("curses", 0, QEMU_OPTION_curses, "-curses shorthand for -display curses\n",
@@ -1734,6 +3157,14 @@ window. With this option, QEMU can display the VGA output when in text mode using a curses/ncurses interface. Nothing is displayed in graphical mode. ETEXI +SRST +``-curses`` + Normally, if QEMU is compiled with graphical window support, it + displays output such as guest graphics, guest console, and the QEMU + monitor in a window. With this option, QEMU can display the VGA + output when in text mode using a curses/ncurses interface. Nothing + is displayed in graphical mode. +ERST DEF("alt-grab", 0, QEMU_OPTION_alt_grab, "-alt-grab use Ctrl-Alt-Shift to grab mouse (instead of Ctrl-Alt)\n",
@@ -1744,6 +3175,12 @@ STEXI Use Ctrl-Alt-Shift to grab mouse (instead of Ctrl-Alt). Note that this also affects the special keys (for fullscreen, monitor-mode switching, etc). ETEXI +SRST +``-alt-grab`` + Use Ctrl-Alt-Shift to grab mouse (instead of Ctrl-Alt). Note that + this also affects the special keys (for fullscreen, monitor-mode + switching, etc). +ERST DEF("ctrl-grab", 0, QEMU_OPTION_ctrl_grab, "-ctrl-grab use Right-Ctrl to grab mouse (instead of Ctrl-Alt)\n",
@@ -1754,6 +3191,12 @@ STEXI Use Right-Ctrl to grab mouse (instead of Ctrl-Alt). Note that this also affects the special keys (for fullscreen, monitor-mode switching, etc). ETEXI +SRST +``-ctrl-grab`` + Use Right-Ctrl to grab mouse (instead of Ctrl-Alt). Note that this + also affects the special keys (for fullscreen, monitor-mode + switching, etc). +ERST DEF("no-quit", 0, QEMU_OPTION_no_quit, "-no-quit disable SDL window close capability\n", QEMU_ARCH_ALL)
@@ -1762,6 +3205,10 @@ STEXI @findex -no-quit Disable SDL window close capability. ETEXI +SRST +``-no-quit`` + Disable SDL window close capability. +ERST DEF("sdl", 0, QEMU_OPTION_sdl, "-sdl shorthand for -display sdl\n", QEMU_ARCH_ALL)
@@ -1770,6 +3217,10 @@ STEXI @findex -sdl Enable SDL. ETEXI +SRST +``-sdl`` + Enable SDL. +ERST DEF("spice", HAS_ARG, QEMU_OPTION_spice, "-spice [port=port][,tls-port=secured-port][,x509-dir=<dir>]\n"
@@ -1887,6 +3338,95 @@ the first available. (Since 2.9) @end table ETEXI +SRST +``-spice option[,option[,...]]`` + Enable the spice remote desktop protocol. Valid options are + + ``port=<nr>`` + Set the TCP port spice is listening on for plaintext channels. + + ``addr=<addr>`` + Set the IP address spice is listening on. Default is any + address. + + ``ipv4``; \ ``ipv6``; \ ``unix`` + Force using the specified IP version. + + ``password=<secret>`` + Set the password you need to authenticate. + + ``sasl`` + Require that the client use SASL to authenticate with the spice. + The exact choice of authentication method used is controlled + from the system / user's SASL configuration file for the 'qemu' + service. This is typically found in /etc/sasl2/qemu.conf. If + running QEMU as an unprivileged user, an environment variable + SASL\_CONF\_PATH can be used to make it search alternate + locations for the service config. While some SASL auth methods + can also provide data encryption (eg GSSAPI), it is recommended + that SASL always be combined with the 'tls' and 'x509' settings + to enable use of SSL and server certificates. This ensures a + data encryption preventing compromise of authentication + credentials. + + ``disable-ticketing`` + Allow client connects without authentication. + + ``disable-copy-paste`` + Disable copy paste between the client and the guest. + + ``disable-agent-file-xfer`` + Disable spice-vdagent based file-xfer between the client and the + guest. + + ``tls-port=<nr>`` + Set the TCP port spice is listening on for encrypted channels. + + ``x509-dir=<dir>`` + Set the x509 file directory. Expects same filenames as -vnc + $display,x509=$dir + + ``x509-key-file=<file>``; \ ``x509-key-password=<file>``; \ ``x509-cert-file=<file>``; \ ``x509-cacert-file=<file>``; \ ``x509-dh-key-file=<file>`` + The x509 file names can also be configured individually. + + ``tls-ciphers=<list>`` + Specify which ciphers to use. + + ``tls-channel=[main|display|cursor|inputs|record|playback]``; \ ``plaintext-channel=[main|display|cursor|inputs|record|playback]`` + Force specific channel to be used with or without TLS + encryption. The options can be specified multiple times to + configure multiple channels. The special name "default" can be + used to set the default mode. For channels which are not + explicitly forced into one mode the spice client is allowed to + pick tls/plaintext as he pleases. + + ``image-compression=[auto_glz|auto_lz|quic|glz|lz|off]`` + Configure image compression (lossless). Default is auto\_glz. + + ``jpeg-wan-compression=[auto|never|always]``; \ ``zlib-glz-wan-compression=[auto|never|always]`` + Configure wan image compression (lossy for slow links). Default + is auto. + + ``streaming-video=[off|all|filter]`` + Configure video stream detection. Default is off. + + ``agent-mouse=[on|off]`` + Enable/disable passing mouse events via vdagent. Default is on. + + ``playback-compression=[on|off]`` + Enable/disable audio stream compression (using celt 0.5.1). + Default is on. + + ``seamless-migration=[on|off]`` + Enable/disable spice seamless migration. Default is off. + + ``gl=[on|off]`` + Enable/disable OpenGL context. Default is off. + + ``rendernode=<file>`` + DRM render node for OpenGL rendering. If not specified, it will + pick the first available. (Since 2.9) +ERST DEF("portrait", 0, QEMU_OPTION_portrait, "-portrait rotate graphical output 90 deg left (only PXA LCD)\n",
@@ -1896,6 +3436,10 @@ STEXI @findex -portrait Rotate graphical output 90 deg left (only PXA LCD). ETEXI +SRST +``-portrait`` + Rotate graphical output 90 deg left (only PXA LCD). +ERST DEF("rotate", HAS_ARG, QEMU_OPTION_rotate, "-rotate <deg> rotate graphical output some deg left (only PXA LCD)\n",
@@ -1905,6 +3449,10 @@ STEXI @findex -rotate Rotate graphical output some deg left (only PXA LCD). ETEXI +SRST +``-rotate deg`` + Rotate graphical output some deg left (only PXA LCD). +ERST DEF("vga", HAS_ARG, QEMU_OPTION_vga, "-vga [std|cirrus|vmware|qxl|xenfb|tcx|cg3|virtio|none]\n"
@@ -1946,6 +3494,51 @@ Virtio VGA card. Disable VGA card. @end table ETEXI +SRST +``-vga type`` + Select type of VGA card to emulate. Valid values for type are + + ``cirrus`` + Cirrus Logic GD5446 Video card. All Windows versions starting + from Windows 95 should recognize and use this graphic card. For + optimal performances, use 16 bit color depth in the guest and + the host OS. (This card was the default before QEMU 2.2) + + ``std`` + Standard VGA card with Bochs VBE extensions. If your guest OS + supports the VESA 2.0 VBE extensions (e.g. Windows XP) and if + you want to use high resolution modes (>= 1280x1024x16) then you + should use this option. (This card is the default since QEMU + 2.2) + + ``vmware`` + VMWare SVGA-II compatible adapter. Use it if you have + sufficiently recent XFree86/XOrg server or Windows guest with a + driver for this card. + + ``qxl`` + QXL paravirtual graphic card. It is VGA compatible (including + VESA 2.0 VBE support). Works best with qxl guest drivers + installed though. Recommended choice when using the spice + protocol. + + ``tcx`` + (sun4m only) Sun TCX framebuffer. This is the default + framebuffer for sun4m machines and offers both 8-bit and 24-bit + colour depths at a fixed resolution of 1024x768. + + ``cg3`` + (sun4m only) Sun cgthree framebuffer. This is a simple 8-bit + framebuffer for sun4m machines available in both 1024x768 + (OpenBIOS) and 1152x900 (OBP) resolutions aimed at people + wishing to run older Solaris versions. + + ``virtio`` + Virtio VGA card. + + ``none`` + Disable VGA card. +ERST DEF("full-screen", 0, QEMU_OPTION_full_screen, "-full-screen start in full screen\n", QEMU_ARCH_ALL)
@@ -1954,6 +3547,10 @@ STEXI @findex -full-screen Start in full screen. ETEXI +SRST +``-full-screen`` + Start in full screen. +ERST DEF("g", HAS_ARG, QEMU_OPTION_g , "-g WxH[xDEPTH] Set the initial graphical resolution and depth\n",
@@ -1970,6 +3567,17 @@ option of 1024x768x24. For cgthree, the default is 1024x768x8 with the option of 1152x900x8 for people who wish to use OBP. ETEXI +SRST +``-g widthxheight[xdepth]`` + Set the initial graphical resolution and depth (PPC, SPARC only). + + For PPC the default is 800x600x32. + + For SPARC with the TCX graphics device, the default is 1024x768x8 + with the option of 1024x768x24. For cgthree, the default is + 1024x768x8 with the option of 1152x900x8 for people who wish to use + OBP. +ERST DEF("vnc", HAS_ARG, QEMU_OPTION_vnc , "-vnc <display> shorthand for -display vnc=<display>\n", QEMU_ARCH_ALL)
@@ -2155,6 +3763,171 @@ be omitted, otherwise is must be present and specify a valid audiodev. @end table ETEXI +SRST +``-vnc display[,option[,option[,...]]]`` + Normally, if QEMU is compiled with graphical window support, it + displays output such as guest graphics, guest console, and the QEMU + monitor in a window. With this option, you can have QEMU listen on + VNC display display and redirect the VGA display over the VNC + session. It is very useful to enable the usb tablet device when + using this option (option ``-device usb-tablet``). When using the + VNC display, you must use the ``-k`` parameter to set the keyboard + layout if you are not using en-us. Valid syntax for the display is + + ``to=L`` + With this option, QEMU will try next available VNC displays, + until the number L, if the origianlly defined "-vnc display" is + not available, e.g. port 5900+display is already used by another + application. By default, to=0. + + ``host:d`` + TCP connections will only be allowed from host on display d. By + convention the TCP port is 5900+d. Optionally, host can be + omitted in which case the server will accept connections from + any host. + + ``unix:path`` + Connections will be allowed over UNIX domain sockets where path + is the location of a unix socket to listen for connections on. + + ``none`` + VNC is initialized but not started. The monitor ``change`` + command can be used to later start the VNC server. + + Following the display value there may be one or more option flags + separated by commas. Valid options are + + ``reverse`` + Connect to a listening VNC client via a "reverse" connection. + The client is specified by the display. For reverse network + connections (host:d,``reverse``), the d argument is a TCP port + number, not a display number. + + ``websocket`` + Opens an additional TCP listening port dedicated to VNC + Websocket connections. If a bare websocket option is given, the + Websocket port is 5700+display. An alternative port can be + specified with the syntax ``websocket``\ =port. + + If host is specified connections will only be allowed from this + host. It is possible to control the websocket listen address + independently, using the syntax ``websocket``\ =host:port. + + If no TLS credentials are provided, the websocket connection + runs in unencrypted mode. If TLS credentials are provided, the + websocket connection requires encrypted client connections. + + ``password`` + Require that password based authentication is used for client + connections. + + The password must be set separately using the ``set_password`` + command in the :ref:`pcsys_005fmonitor`. The + syntax to change your password is: + ``set_password <protocol> <password>`` where <protocol> could be + either "vnc" or "spice". + + If you would like to change <protocol> password expiration, you + should use ``expire_password <protocol> <expiration-time>`` + where expiration time could be one of the following options: + now, never, +seconds or UNIX time of expiration, e.g. +60 to + make password expire in 60 seconds, or 1335196800 to make + password expire on "Mon Apr 23 12:00:00 EDT 2012" (UNIX time for + this date and time). + + You can also use keywords "now" or "never" for the expiration + time to allow <protocol> password to expire immediately or never + expire. + + ``tls-creds=ID`` + Provides the ID of a set of TLS credentials to use to secure the + VNC server. They will apply to both the normal VNC server socket + and the websocket socket (if enabled). Setting TLS credentials + will cause the VNC server socket to enable the VeNCrypt auth + mechanism. The credentials should have been previously created + using the ``-object tls-creds`` argument. + + ``tls-authz=ID`` + Provides the ID of the QAuthZ authorization object against which + the client's x509 distinguished name will validated. This object + is only resolved at time of use, so can be deleted and recreated + on the fly while the VNC server is active. If missing, it will + default to denying access. + + ``sasl`` + Require that the client use SASL to authenticate with the VNC + server. The exact choice of authentication method used is + controlled from the system / user's SASL configuration file for + the 'qemu' service. This is typically found in + /etc/sasl2/qemu.conf. If running QEMU as an unprivileged user, + an environment variable SASL\_CONF\_PATH can be used to make it + search alternate locations for the service config. While some + SASL auth methods can also provide data encryption (eg GSSAPI), + it is recommended that SASL always be combined with the 'tls' + and 'x509' settings to enable use of SSL and server + certificates. This ensures a data encryption preventing + compromise of authentication credentials. See the + :ref:`vnc_005fsecurity` section for details on + using SASL authentication. + + ``sasl-authz=ID`` + Provides the ID of the QAuthZ authorization object against which + the client's SASL username will validated. This object is only + resolved at time of use, so can be deleted and recreated on the + fly while the VNC server is active. If missing, it will default + to denying access. + + ``acl`` + Legacy method for enabling authorization of clients against the + x509 distinguished name and SASL username. It results in the + creation of two ``authz-list`` objects with IDs of + ``vnc.username`` and ``vnc.x509dname``. The rules for these + objects must be configured with the HMP ACL commands. + + This option is deprecated and should no longer be used. The new + ``sasl-authz`` and ``tls-authz`` options are a replacement. + + ``lossy`` + Enable lossy compression methods (gradient, JPEG, ...). If this + option is set, VNC client may receive lossy framebuffer updates + depending on its encoding settings. Enabling this option can + save a lot of bandwidth at the expense of quality. + + ``non-adaptive`` + Disable adaptive encodings. Adaptive encodings are enabled by + default. An adaptive encoding will try to detect frequently + updated screen regions, and send updates in these regions using + a lossy encoding (like JPEG). This can be really helpful to save + bandwidth when playing videos. Disabling adaptive encodings + restores the original static behavior of encodings like Tight. + + ``share=[allow-exclusive|force-shared|ignore]`` + Set display sharing policy. 'allow-exclusive' allows clients to + ask for exclusive access. As suggested by the rfb spec this is + implemented by dropping other connections. Connecting multiple + clients in parallel requires all clients asking for a shared + session (vncviewer: -shared switch). This is the default. + 'force-shared' disables exclusive client access. Useful for + shared desktop sessions, where you don't want someone forgetting + specify -shared disconnect everybody else. 'ignore' completely + ignores the shared flag and allows everybody connect + unconditionally. Doesn't conform to the rfb spec but is + traditional QEMU behavior. + + ``key-delay-ms`` + Set keyboard delay, for key down and key up events, in + milliseconds. Default is 10. Keyboards are low-bandwidth + devices, so this slowdown can help the device and guest to keep + up and not lose events in case events are arriving in bulk. + Possible causes for the latter are flaky network connections, or + scripts for automated testing. + + ``audiodev=audiodev`` + Use the specified audiodev when the VNC client requests audio + transmission. When not using an -audiodev argument, this option + must be omitted, otherwise is must be present and specify a + valid audiodev. +ERST STEXI @end table
@@ -2176,6 +3949,12 @@ Use it when installing Windows 2000 to avoid a disk full bug. After Windows 2000 is installed, you no longer need this option (this option slows down the IDE transfers). ETEXI +SRST +``-win2k-hack`` + Use it when installing Windows 2000 to avoid a disk full bug. After + Windows 2000 is installed, you no longer need this option (this + option slows down the IDE transfers). +ERST DEF("no-fd-bootchk", 0, QEMU_OPTION_no_fd_bootchk, "-no-fd-bootchk disable boot signature checking for floppy disks\n",
@@ -2186,6 +3965,11 @@ STEXI Disable boot signature checking for floppy disks in BIOS. May be needed to boot from old floppy disks. ETEXI +SRST +``-no-fd-bootchk`` + Disable boot signature checking for floppy disks in BIOS. May be + needed to boot from old floppy disks. +ERST DEF("no-acpi", 0, QEMU_OPTION_no_acpi, "-no-acpi disable ACPI\n", QEMU_ARCH_I386 | QEMU_ARCH_ARM)
@@ -2196,6 +3980,12 @@ Disable ACPI (Advanced Configuration and Power Interface) support. Use it if your guest OS complains about ACPI problems (PC target machine only). ETEXI +SRST +``-no-acpi`` + Disable ACPI (Advanced Configuration and Power Interface) support. + Use it if your guest OS complains about ACPI problems (PC target + machine only). +ERST DEF("no-hpet", 0, QEMU_OPTION_no_hpet, "-no-hpet disable HPET\n", QEMU_ARCH_I386)
@@ -2204,6 +3994,10 @@ STEXI @findex -no-hpet Disable HPET support. ETEXI +SRST +``-no-hpet`` + Disable HPET support. +ERST DEF("acpitable", HAS_ARG, QEMU_OPTION_acpitable, "-acpitable [sig=str][,rev=n][,oem_id=str][,oem_table_id=str][,oem_rev=n][,asl_compiler_id=str][,asl_compiler_rev=n][,{data|file}=file1[:file2]...]\n"
@@ -2222,6 +4016,18 @@ fields will override the same in the RSDT and the FADT (a.k.a. FACP), in order to ensure the field matches required by the Microsoft SLIC spec and the ACPI spec. ETEXI +SRST +``-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]...]`` + Add ACPI table with specified header fields and context from + specified files. For file=, take whole ACPI table from the specified + files, including all ACPI headers (possible overridden by other + options). For data=, only data portion of the table is used, all + header information is specified in the command line. If a SLIC table + is supplied to QEMU, then the SLIC's oem\_id and oem\_table\_id + fields will override the same in the RSDT and the FADT (a.k.a. + FACP), in order to ensure the field matches required by the + Microsoft SLIC spec and the ACPI spec. +ERST DEF("smbios", HAS_ARG, QEMU_OPTION_smbios, "-smbios file=binary\n"
@@ -2268,6 +4074,28 @@ Specify SMBIOS type 4 fields @item -smbios type=17[,loc_pfx=@var{str}][,bank=@var{str}][,manufacturer=@var{str}][,serial=@var{str}][,asset=@var{str}][,part=@var{str}][,speed=@var{%d}] Specify SMBIOS type 17 fields ETEXI +SRST +``-smbios file=binary`` + Load SMBIOS entry from binary file. + +``-smbios type=0[,vendor=str][,version=str][,date=str][,release=%d.%d][,uefi=on|off]`` + Specify SMBIOS type 0 fields + +``-smbios type=1[,manufacturer=str][,product=str][,version=str][,serial=str][,uuid=uuid][,sku=str][,family=str]`` + Specify SMBIOS type 1 fields + +``-smbios type=2[,manufacturer=str][,product=str][,version=str][,serial=str][,asset=str][,location=str]`` + Specify SMBIOS type 2 fields + +``-smbios type=3[,manufacturer=str][,version=str][,serial=str][,asset=str][,sku=str]`` + Specify SMBIOS type 3 fields + +``-smbios type=4[,sock_pfx=str][,manufacturer=str][,version=str][,serial=str][,asset=str][,part=str]`` + Specify SMBIOS type 4 fields + +``-smbios type=17[,loc_pfx=str][,bank=str][,manufacturer=str][,serial=str][,asset=str][,part=str][,speed=%d]`` + Specify SMBIOS type 17 fields +ERST STEXI @end table
@@ -2866,6 +4694,470 @@ Configure a host network backend (with the options corresponding to the same @option{-netdev} option) and connect it to the emulated hub 0 (the default hub). Use @var{name} to specify the name of the hub port. ETEXI +SRST +``-nic [tap|bridge|user|l2tpv3|vde|netmap|vhost-user|socket][,...][,mac=macaddr][,model=mn]`` + This option is a shortcut for configuring both the on-board + (default) guest NIC hardware and the host network backend in one go. + The host backend options are the same as with the corresponding + ``-netdev`` options below. The guest NIC model can be set with + ``model=modelname``. Use ``model=help`` to list the available device + types. The hardware MAC address can be set with ``mac=macaddr``. + + The following two example do exactly the same, to show how ``-nic`` + can be used to shorten the command line length: + + .. parsed-literal:: + + |qemu_system| -netdev user,id=n1,ipv6=off -device e1000,netdev=n1,mac=52:54:98:76:54:32 + |qemu_system| -nic user,ipv6=off,model=e1000,mac=52:54:98:76:54:32 + +``-nic none`` + Indicate that no network devices should be configured. It is used to + override the default configuration (default NIC with "user" host + network backend) which is activated if no other networking options + are provided. + +``-netdev user,id=id[,option][,option][,...]`` + Configure user mode host network backend which requires no + administrator privilege to run. Valid options are: + + ``id=id`` + Assign symbolic name for use in monitor commands. + + ``ipv4=on|off and ipv6=on|off`` + Specify that either IPv4 or IPv6 must be enabled. If neither is + specified both protocols are enabled. + + ``net=addr[/mask]`` + Set IP network address the guest will see. Optionally specify + the netmask, either in the form a.b.c.d or as number of valid + top-most bits. Default is 10.0.2.0/24. + + ``host=addr`` + Specify the guest-visible address of the host. Default is the + 2nd IP in the guest network, i.e. x.x.x.2. + + ``ipv6-net=addr[/int]`` + Set IPv6 network address the guest will see (default is + fec0::/64). The network prefix is given in the usual hexadecimal + IPv6 address notation. The prefix size is optional, and is given + as the number of valid top-most bits (default is 64). + + ``ipv6-host=addr`` + Specify the guest-visible IPv6 address of the host. Default is + the 2nd IPv6 in the guest network, i.e. xxxx::2. + + ``restrict=on|off`` + If this option is enabled, the guest will be isolated, i.e. it + will not be able to contact the host and no guest IP packets + will be routed over the host to the outside. This option does + not affect any explicitly set forwarding rules. + + ``hostname=name`` + Specifies the client hostname reported by the built-in DHCP + server. + + ``dhcpstart=addr`` + Specify the first of the 16 IPs the built-in DHCP server can + assign. Default is the 15th to 31st IP in the guest network, + i.e. x.x.x.15 to x.x.x.31. + + ``dns=addr`` + Specify the guest-visible address of the virtual nameserver. The + address must be different from the host address. Default is the + 3rd IP in the guest network, i.e. x.x.x.3. + + ``ipv6-dns=addr`` + Specify the guest-visible address of the IPv6 virtual + nameserver. The address must be different from the host address. + Default is the 3rd IP in the guest network, i.e. xxxx::3. + + ``dnssearch=domain`` + Provides an entry for the domain-search list sent by the + built-in DHCP server. More than one domain suffix can be + transmitted by specifying this option multiple times. If + supported, this will cause the guest to automatically try to + append the given domain suffix(es) in case a domain name can not + be resolved. + + Example: + + .. parsed-literal:: + + |qemu_system| -nic user,dnssearch=mgmt.example.org,dnssearch=example.org + + ``domainname=domain`` + Specifies the client domain name reported by the built-in DHCP + server. + + ``tftp=dir`` + When using the user mode network stack, activate a built-in TFTP + server. The files in dir will be exposed as the root of a TFTP + server. The TFTP client on the guest must be configured in + binary mode (use the command ``bin`` of the Unix TFTP client). + + ``tftp-server-name=name`` + In BOOTP reply, broadcast name as the "TFTP server name" + (RFC2132 option 66). This can be used to advise the guest to + load boot files or configurations from a different server than + the host address. + + ``bootfile=file`` + When using the user mode network stack, broadcast file as the + BOOTP filename. In conjunction with ``tftp``, this can be used + to network boot a guest from a local directory. + + Example (using pxelinux): + + .. parsed-literal:: + + |qemu_system| -hda linux.img -boot n -device e1000,netdev=n1 \ + -netdev user,id=n1,tftp=/path/to/tftp/files,bootfile=/pxelinux.0 + + ``smb=dir[,smbserver=addr]`` + When using the user mode network stack, activate a built-in SMB + server so that Windows OSes can access to the host files in + ``dir`` transparently. The IP address of the SMB server can be + set to addr. By default the 4th IP in the guest network is used, + i.e. x.x.x.4. + + In the guest Windows OS, the line: + + :: + + 10.0.2.4 smbserver + + must be added in the file ``C:\WINDOWS\LMHOSTS`` (for windows + 9x/Me) or ``C:\WINNT\SYSTEM32\DRIVERS\ETC\LMHOSTS`` (Windows + NT/2000). + + Then ``dir`` can be accessed in ``\\smbserver\qemu``. + + Note that a SAMBA server must be installed on the host OS. + + ``hostfwd=[tcp|udp]:[hostaddr]:hostport-[guestaddr]:guestport`` + Redirect incoming TCP or UDP connections to the host port + hostport to the guest IP address guestaddr on guest port + guestport. If guestaddr is not specified, its value is x.x.x.15 + (default first address given by the built-in DHCP server). By + specifying hostaddr, the rule can be bound to a specific host + interface. If no connection type is set, TCP is used. This + option can be given multiple times. + + For example, to redirect host X11 connection from screen 1 to + guest screen 0, use the following: + + :: + + # on the host + |qemu_system| -nic user,hostfwd=tcp:127.0.0.1:6001-:6000 + # this host xterm should open in the guest X11 server + xterm -display :1 + + To redirect telnet connections from host port 5555 to telnet + port on the guest, use the following: + + :: + + # on the host + |qemu_system| -nic user,hostfwd=tcp::5555-:23 + telnet localhost 5555 + + Then when you use on the host ``telnet localhost 5555``, you + connect to the guest telnet server. + + ``guestfwd=[tcp]:server:port-dev``; \ ``guestfwd=[tcp]:server:port-cmd:command`` + Forward guest TCP connections to the IP address server on port + port to the character device dev or to a program executed by + cmd:command which gets spawned for each connection. This option + can be given multiple times. + + You can either use a chardev directly and have that one used + throughout QEMU's lifetime, like in the following example: + + :: + + # open 10.10.1.1:4321 on bootup, connect 10.0.2.100:1234 to it whenever + # the guest accesses it + |qemu_system| -nic user,guestfwd=tcp:10.0.2.100:1234-tcp:10.10.1.1:4321 + + Or you can execute a command on every TCP connection established + by the guest, so that QEMU behaves similar to an inetd process + for that virtual server: + + :: + + # call "netcat 10.10.1.1 4321" on every TCP connection to 10.0.2.100:1234 + # and connect the TCP stream to its stdin/stdout + |qemu_system| -nic 'user,id=n1,guestfwd=tcp:10.0.2.100:1234-cmd:netcat 10.10.1.1 4321' + +``-netdev tap,id=id[,fd=h][,ifname=name][,script=file][,downscript=dfile][,br=bridge][,helper=helper]`` + Configure a host TAP network backend with ID id. + + Use the network script file to configure it and the network script + dfile to deconfigure it. If name is not provided, the OS + automatically provides one. The default network configure script is + ``/etc/qemu-ifup`` and the default network deconfigure script is + ``/etc/qemu-ifdown``. Use ``script=no`` or ``downscript=no`` to + disable script execution. + + If running QEMU as an unprivileged user, use the network helper + helper to configure the TAP interface and attach it to the bridge. + The default network helper executable is + ``/path/to/qemu-bridge-helper`` and the default bridge device is + ``br0``. + + ``fd``\ =h can be used to specify the handle of an already opened + host TAP interface. + + Examples: + + :: + + #launch a QEMU instance with the default network script + |qemu_system| linux.img -nic tap + + :: + + #launch a QEMU instance with two NICs, each one connected + #to a TAP device + |qemu_system| linux.img \ + -netdev tap,id=nd0,ifname=tap0 -device e1000,netdev=nd0 \ + -netdev tap,id=nd1,ifname=tap1 -device rtl8139,netdev=nd1 + + :: + + #launch a QEMU instance with the default network helper to + #connect a TAP device to bridge br0 + |qemu_system| linux.img -device virtio-net-pci,netdev=n1 \ + -netdev tap,id=n1,"helper=/path/to/qemu-bridge-helper" + +``-netdev bridge,id=id[,br=bridge][,helper=helper]`` + Connect a host TAP network interface to a host bridge device. + + Use the network helper helper to configure the TAP interface and + attach it to the bridge. The default network helper executable is + ``/path/to/qemu-bridge-helper`` and the default bridge device is + ``br0``. + + Examples: + + :: + + #launch a QEMU instance with the default network helper to + #connect a TAP device to bridge br0 + |qemu_system| linux.img -netdev bridge,id=n1 -device virtio-net,netdev=n1 + + :: + + #launch a QEMU instance with the default network helper to + #connect a TAP device to bridge qemubr0 + |qemu_system| linux.img -netdev bridge,br=qemubr0,id=n1 -device virtio-net,netdev=n1 + +``-netdev socket,id=id[,fd=h][,listen=[host]:port][,connect=host:port]`` + This host network backend can be used to connect the guest's network + to another QEMU virtual machine using a TCP socket connection. If + ``listen`` is specified, QEMU waits for incoming connections on port + (host is optional). ``connect`` is used to connect to another QEMU + instance using the ``listen`` option. ``fd``\ =h specifies an + already opened TCP socket. + + Example: + + :: + + # launch a first QEMU instance + |qemu_system| linux.img \ + -device e1000,netdev=n1,mac=52:54:00:12:34:56 \ + -netdev socket,id=n1,listen=:1234 + # connect the network of this instance to the network of the first instance + |qemu_system| linux.img \ + -device e1000,netdev=n2,mac=52:54:00:12:34:57 \ + -netdev socket,id=n2,connect=127.0.0.1:1234 + +``-netdev socket,id=id[,fd=h][,mcast=maddr:port[,localaddr=addr]]`` + Configure a socket host network backend to share the guest's network + traffic with another QEMU virtual machines using a UDP multicast + socket, effectively making a bus for every QEMU with same multicast + address maddr and port. NOTES: + + 1. Several QEMU can be running on different hosts and share same bus + (assuming correct multicast setup for these hosts). + + 2. mcast support is compatible with User Mode Linux (argument + ``ethN=mcast``), see http://user-mode-linux.sf.net. + + 3. Use ``fd=h`` to specify an already opened UDP multicast socket. + + Example: + + :: + + # launch one QEMU instance + |qemu_system| linux.img \ + -device e1000,netdev=n1,mac=52:54:00:12:34:56 \ + -netdev socket,id=n1,mcast=230.0.0.1:1234 + # launch another QEMU instance on same "bus" + |qemu_system| linux.img \ + -device e1000,netdev=n2,mac=52:54:00:12:34:57 \ + -netdev socket,id=n2,mcast=230.0.0.1:1234 + # launch yet another QEMU instance on same "bus" + |qemu_system| linux.img \ + -device e1000,netdev=n3,mac=52:54:00:12:34:58 \ + -netdev socket,id=n3,mcast=230.0.0.1:1234 + + Example (User Mode Linux compat.): + + :: + + # launch QEMU instance (note mcast address selected is UML's default) + |qemu_system| linux.img \ + -device e1000,netdev=n1,mac=52:54:00:12:34:56 \ + -netdev socket,id=n1,mcast=239.192.168.1:1102 + # launch UML + /path/to/linux ubd0=/path/to/root_fs eth0=mcast + + Example (send packets from host's 1.2.3.4): + + .. parsed-literal:: + + |qemu_system| linux.img \ + -device e1000,netdev=n1,mac=52:54:00:12:34:56 \ + -netdev socket,id=n1,mcast=239.192.168.1:1102,localaddr=1.2.3.4 + +``-netdev l2tpv3,id=id,src=srcaddr,dst=dstaddr[,srcport=srcport][,dstport=dstport],txsession=txsession[,rxsession=rxsession][,ipv6][,udp][,cookie64][,counter][,pincounter][,txcookie=txcookie][,rxcookie=rxcookie][,offset=offset]`` + Configure a L2TPv3 pseudowire host network backend. L2TPv3 (RFC3931) + is a popular protocol to transport Ethernet (and other Layer 2) data + frames between two systems. It is present in routers, firewalls and + the Linux kernel (from version 3.3 onwards). + + This transport allows a VM to communicate to another VM, router or + firewall directly. + + ``src=srcaddr`` + source address (mandatory) + + ``dst=dstaddr`` + destination address (mandatory) + + ``udp`` + select udp encapsulation (default is ip). + + ``srcport=srcport`` + source udp port. + + ``dstport=dstport`` + destination udp port. + + ``ipv6`` + force v6, otherwise defaults to v4. + + ``rxcookie=rxcookie``; \ ``txcookie=txcookie`` + Cookies are a weak form of security in the l2tpv3 specification. + Their function is mostly to prevent misconfiguration. By default + they are 32 bit. + + ``cookie64`` + Set cookie size to 64 bit instead of the default 32 + + ``counter=off`` + Force a 'cut-down' L2TPv3 with no counter as in + draft-mkonstan-l2tpext-keyed-ipv6-tunnel-00 + + ``pincounter=on`` + Work around broken counter handling in peer. This may also help + on networks which have packet reorder. + + ``offset=offset`` + Add an extra offset between header and data + + For example, to attach a VM running on host 4.3.2.1 via L2TPv3 to + the bridge br-lan on the remote Linux host 1.2.3.4: + + :: + + # Setup tunnel on linux host using raw ip as encapsulation + # on 1.2.3.4 + ip l2tp add tunnel remote 4.3.2.1 local 1.2.3.4 tunnel_id 1 peer_tunnel_id 1 \ + encap udp udp_sport 16384 udp_dport 16384 + ip l2tp add session tunnel_id 1 name vmtunnel0 session_id \ + 0xFFFFFFFF peer_session_id 0xFFFFFFFF + ifconfig vmtunnel0 mtu 1500 + ifconfig vmtunnel0 up + brctl addif br-lan vmtunnel0 + + + # on 4.3.2.1 + # launch QEMU instance - if your network has reorder or is very lossy add ,pincounter + + |qemu_system| linux.img -device e1000,netdev=n1 \ + -netdev l2tpv3,id=n1,src=4.2.3.1,dst=1.2.3.4,udp,srcport=16384,dstport=16384,rxsession=0xffffffff,txsession=0xffffffff,counter + +``-netdev vde,id=id[,sock=socketpath][,port=n][,group=groupname][,mode=octalmode]`` + Configure VDE backend to connect to PORT n of a vde switch running + on host and listening for incoming connections on socketpath. Use + GROUP groupname and MODE octalmode to change default ownership and + permissions for communication port. This option is only available if + QEMU has been compiled with vde support enabled. + + Example: + + :: + + # launch vde switch + vde_switch -F -sock /tmp/myswitch + # launch QEMU instance + |qemu_system| linux.img -nic vde,sock=/tmp/myswitch + +``-netdev vhost-user,chardev=id[,vhostforce=on|off][,queues=n]`` + Establish a vhost-user netdev, backed by a chardev id. The chardev + should be a unix domain socket backed one. The vhost-user uses a + specifically defined protocol to pass vhost ioctl replacement + messages to an application on the other end of the socket. On + non-MSIX guests, the feature can be forced with vhostforce. Use + 'queues=n' to specify the number of queues to be created for + multiqueue vhost-user. + + Example: + + :: + + qemu -m 512 -object memory-backend-file,id=mem,size=512M,mem-path=/hugetlbfs,share=on \ + -numa node,memdev=mem \ + -chardev socket,id=chr0,path=/path/to/socket \ + -netdev type=vhost-user,id=net0,chardev=chr0 \ + -device virtio-net-pci,netdev=net0 + +``-netdev hubport,id=id,hubid=hubid[,netdev=nd]`` + Create a hub port on the emulated hub with ID hubid. + + The hubport netdev lets you connect a NIC to a QEMU emulated hub + instead of a single netdev. Alternatively, you can also connect the + hubport to another netdev with ID nd by using the ``netdev=nd`` + option. + +``-net nic[,netdev=nd][,macaddr=mac][,model=type] [,name=name][,addr=addr][,vectors=v]`` + Legacy option to configure or create an on-board (or machine + default) Network Interface Card(NIC) and connect it either to the + emulated hub with ID 0 (i.e. the default hub), or to the netdev nd. + If model is omitted, then the default NIC model associated with the + machine type is used. Note that the default NIC model may change in + future QEMU releases, so it is highly recommended to always specify + a model. Optionally, the MAC address can be changed to mac, the + device address set to addr (PCI cards only), and a name can be + assigned for use in monitor commands. Optionally, for PCI cards, you + can specify the number v of MSI-X vectors that the card should have; + this option currently only affects virtio cards; set v = 0 to + disable MSI-X. If no ``-net`` option is specified, a single NIC is + created. QEMU can emulate several different models of network card. + Use ``-net nic,model=help`` for a list of available devices for your + target. + +``-net user|tap|bridge|socket|l2tpv3|vde[,...][,name=name]`` + Configure a host network backend (with the options corresponding to + the same ``-netdev`` option) and connect it to the emulated hub 0 + (the default hub). Use name to specify the name of the hub port. +ERST STEXI @end table
@@ -3209,6 +5501,264 @@ Connect to a spice virtual machine channel, such as vdiport. Connect to a spice port, allowing a Spice client to handle the traffic identified by a name (preferably a fqdn). ETEXI +SRST +The general form of a character device option is: + +``-chardev backend,id=id[,mux=on|off][,options]`` + Backend is one of: ``null``, ``socket``, ``udp``, ``msmouse``, + ``vc``, ``ringbuf``, ``file``, ``pipe``, ``console``, ``serial``, + ``pty``, ``stdio``, ``braille``, ``tty``, ``parallel``, ``parport``, + ``spicevmc``, ``spiceport``. The specific backend will determine the + applicable options. + + Use ``-chardev help`` to print all available chardev backend types. + + All devices must have an id, which can be any string up to 127 + characters long. It is used to uniquely identify this device in + other command line directives. + + A character device may be used in multiplexing mode by multiple + front-ends. Specify ``mux=on`` to enable this mode. A multiplexer is + a "1:N" device, and here the "1" end is your specified chardev + backend, and the "N" end is the various parts of QEMU that can talk + to a chardev. If you create a chardev with ``id=myid`` and + ``mux=on``, QEMU will create a multiplexer with your specified ID, + and you can then configure multiple front ends to use that chardev + ID for their input/output. Up to four different front ends can be + connected to a single multiplexed chardev. (Without multiplexing + enabled, a chardev can only be used by a single front end.) For + instance you could use this to allow a single stdio chardev to be + used by two serial ports and the QEMU monitor: + + :: + + -chardev stdio,mux=on,id=char0 \ + -mon chardev=char0,mode=readline \ + -serial chardev:char0 \ + -serial chardev:char0 + + You can have more than one multiplexer in a system configuration; + for instance you could have a TCP port multiplexed between UART 0 + and UART 1, and stdio multiplexed between the QEMU monitor and a + parallel port: + + :: + + -chardev stdio,mux=on,id=char0 \ + -mon chardev=char0,mode=readline \ + -parallel chardev:char0 \ + -chardev tcp,...,mux=on,id=char1 \ + -serial chardev:char1 \ + -serial chardev:char1 + + When you're using a multiplexed character device, some escape + sequences are interpreted in the input. See :ref:`mux_005fkeys`. + + Note that some other command line options may implicitly create + multiplexed character backends; for instance ``-serial mon:stdio`` + creates a multiplexed stdio backend connected to the serial port and + the QEMU monitor, and ``-nographic`` also multiplexes the console + and the monitor to stdio. + + There is currently no support for multiplexing in the other + direction (where a single QEMU front end takes input and output from + multiple chardevs). + + Every backend supports the ``logfile`` option, which supplies the + path to a file to record all data transmitted via the backend. The + ``logappend`` option controls whether the log file will be truncated + or appended to when opened. + +The available backends are: + +``-chardev null,id=id`` + A void device. This device will not emit any data, and will drop any + data it receives. The null backend does not take any options. + +``-chardev socket,id=id[,TCP options or unix options][,server][,nowait][,telnet][,websocket][,reconnect=seconds][,tls-creds=id][,tls-authz=id]`` + Create a two-way stream socket, which can be either a TCP or a unix + socket. A unix socket will be created if ``path`` is specified. + Behaviour is undefined if TCP options are specified for a unix + socket. + + ``server`` specifies that the socket shall be a listening socket. + + ``nowait`` specifies that QEMU should not block waiting for a client + to connect to a listening socket. + + ``telnet`` specifies that traffic on the socket should interpret + telnet escape sequences. + + ``websocket`` specifies that the socket uses WebSocket protocol for + communication. + + ``reconnect`` sets the timeout for reconnecting on non-server + sockets when the remote end goes away. qemu will delay this many + seconds and then attempt to reconnect. Zero disables reconnecting, + and is the default. + + ``tls-creds`` requests enablement of the TLS protocol for + encryption, and specifies the id of the TLS credentials to use for + the handshake. The credentials must be previously created with the + ``-object tls-creds`` argument. + + ``tls-auth`` provides the ID of the QAuthZ authorization object + against which the client's x509 distinguished name will be + validated. This object is only resolved at time of use, so can be + deleted and recreated on the fly while the chardev server is active. + If missing, it will default to denying access. + + TCP and unix socket options are given below: + + ``TCP options: port=port[,host=host][,to=to][,ipv4][,ipv6][,nodelay]`` + ``host`` for a listening socket specifies the local address to + be bound. For a connecting socket species the remote host to + connect to. ``host`` is optional for listening sockets. If not + specified it defaults to ``0.0.0.0``. + + ``port`` for a listening socket specifies the local port to be + bound. For a connecting socket specifies the port on the remote + host to connect to. ``port`` can be given as either a port + number or a service name. ``port`` is required. + + ``to`` is only relevant to listening sockets. If it is + specified, and ``port`` cannot be bound, QEMU will attempt to + bind to subsequent ports up to and including ``to`` until it + succeeds. ``to`` must be specified as a port number. + + ``ipv4`` and ``ipv6`` specify that either IPv4 or IPv6 must be + used. If neither is specified the socket may use either + protocol. + + ``nodelay`` disables the Nagle algorithm. + + ``unix options: path=path`` + ``path`` specifies the local path of the unix socket. ``path`` + is required. + +``-chardev udp,id=id[,host=host],port=port[,localaddr=localaddr][,localport=localport][,ipv4][,ipv6]`` + Sends all traffic from the guest to a remote host over UDP. + + ``host`` specifies the remote host to connect to. If not specified + it defaults to ``localhost``. + + ``port`` specifies the port on the remote host to connect to. + ``port`` is required. + + ``localaddr`` specifies the local address to bind to. If not + specified it defaults to ``0.0.0.0``. + + ``localport`` specifies the local port to bind to. If not specified + any available local port will be used. + + ``ipv4`` and ``ipv6`` specify that either IPv4 or IPv6 must be used. + If neither is specified the device may use either protocol. + +``-chardev msmouse,id=id`` + Forward QEMU's emulated msmouse events to the guest. ``msmouse`` + does not take any options. + +``-chardev vc,id=id[[,width=width][,height=height]][[,cols=cols][,rows=rows]]`` + Connect to a QEMU text console. ``vc`` may optionally be given a + specific size. + + ``width`` and ``height`` specify the width and height respectively + of the console, in pixels. + + ``cols`` and ``rows`` specify that the console be sized to fit a + text console with the given dimensions. + +``-chardev ringbuf,id=id[,size=size]`` + Create a ring buffer with fixed size ``size``. size must be a power + of two and defaults to ``64K``. + +``-chardev file,id=id,path=path`` + Log all traffic received from the guest to a file. + + ``path`` specifies the path of the file to be opened. This file will + be created if it does not already exist, and overwritten if it does. + ``path`` is required. + +``-chardev pipe,id=id,path=path`` + Create a two-way connection to the guest. The behaviour differs + slightly between Windows hosts and other hosts: + + On Windows, a single duplex pipe will be created at + ``\\.pipe\path``. + + On other hosts, 2 pipes will be created called ``path.in`` and + ``path.out``. Data written to ``path.in`` will be received by the + guest. Data written by the guest can be read from ``path.out``. QEMU + will not create these fifos, and requires them to be present. + + ``path`` forms part of the pipe path as described above. ``path`` is + required. + +``-chardev console,id=id`` + Send traffic from the guest to QEMU's standard output. ``console`` + does not take any options. + + ``console`` is only available on Windows hosts. + +``-chardev serial,id=id,path=path`` + Send traffic from the guest to a serial device on the host. + + On Unix hosts serial will actually accept any tty device, not only + serial lines. + + ``path`` specifies the name of the serial device to open. + +``-chardev pty,id=id`` + Create a new pseudo-terminal on the host and connect to it. ``pty`` + does not take any options. + + ``pty`` is not available on Windows hosts. + +``-chardev stdio,id=id[,signal=on|off]`` + Connect to standard input and standard output of the QEMU process. + + ``signal`` controls if signals are enabled on the terminal, that + includes exiting QEMU with the key sequence Control-c. This option + is enabled by default, use ``signal=off`` to disable it. + +``-chardev braille,id=id`` + Connect to a local BrlAPI server. ``braille`` does not take any + options. + +``-chardev tty,id=id,path=path`` + ``tty`` is only available on Linux, Sun, FreeBSD, NetBSD, OpenBSD + and DragonFlyBSD hosts. It is an alias for ``serial``. + + ``path`` specifies the path to the tty. ``path`` is required. + +``-chardev parallel,id=id,path=path``; \ ``-chardev parport,id=id,path=path`` + ``parallel`` is only available on Linux, FreeBSD and DragonFlyBSD + hosts. + + Connect to a local parallel port. + + ``path`` specifies the path to the parallel port device. ``path`` is + required. + +``-chardev spicevmc,id=id,debug=debug,name=name`` + ``spicevmc`` is only available when spice support is built in. + + ``debug`` debug level for spicevmc + + ``name`` name of spice channel to connect to + + Connect to a spice virtual machine channel, such as vdiport. + +``-chardev spiceport,id=id,debug=debug,name=name`` + ``spiceport`` is only available when spice support is built in. + + ``debug`` debug level for spicevmc + + ``name`` name of spice port to connect to + + Connect to a spice port, allowing a Spice client to handle the + traffic identified by a name (preferably a fqdn). +ERST STEXI @end table
@@ -3298,6 +5848,69 @@ To create a TPM emulator backend device with chardev socket backend: @end example ETEXI +SRST +The general form of a TPM device option is: + +``-tpmdev backend,id=id[,options]`` + The specific backend type will determine the applicable options. The + ``-tpmdev`` option creates the TPM backend and requires a + ``-device`` option that specifies the TPM frontend interface model. + + Use ``-tpmdev help`` to print all available TPM backend types. + +The available backends are: + +``-tpmdev passthrough,id=id,path=path,cancel-path=cancel-path`` + (Linux-host only) Enable access to the host's TPM using the + passthrough driver. + + ``path`` specifies the path to the host's TPM device, i.e., on a + Linux host this would be ``/dev/tpm0``. ``path`` is optional and by + default ``/dev/tpm0`` is used. + + ``cancel-path`` specifies the path to the host TPM device's sysfs + entry allowing for cancellation of an ongoing TPM command. + ``cancel-path`` is optional and by default QEMU will search for the + sysfs entry to use. + + Some notes about using the host's TPM with the passthrough driver: + + The TPM device accessed by the passthrough driver must not be used + by any other application on the host. + + Since the host's firmware (BIOS/UEFI) has already initialized the + TPM, the VM's firmware (BIOS/UEFI) will not be able to initialize + the TPM again and may therefore not show a TPM-specific menu that + would otherwise allow the user to configure the TPM, e.g., allow the + user to enable/disable or activate/deactivate the TPM. Further, if + TPM ownership is released from within a VM then the host's TPM will + get disabled and deactivated. To enable and activate the TPM again + afterwards, the host has to be rebooted and the user is required to + enter the firmware's menu to enable and activate the TPM. If the TPM + is left disabled and/or deactivated most TPM commands will fail. + + To create a passthrough TPM use the following two options: + + :: + + -tpmdev passthrough,id=tpm0 -device tpm-tis,tpmdev=tpm0 + + Note that the ``-tpmdev`` id is ``tpm0`` and is referenced by + ``tpmdev=tpm0`` in the device option. + +``-tpmdev emulator,id=id,chardev=dev`` + (Linux-host only) Enable access to a TPM emulator using Unix domain + socket based chardev backend. + + ``chardev`` specifies the unique ID of a character device backend + that provides connection to the software TPM server. + + To create a TPM emulator backend device with chardev socket backend: + + :: + + -chardev socket,id=chrtpm,path=/tmp/swtpm-sock -tpmdev emulator,id=tpm0,chardev=chrtpm -device tpm-tis,tpmdev=tpm0 +ERST STEXI @end table
@@ -3315,6 +5928,13 @@ for easier testing of various kernels. @table @option ETEXI +SRST +When using these options, you can use a given Linux or Multiboot kernel +without installing it in the disk image. It can be useful for easier +testing of various kernels. + + +ERST DEF("kernel", HAS_ARG, QEMU_OPTION_kernel, \ "-kernel bzImage use 'bzImage' as kernel image\n", QEMU_ARCH_ALL)
@@ -3324,6 +5944,11 @@ STEXI Use @var{bzImage} as kernel image. The kernel can be either a Linux kernel or in multiboot format. ETEXI +SRST +``-kernel bzImage`` + Use bzImage as kernel image. The kernel can be either a Linux kernel + or in multiboot format. +ERST DEF("append", HAS_ARG, QEMU_OPTION_append, \ "-append cmdline use 'cmdline' as kernel command line\n", QEMU_ARCH_ALL)
@@ -3332,6 +5957,10 @@ STEXI @findex -append Use @var{cmdline} as kernel command line ETEXI +SRST +``-append cmdline`` + Use cmdline as kernel command line +ERST DEF("initrd", HAS_ARG, QEMU_OPTION_initrd, \ "-initrd file use 'file' as initial ram disk\n", QEMU_ARCH_ALL)
@@ -3347,6 +5976,16 @@ This syntax is only available with multiboot. Use @var{file1} and @var{file2} as modules and pass arg=foo as parameter to the first module. ETEXI +SRST +``-initrd file``
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Signature · 1 line
2.20.1
Part of the diff is not shown here. View the raw message.
[PULL 32/33] docs: Remove old texinfo sources
In reply to Peter MaydellWe can now delete the old .texi files, which we have been keeping in the tree as a parallel set of documentation to the new rST sources. The only remaining use of Texinfo is the autogenerated manuals and HTML documents created from the QAPI JSON doc comments.
Message-id: [email protected]
--- MAINTAINERS | 5 +- docs/system/build-platforms.texi | 67 ---- docs/system/cpu-models-mips.texi | 157 ---------- docs/system/cpu-models-x86.texi | 482 ----------------------------- docs/system/deprecated.texi | 377 ---------------------- docs/system/gdb.texi | 71 ----- docs/system/images.texi | 88 ------ docs/system/invocation.texi | 240 -------------- docs/system/ivshmem.texi | 60 ---- docs/system/keys.texi | 43 --- docs/system/license.texi | 9 - docs/system/linuxboot.texi | 27 -- docs/system/managed-startup.texi | 35 --- docs/system/monitor.texi | 34 -- docs/system/mux-chardev.texi | 44 --- docs/system/net.texi | 96 ------ docs/system/qemu-option-trace.texi | 28 -- docs/system/quickstart.texi | 12 - docs/system/security.texi | 167 ---------- docs/system/target-arm.texi | 245 --------------- docs/system/target-i386.texi | 91 ------ docs/system/target-m68k.texi | 25 -- docs/system/target-mips.texi | 150 --------- docs/system/target-ppc.texi | 52 ---- docs/system/target-sparc.texi | 68 ---- docs/system/target-sparc64.texi | 38 --- docs/system/target-xtensa.texi | 35 --- docs/system/tls.texi | 329 -------------------- docs/system/usb.texi | 115 ------- docs/system/vnc-security.texi | 196 ------------ qemu-doc.texi | 201 ------------ 31 files changed, 1 insertion(+), 3586 deletions(-) delete mode 100644 docs/system/build-platforms.texi delete mode 100644 docs/system/cpu-models-mips.texi delete mode 100644 docs/system/cpu-models-x86.texi delete mode 100644 docs/system/deprecated.texi delete mode 100644 docs/system/gdb.texi delete mode 100644 docs/system/images.texi delete mode 100644 docs/system/invocation.texi delete mode 100644 docs/system/ivshmem.texi delete mode 100644 docs/system/keys.texi delete mode 100644 docs/system/license.texi delete mode 100644 docs/system/linuxboot.texi delete mode 100644 docs/system/managed-startup.texi delete mode 100644 docs/system/monitor.texi delete mode 100644 docs/system/mux-chardev.texi delete mode 100644 docs/system/net.texi delete mode 100644 docs/system/qemu-option-trace.texi delete mode 100644 docs/system/quickstart.texi delete mode 100644 docs/system/security.texi delete mode 100644 docs/system/target-arm.texi delete mode 100644 docs/system/target-i386.texi delete mode 100644 docs/system/target-m68k.texi delete mode 100644 docs/system/target-mips.texi delete mode 100644 docs/system/target-ppc.texi delete mode 100644 docs/system/target-sparc.texi delete mode 100644 docs/system/target-sparc64.texi delete mode 100644 docs/system/target-xtensa.texi delete mode 100644 docs/system/tls.texi delete mode 100644 docs/system/usb.texi delete mode 100644 docs/system/vnc-security.texi delete mode 100644 qemu-doc.texi
MAINTAINERS +1 -4
@@ -215,7 +215,6 @@ S: Maintained F: target/mips/ F: default-configs/*mips* F: disas/*mips* -F: docs/system/cpu-models-mips.texi F: docs/system/cpu-models-mips.rst.inc F: hw/intc/mips_gic.c F: hw/mips/
@@ -321,7 +320,6 @@ F: tests/tcg/i386/ F: tests/tcg/x86_64/ F: hw/i386/ F: disas/i386.c -F: docs/system/cpu-models-x86.texi F: docs/system/cpu-models-x86.rst.inc T: git https://github.com/ehabkost/qemu.git x86-next
@@ -2236,7 +2234,7 @@ M: Stefan Hajnoczi <[email protected]> S: Maintained F: trace/ F: trace-events -F: docs/system/qemu-option-trace.texi +F: docs/qemu-option-trace.rst.inc F: scripts/tracetool.py F: scripts/tracetool/ F: scripts/qemu-trace-stap*
@@ -2806,7 +2804,6 @@ F: contrib/gitdm/* Incompatible changes R: [email protected] -F: docs/system/deprecated.texi F: docs/system/deprecated.rst Build System
docs/system/build-platforms.texi deleted +0 -67
67 lines not on this page · raw message
docs/system/cpu-models-mips.texi deleted +0 -157
157 lines not on this page · raw message
docs/system/cpu-models-x86.texi deleted +0 -482
482 lines not on this page · raw message
docs/system/deprecated.texi deleted +0 -377
377 lines not on this page · raw message
docs/system/gdb.texi deleted +0 -71
71 lines not on this page · raw message
docs/system/images.texi deleted +0 -88
88 lines not on this page · raw message
docs/system/invocation.texi deleted +0 -240
240 lines not on this page · raw message
docs/system/ivshmem.texi deleted +0 -60
60 lines not on this page · raw message
docs/system/keys.texi deleted +0 -43
43 lines not on this page · raw message
docs/system/license.texi deleted +0 -9
@@ -1,9 +0,0 @@ -@node License -@appendix License - -QEMU is a trademark of Fabrice Bellard. - -QEMU is released under the -@url{https://www.gnu.org/licenses/gpl-2.0.txt,GNU General Public License}, -version 2. Parts of QEMU have specific licenses, see file -@url{https://git.qemu.org/?p=qemu.git;a=blob_plain;f=LICENSE,LICENSE}.
docs/system/linuxboot.texi deleted +0 -27
@@ -1,27 +0,0 @@ -@node direct_linux_boot -@section Direct Linux Boot - -This section explains how to launch a Linux kernel inside QEMU without -having to make a full bootable image. It is very useful for fast Linux -kernel testing. - -The syntax is: -@example -@value{qemu_system} -kernel bzImage -hda rootdisk.img -append "root=/dev/hda" -@end example - -Use @option{-kernel} to provide the Linux kernel image and -@option{-append} to give the kernel command line arguments. The -@option{-initrd} option can be used to provide an INITRD image. - -If you do not need graphical output, you can disable it and redirect -the virtual serial port and the QEMU monitor to the console with the -@option{-nographic} option. The typical command line is: -@example -@value{qemu_system} -kernel bzImage -hda rootdisk.img \ - -append "root=/dev/hda console=ttyS0" -nographic -@end example - -Use @key{Ctrl-a c} to switch between the serial console and the -monitor (@pxref{pcsys_keys}). -
docs/system/managed-startup.texi deleted +0 -35
@@ -1,35 +0,0 @@ -@node managed_startup -@section Managed start up options - -In system mode emulation, it's possible to create a VM in a paused state using -the -S command line option. In this state the machine is completely initialized -according to command line options and ready to execute VM code but VCPU threads -are not executing any code. The VM state in this paused state depends on the way -QEMU was started. It could be in: -@table @asis -@item initial state (after reset/power on state) -@item with direct kernel loading, the initial state could be amended to execute -code loaded by QEMU in the VM's RAM and with incoming migration -@item with incoming migration, initial state will by amended with the migrated -machine state after migration completes. -@end table - -This paused state is typically used by users to query machine state and/or -additionally configure the machine (by hotplugging devices) in runtime before -allowing VM code to run. - -However, at the -S pause point, it's impossible to configure options that affect -initial VM creation (like: -smp/-m/-numa ...) or cold plug devices. The -experimental --preconfig command line option allows pausing QEMU -before the initial VM creation, in a ``preconfig'' state, where additional -queries and configuration can be performed via QMP before moving on to -the resulting configuration startup. In the preconfig state, QEMU only allows -a limited set of commands over the QMP monitor, where the commands do not -depend on an initialized machine, including but not limited to: -@table @asis -@item qmp_capabilities -@item query-qmp-schema -@item query-commands -@item query-status -@item x-exit-preconfig -@end table
docs/system/monitor.texi deleted +0 -34
@@ -1,34 +0,0 @@ -@node pcsys_monitor -@section QEMU Monitor - -The QEMU monitor is used to give complex commands to the QEMU -emulator. You can use it to: - -@itemize @minus - -@item -Remove or insert removable media images -(such as CD-ROM or floppies). - -@item -Freeze/unfreeze the Virtual Machine (VM) and save or restore its state -from a disk file. - -@item Inspect the VM state without an external debugger. - -@end itemize - -@subsection Commands - -The following commands are available: - -@include qemu-monitor.texi - -@include qemu-monitor-info.texi - -@subsection Integer expressions - -The monitor understands integers expressions for every integer -argument. You can use register names to get the value of specifics -CPU registers by prefixing them with @emph{$}. -
docs/system/mux-chardev.texi deleted +0 -44
44 lines not on this page · raw message
docs/system/net.texi deleted +0 -96
96 lines not on this page · raw message
docs/system/qemu-option-trace.texi deleted +0 -28
@@ -1,28 +0,0 @@ -@c The contents of this file must be kept in sync with qemu-option-trace.rst.inc -@c until all the users of the texi file have been converted to rst and -@c the texi file can be removed. - -Specify tracing options. - -@table @option -@item [enable=]@var{pattern} -Immediately enable events matching @var{pattern} -(either event name or a globbing pattern). This option is only -available if QEMU has been compiled with the @var{simple}, @var{log} -or @var{ftrace} tracing backend. To specify multiple events or patterns, -specify the @option{-trace} option multiple times. - -Use @code{-trace help} to print a list of names of trace points. - -@item events=@var{file} -Immediately enable events listed in @var{file}. -The file must contain one event name (as listed in the @file{trace-events-all} -file) per line; globbing patterns are accepted too. This option is only -available if QEMU has been compiled with the @var{simple}, @var{log} or -@var{ftrace} tracing backend. - -@item file=@var{file} -Log output traces to @var{file}. -This option is only available if QEMU has been compiled with -the @var{simple} tracing backend. -@end table
docs/system/quickstart.texi deleted +0 -12
@@ -1,12 +0,0 @@ -@node pcsys_quickstart -@section Quick Start - -Download and uncompress a PC hard disk image with Linux installed (e.g. -@file{linux.img}) and type: - -@example -@value{qemu_system} linux.img -@end example - -Linux should boot and give you a prompt. -
docs/system/security.texi deleted +0 -167
167 lines not on this page · raw message
docs/system/target-arm.texi deleted +0 -245
245 lines not on this page · raw message
docs/system/target-i386.texi deleted +0 -91
91 lines not on this page · raw message
docs/system/target-m68k.texi deleted +0 -25
@@ -1,25 +0,0 @@ -@node ColdFire System emulator -@section ColdFire System emulator - -Use the executable @file{qemu-system-m68k} to simulate a ColdFire machine. -The emulator is able to boot a uClinux kernel. - -The M5208EVB emulation includes the following devices: - -@itemize @minus -@item -MCF5208 ColdFire V2 Microprocessor (ISA A+ with EMAC). -@item -Three Two on-chip UARTs. -@item -Fast Ethernet Controller (FEC) -@end itemize - -The AN5206 emulation includes the following devices: - -@itemize @minus -@item -MCF5206 ColdFire V2 Microprocessor. -@item -Two on-chip UARTs. -@end itemize
docs/system/target-mips.texi deleted +0 -150
150 lines not on this page · raw message
docs/system/target-ppc.texi deleted +0 -52
52 lines not on this page · raw message
docs/system/target-sparc.texi deleted +0 -68
68 lines not on this page · raw message
docs/system/target-sparc64.texi deleted +0 -38
@@ -1,38 +0,0 @@ -@node Sparc64 System emulator -@section Sparc64 System emulator - -Use the executable @file{qemu-system-sparc64} to simulate a Sun4u -(UltraSPARC PC-like machine), Sun4v (T1 PC-like machine), or generic -Niagara (T1) machine. The Sun4u emulator is mostly complete, being -able to run Linux, NetBSD and OpenBSD in headless (-nographic) mode. The -Sun4v emulator is still a work in progress. - -The Niagara T1 emulator makes use of firmware and OS binaries supplied in the S10image/ directory -of the OpenSPARC T1 project @url{http://download.oracle.com/technetwork/systems/opensparc/OpenSPARCT1_Arch.1.5.tar.bz2} -and is able to boot the disk.s10hw2 Solaris image. -@example -qemu-system-sparc64 -M niagara -L /path-to/S10image/ \ - -nographic -m 256 \ - -drive if=pflash,readonly=on,file=/S10image/disk.s10hw2 -@end example - - -QEMU emulates the following peripherals: - -@itemize @minus -@item -UltraSparc IIi APB PCI Bridge -@item -PCI VGA compatible card with VESA Bochs Extensions -@item -PS/2 mouse and keyboard -@item -Non Volatile RAM M48T59 -@item -PC-compatible serial ports -@item -2 PCI IDE interfaces with hard disk and CD-ROM support -@item -Floppy disk -@end itemize -
docs/system/target-xtensa.texi deleted +0 -35
@@ -1,35 +0,0 @@ -@node Xtensa System emulator -@section Xtensa System emulator - -Two executables cover simulation of both Xtensa endian options, -@file{qemu-system-xtensa} and @file{qemu-system-xtensaeb}. -Two different machine types are emulated: - -@itemize @minus -@item -Xtensa emulator pseudo board "sim" -@item -Avnet LX60/LX110/LX200 board -@end itemize - -The sim pseudo board emulation provides an environment similar -to one provided by the proprietary Tensilica ISS. -It supports: - -@itemize @minus -@item -A range of Xtensa CPUs, default is the DC232B -@item -Console and filesystem access via semihosting calls -@end itemize - -The Avnet LX60/LX110/LX200 emulation supports: - -@itemize @minus -@item -A range of Xtensa CPUs, default is the DC232B -@item -16550 UART -@item -OpenCores 10/100 Mbps Ethernet MAC -@end itemize
docs/system/tls.texi deleted +0 -329
230 lines not on this page · raw message
docs/system/usb.texi deleted +0 -115
115 lines not on this page · raw message
docs/system/vnc-security.texi deleted +0 -196
196 lines not on this page · raw message
qemu-doc.texi deleted +0 -201
201 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
2.20.1
Part of the diff is not shown here. View the raw message.
Patchew URL: https://patchew.org/QEMU/[email protected]/
Patchew URL: https://patchew.org/QEMU/[email protected]/
Hi,
This series seems to have some coding style problems. See output below for more information:
Subject: [PULL 00/33] docs queue
Message-id: [email protected]
Type: series
=== TEST SCRIPT BEGIN ===
#!/bin/bash
git rev-parse base > /dev/null || exit 0
git config --local diff.renamelimit 0
git config --local diff.renames True
git config --local diff.algorithm histogram./scripts/checkpatch.pl --mailback base..
=== TEST SCRIPT END ===
Updating 3c8cf5a9c21ff8782164d1def7f44bd888713384
From https://github.com/patchew-project/qemu
ef9f8fc..6b02fca master -> master - [tag update] patchew/[email protected] -> patchew/[email protected] - [tag update] patchew/[email protected] -> patchew/[email protected] - [tag update] patchew/[email protected] -> patchew/[email protected] - [tag update] patchew/[email protected] -> patchew/[email protected] * [new tag] patchew/[email protected] -> patchew/[email protected]
Switched to a new branch 'test'
822e267 *.hx: Remove all the STEXI/ETEXI blocks
cf4d8f0 docs: Remove old texinfo sources
e128596 docs: Stop building qemu-doc
61ca231 ui/cocoa.m: Update documentation file and pathname
85ace89 docs: Generate qemu.1 manpage with Sphinx
8f8f2d7 docs: Split out sections for the manpage into .rst.inc files 0b4d8cf qemu-options.hx: Fix up the autogenerated rST
30a86e0 qemu-options.hx: Add rST documentation fragments
558bcaf scripts/hxtool-conv: Archive script used in qemu-options.hx conversion 6088045 docs: Roll -prom-env and -g target-specific info into qemu-options.hx 4a35bdb docs: Roll semihosting option information into qemu-options.hx f758f58 doc/scripts/hxtool.py: Strip trailing ':' from DEFHEADING/ARCHHEADING ea15a66 hmp-commands-info.hx: Add rST documentation fragments
2a6846e hmp-commands.hx: Add rST documentation fragments
308ea32 docs/system: convert Texinfo documentation to rST
0581547 docs/system: convert the documentation of deprecated features to rST. 0b0b7a5 docs/system: convert managed startup to rST.
5b7a3ff docs/system: Convert security.texi to rST format
1c6082e docs/system: Convert qemu-cpu-models.texi to rST
4067be2 docs: Create defs.rst.inc as a place to define substitutions aae104f docs/system: put qemu-block-drivers body in an included file d733d71 qemu-doc: remove indices other than findex
cc1488c qemu-doc: move included files to docs/system
6eb687d qemu-doc: move qemu-tech.texi into main section
7d1ebfd qemu-doc: Remove the "CPU emulation" part of the "Implementation notes" 9efad3c qemu-doc: split target sections to separate files
54f7530 qemu-doc: move system requirements chapter inside PC section 9ae6c4f qemu-doc: extract common system emulator documentation from the PC section f22f4e7 qemu-doc: split qemu-doc.texi in multiple files
8951b04 qemu-doc: split CPU models doc between MIPS and x86 parts 3241a52 texi2pod: parse @include directives outside "@c man" blocks 779838b qemu-doc: remove target OS documentation
0e3b6a3 qemu-doc: convert user-mode emulation to a separate Sphinx manual
=== OUTPUT BEGIN ===
1/33 Checking commit 0e3b6a379032 (qemu-doc: convert user-mode emulation to a separate Sphinx manual)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
#87:
new file mode 100644
total: 0 errors, 1 warnings, 718 lines checked
Patch 1/33 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
2/33 Checking commit 779838b92f6d (qemu-doc: remove target OS documentation) 3/33 Checking commit 3241a5236d14 (texi2pod: parse @include directives outside "@c man" blocks) 4/33 Checking commit 8951b04f2f82 (qemu-doc: split CPU models doc between MIPS and x86 parts)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
#95:
new file mode 100644
total: 0 errors, 1 warnings, 548 lines checked
Patch 4/33 has style problems, please review. If any of these errors are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
5/33 Checking commit f22f4e746e48 (qemu-doc: split qemu-doc.texi in multiple files)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #52:
new file mode 100644
total: 0 errors, 1 warnings, 2965 lines checked
Patch 5/33 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
6/33 Checking commit 9ae6c4f03a1c (qemu-doc: extract common system emulator documentation from the PC section) 7/33 Checking commit 54f75306ad48 (qemu-doc: move system requirements chapter inside PC section) 8/33 Checking commit 9efad3cf1480 (qemu-doc: split target sections to separate files)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
#19:
new file mode 100644
total: 0 errors, 1 warnings, 1727 lines checked
Patch 8/33 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
9/33 Checking commit 7d1ebfdd5880 (qemu-doc: Remove the "CPU emulation" part of the "Implementation notes") 10/33 Checking commit 6eb687df0f7b (qemu-doc: move qemu-tech.texi into main section)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
#37:
rename from qemu-tech.texi
total: 0 errors, 1 warnings, 49 lines checked
Patch 10/33 has style problems, please review. If any of these errors are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
11/33 Checking commit cc1488c492b6 (qemu-doc: move included files to docs/system)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #80:
rename from qemu-deprecated.texi
total: 0 errors, 1 warnings, 62 lines checked
Patch 11/33 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
12/33 Checking commit d733d713d050 (qemu-doc: remove indices other than findex) 13/33 Checking commit aae104fbc65c (docs/system: put qemu-block-drivers body in an included file)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
#1040:
new file mode 100644
total: 0 errors, 1 warnings, 1956 lines checked
Patch 13/33 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
14/33 Checking commit 4067be2cf173 (docs: Create defs.rst.inc as a place to define substitutions)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
#53:
new file mode 100644
total: 0 errors, 1 warnings, 38 lines checked
Patch 14/33 has style problems, please review. If any of these errors are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
15/33 Checking commit 1c6082e9ff56 (docs/system: Convert qemu-cpu-models.texi to rST)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #136:
new file mode 100644
total: 0 errors, 1 warnings, 557 lines checked
Patch 15/33 has style problems, please review. If any of these errors are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
16/33 Checking commit 5b7a3ffdeb30 (docs/system: Convert security.texi to rST format)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #30:
new file mode 100644
total: 0 errors, 1 warnings, 178 lines checked
Patch 16/33 has style problems, please review. If any of these errors are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
17/33 Checking commit 0b0b7a531654 (docs/system: convert managed startup to rST.)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #32:
new file mode 100644
total: 0 errors, 1 warnings, 42 lines checked
Patch 17/33 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
18/33 Checking commit 05815476f955 (docs/system: convert the documentation of deprecated features to rST.)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
#24:
new file mode 100644
total: 0 errors, 1 warnings, 450 lines checked
Patch 18/33 has style problems, please review. If any of these errors are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
19/33 Checking commit 308ea32b5946 (docs/system: convert Texinfo documentation to rST)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #77:
new file mode 100644
total: 0 errors, 1 warnings, 2224 lines checked
Patch 19/33 has style problems, please review. If any of these errors are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
20/33 Checking commit 2a6846e77a48 (hmp-commands.hx: Add rST documentation fragments)
ERROR: trailing whitespace
#992: FILE: hmp-commands.hx:1674:
+ \ $
total: 1 errors, 0 warnings, 1385 lines checked
Patch 20/33 has style problems, please review. If any of these errors are false positives report them to the maintainer, see CHECKPATCH in MAINTAINERS.
21/33 Checking commit ea15a66b2ce0 (hmp-commands-info.hx: Add rST documentation fragments) 22/33 Checking commit f758f58b4eb5 (doc/scripts/hxtool.py: Strip trailing ':' from DEFHEADING/ARCHHEADING) 23/33 Checking commit 4a35bdb47c94 (docs: Roll semihosting option information into qemu-options.hx) 24/33 Checking commit 6088045abde3 (docs: Roll -prom-env and -g target-specific info into qemu-options.hx) 25/33 Checking commit 558bcaf31981 (scripts/hxtool-conv: Archive script used in qemu-options.hx conversion)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
#19:
new file mode 100755
WARNING: line over 80 characters
#64: FILE: scripts/hxtool-conv.pl:41:
+ # Return true if every line in the fragment is a start or end table directive
total: 0 errors, 2 warnings, 137 lines checked
Patch 25/33 has style problems, please review. If any of these errors are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
26/33 Checking commit 30a86e06aaf8 (qemu-options.hx: Add rST documentation fragments) 27/33 Checking commit 0b4d8cf6fe5e (qemu-options.hx: Fix up the autogenerated rST)
ERROR: trailing whitespace
#73: FILE: qemu-options.hx:452:
+ \ $
ERROR: trailing whitespace
#77: FILE: qemu-options.hx:456:
+ \ $
ERROR: trailing whitespace
#79: FILE: qemu-options.hx:458:
+ \ $
ERROR: trailing whitespace
#81: FILE: qemu-options.hx:460:
+ \ $
ERROR: trailing whitespace
#92: FILE: qemu-options.hx:701:
+ \ $
ERROR: trailing whitespace
#125: FILE: qemu-options.hx:1661:
+ \ $
ERROR: trailing whitespace
#127: FILE: qemu-options.hx:1663:
+ \ $
ERROR: trailing whitespace
#163: FILE: qemu-options.hx:2618:
+ \ $
ERROR: trailing whitespace
#178: FILE: qemu-options.hx:2821:
+ \ $
ERROR: trailing whitespace
#180: FILE: qemu-options.hx:2823:
+ \ $
ERROR: trailing whitespace
#332: FILE: qemu-options.hx:6606:
+ \ $
ERROR: trailing whitespace
#351: FILE: qemu-options.hx:7235:
+ \ $
ERROR: trailing whitespace
#407: FILE: qemu-options.hx:8799:
+ \ $
total: 13 errors, 0 warnings, 379 lines checked
Patch 27/33 has style problems, please review. If any of these errors are false positives report them to the maintainer, see CHECKPATCH in MAINTAINERS.
28/33 Checking commit 8f8f2d732e8e (docs: Split out sections for the manpage into .rst.inc files)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
#24:
new file mode 100644
total: 0 errors, 1 warnings, 722 lines checked
Patch 28/33 has style problems, please review. If any of these errors are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
29/33 Checking commit 85ace89f101a (docs: Generate qemu.1 manpage with Sphinx)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #74:
new file mode 100644
total: 0 errors, 1 warnings, 87 lines checked
Patch 29/33 has style problems, please review. If any of these errors are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
30/33 Checking commit 61ca231753e1 (ui/cocoa.m: Update documentation file and pathname) 31/33 Checking commit e12859635812 (docs: Stop building qemu-doc)
32/33 Checking commit cf4d8f0796a2 (docs: Remove old texinfo sources)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #57:
deleted file mode 100644
total: 0 errors, 1 warnings, 29 lines checked
Patch 32/33 has style problems, please review. If any of these errors are false positives report them to the maintainer, see CHECKPATCH in MAINTAINERS.
33/33 Checking commit 822e26748fc2 (*.hx: Remove all the STEXI/ETEXI blocks) === OUTPUT END ===
Test command exited with code: 1
The full log is available at
http://patchew.org/logs/[email protected]/testing.checkpatch/?type=message.
---
Email generated automatically by Patchew [https://patchew.org/].
Please send your feedback to [email protected]
Peter Maydell
AppliedQuoted 4 lines · Peter Maydell
As promised, here's a pull request with the patches which do the qemu-doc rST conversion.
Quoted 8 lines
Minor changes since the patchset was posted:
* rebased
* the two auto-generated patches have been regenerated, to account for the qemu-options.hx changes that went into master since the patchset was postedI have also now done the testing of the OSX change to the docs link. We've agreed to leave updating the Windows installer for later.
Applied, thanks.
Please update the changelog at https://wiki.qemu.org/ChangeLog/5.0
for any user-visible changes.
-- PMM
Patchew URL: https://patchew.org/QEMU/[email protected]/
Patchew URL: https://patchew.org/QEMU/[email protected]/
Hi,
This series failed the docker-mingw@fedora build test. Please find the testing commands and their output below. If you have Docker installed, you can probably reproduce it locally.
=== TEST SCRIPT BEGIN ===
#! /bin/bash
export ARCH=x86_64
make docker-image-fedora V=1 NETWORK=1
time make docker-test-mingw@fedora J=14 NETWORK=1
=== TEST SCRIPT END ===
File: "/tmp/qemu-nsis\qemu-doc.html" -> no files found.
Usage: File [/nonfatal] [/a] ([/r] [/x filespec [...]] filespec [...] |
/oname=outfile one_file_only)
Error in script "/tmp/qemu-test/src/qemu.nsi" on line 180 -- aborting creation process
make: *** [Makefile:1162: qemu-setup-4.2.50.exe] Error 1
Traceback (most recent call last):
File "./tests/docker/docker.py", line 664, in <module>
sys.exit(main())
---
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['sudo', '-n', 'docker', 'run', '--label', 'com.qemu.instance.uuid=e30feec132e54b2ca9024611799ee279', '-u', '1001', '--security-opt', 'seccomp=unconfined', '--rm', '-e', 'TARGET_LIST=', '-e', 'EXTRA_CONFIGURE_OPTS=', '-e', 'V=', '-e', 'J=14', '-e', 'DEBUG=', '-e', 'SHOW_ENV=', '-e', 'CCACHE_DIR=/var/tmp/ccache', '-v', '/home/patchew/.cache/qemu-docker-ccache:/var/tmp/ccache:z', '-v', '/var/tmp/patchew-tester-tmp-4j5z63bl/src/docker-src.2020-03-06-06.51.46.20058:/var/tmp/qemu:z,ro', 'qemu:fedora', '/var/tmp/qemu/run', 'test-mingw']' returned non-zero exit status 2. filter=--filter=label=com.qemu.instance.uuid=e30feec132e54b2ca9024611799ee279
make[1]: *** [docker-run] Error 1
make[1]: Leaving directory `/var/tmp/patchew-tester-tmp-4j5z63bl/src'
make: *** [docker-run-test-mingw@fedora] Error 2
real 4m7.853s
user 0m6.019s
The full log is available at
http://patchew.org/logs/[email protected]/testing.docker-mingw@fedora/?type=message.
---
Email generated automatically by Patchew [https://patchew.org/].
Please send your feedback to [email protected]