qemu-doc reorganization and Sphinx version
v2 cover qemu-doc reorganization and Sphinx version
This series converts qemu-doc to Sphinx, providing the fourth and fifth manuals (user-mode emulation and system emulation).
Patch 1 extracts the user-mode emulation documentation to docs/user, converting it to rST.
Patches 2 to 12 split qemu-doc.texi in multiple files, slightly reorganizing the sections and removing wildly obsolete material. At this point qemu-doc.texi looks very much like what docs/system will be.
Patch 13 tweaks the construction of the qemu-block-drivers man page from the material that goes in docs/system. Instead of usihg an "only" directive, the man page is in an orphaned .rst file and the common material is included.
Patch 14 is Kashyap's conversion of qemu-cpu-models.texi to rST, tweaked in the same way as patch 12.
Patches 15 to 17 are Peter's manual conversion of security.texi, qemu-tech.texi and qemu-deprecated.texi.
Patch 18 finally is the mass automated conversion of everything else. The content is temporarily preserved in qemu-doc.texi as well, until the hxtool-based documentation is converted to rST.
Paolo
Supersedes: <[email protected]>
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 (4):
qemu-doc: Remove the "CPU emulation" part of the "Implementation
notes"
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.
MAINTAINERS | 6 +-
Makefile | 42 +-
docs/conf.py | 2 +-
docs/system/build-platforms.rst | 79 +
docs/system/build-platforms.texi | 67 +
docs/system/conf.py | 10 +-
docs/system/cpu-models-mips.rst.inc | 105 +
docs/system/cpu-models-mips.texi | 157 +
docs/system/cpu-models-x86.rst.inc | 365 +++
.../cpu-models-x86.texi} | 221 +-
docs/system/defs.rst.inc | 2 +
docs/system/deprecated.rst | 446 +++
.../system/deprecated.texi | 0
docs/system/gdb.rst | 81 +
docs/system/gdb.texi | 71 +
docs/system/images.rst | 85 +
docs/system/images.texi | 88 +
docs/system/index.rst | 22 +-
docs/system/invocation.rst | 242 ++
docs/system/invocation.texi | 240 ++
docs/system/ivshmem.rst | 64 +
docs/system/ivshmem.texi | 60 +
docs/system/keys.rst | 40 +
docs/system/keys.texi | 43 +
docs/system/license.rst | 11 +
docs/system/license.texi | 9 +
docs/system/linuxboot.rst | 30 +
docs/system/linuxboot.texi | 27 +
docs/system/managed-startup.rst | 35 +
docs/system/managed-startup.texi | 35 +
docs/system/monitor.rst | 25 +
docs/system/monitor.texi | 34 +
docs/system/mux-chardev.rst | 32 +
docs/system/mux-chardev.texi | 44 +
docs/system/net.rst | 100 +
docs/system/net.texi | 96 +
docs/system/qemu-block-drivers.rst | 989 +-----
docs/system/qemu-block-drivers.rst.inc | 954 ++++++
docs/system/qemu-cpu-models.rst | 20 +
.../system/qemu-option-trace.texi | 0
docs/system/quickstart.rst | 13 +
docs/system/quickstart.texi | 12 +
docs/system/security.rst | 173 +
docs/{ => system}/security.texi | 0
docs/system/target-arm.rst | 227 ++
docs/system/target-arm.texi | 263 ++
docs/system/target-i386.rst | 84 +
docs/system/target-i386.texi | 91 +
docs/system/target-m68k.rst | 32 +
docs/system/target-m68k.texi | 44 +
docs/system/target-mips.rst | 120 +
docs/system/target-mips.texi | 150 +
docs/system/target-ppc.rst | 61 +
docs/system/target-ppc.texi | 77 +
docs/system/target-sparc.rst | 81 +
docs/system/target-sparc.texi | 95 +
docs/system/target-sparc64.rst | 49 +
docs/system/target-sparc64.texi | 60 +
docs/system/target-xtensa.rst | 39 +
docs/system/target-xtensa.texi | 55 +
docs/system/targets.rst | 19 +
docs/system/tls.rst | 328 ++
docs/system/tls.texi | 329 ++
docs/system/usb.rst | 137 +
docs/system/usb.texi | 115 +
docs/system/vnc-security.rst | 202 ++
docs/system/vnc-security.texi | 196 ++
docs/user/conf.py | 18 +
docs/user/index.rst | 16 +
docs/user/main.rst | 295 ++
qemu-doc.texi | 2868 +----------------
qemu-options.hx | 2 +-
qemu-tech.texi | 195 --
scripts/texi2pod.pl | 36 +-
74 files changed, 7229 insertions(+), 4232 deletions(-)
create mode 100644 docs/system/build-platforms.rst
create mode 100644 docs/system/build-platforms.texi
create mode 100644 docs/system/cpu-models-mips.rst.inc
create mode 100644 docs/system/cpu-models-mips.texi
create mode 100644 docs/system/cpu-models-x86.rst.inc
rename docs/{qemu-cpu-models.texi => system/cpu-models-x86.texi} (71%)
create mode 100644 docs/system/defs.rst.inc
create mode 100644 docs/system/deprecated.rst
rename qemu-deprecated.texi => docs/system/deprecated.texi (100%)
create mode 100644 docs/system/gdb.rst
create mode 100644 docs/system/gdb.texi
create mode 100644 docs/system/images.rst
create mode 100644 docs/system/images.texi
create mode 100644 docs/system/invocation.rst
create mode 100644 docs/system/invocation.texi
create mode 100644 docs/system/ivshmem.rst
create mode 100644 docs/system/ivshmem.texi
create mode 100644 docs/system/keys.rst
create mode 100644 docs/system/keys.texi
create mode 100644 docs/system/license.rst
create mode 100644 docs/system/license.texi
create mode 100644 docs/system/linuxboot.rst
create mode 100644 docs/system/linuxboot.texi
create mode 100644 docs/system/managed-startup.rst
create mode 100644 docs/system/managed-startup.texi
create mode 100644 docs/system/monitor.rst
create mode 100644 docs/system/monitor.texi
create mode 100644 docs/system/mux-chardev.rst
create mode 100644 docs/system/mux-chardev.texi
create mode 100644 docs/system/net.rst
create mode 100644 docs/system/net.texi
create mode 100644 docs/system/qemu-block-drivers.rst.inc
create mode 100644 docs/system/qemu-cpu-models.rst
rename qemu-option-trace.texi => docs/system/qemu-option-trace.texi (100%)
create mode 100644 docs/system/quickstart.rst
create mode 100644 docs/system/quickstart.texi
create mode 100644 docs/system/security.rst
rename docs/{ => system}/security.texi (100%)
create mode 100644 docs/system/target-arm.rst
create mode 100644 docs/system/target-arm.texi
create mode 100644 docs/system/target-i386.rst
create mode 100644 docs/system/target-i386.texi
create mode 100644 docs/system/target-m68k.rst
create mode 100644 docs/system/target-m68k.texi
create mode 100644 docs/system/target-mips.rst
create mode 100644 docs/system/target-mips.texi
create mode 100644 docs/system/target-ppc.rst
create mode 100644 docs/system/target-ppc.texi
create mode 100644 docs/system/target-sparc.rst
create mode 100644 docs/system/target-sparc.texi
create mode 100644 docs/system/target-sparc64.rst
create mode 100644 docs/system/target-sparc64.texi
create mode 100644 docs/system/target-xtensa.rst
create mode 100644 docs/system/target-xtensa.texi
create mode 100644 docs/system/targets.rst
create mode 100644 docs/system/tls.rst
create mode 100644 docs/system/tls.texi
create mode 100644 docs/system/usb.rst
create mode 100644 docs/system/usb.texi
create mode 100644 docs/system/vnc-security.rst
create mode 100644 docs/system/vnc-security.texi
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-tech.texiSignature · 1 line
2.21.1
PATCH v2 1/18 qemu-doc: convert user-mode emulation to a separate Sphinx manual
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.
--- Makefile | 8 +- docs/user/conf.py | 18 +++ docs/user/index.rst | 16 +++ docs/user/main.rst | 295 ++++++++++++++++++++++++++++++++++++++ qemu-doc.texi | 337 -------------------------------------------- 5 files changed, 336 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
@@ -786,6 +786,7 @@ distclean: clean $(call clean-manual,interop) $(call clean-manual,specs) $(call clean-manual,system) + $(call clean-manual,user) for d in $(TARGET_DIRS); do \ rm -rf $$d || exit 1 ; \ done
@@ -843,6 +844,7 @@ install-sphinxdocs: sphinxdocs $(call install-manual,interop) $(call install-manual,specs) $(call install-manual,system) + $(call install-manual,user) install-doc: $(DOCS) install-sphinxdocs $(INSTALL_DIR) "$(DESTDIR)$(qemu_docdir)"
@@ -1036,7 +1038,8 @@ docs/version.texi: $(SRC_PATH)/VERSION config-host.mak sphinxdocs: $(MANUAL_BUILDDIR)/devel/index.html \ $(MANUAL_BUILDDIR)/interop/index.html \ $(MANUAL_BUILDDIR)/specs/index.html \ - $(MANUAL_BUILDDIR)/system/index.html + $(MANUAL_BUILDDIR)/system/index.html \ + $(MANUAL_BUILDDIR)/user/index.html # Canned command to build a single manual # Arguments: $1 = manual name, $2 = Sphinx builder ('html' or 'man')
@@ -1069,6 +1072,9 @@ $(MANUAL_BUILDDIR)/specs/index.html: $(call manual-deps,specs) $(MANUAL_BUILDDIR)/system/index.html: $(call manual-deps,system) $(call build-manual,system,html) +$(MANUAL_BUILDDIR)/user/index.html: $(call manual-deps,user) + $(call build-manual,user,html) + $(call define-manpage-rule,interop,\ qemu-ga.8 qemu-img.1 qemu-nbd.8 qemu-trace-stap.1\ virtiofsd.1 virtfs-proxy-helper.1,\
docs/user/conf.py new file +18 -0
@@ -0,0 +1,18 @@ +# -*- coding: utf-8 -*- +# +# QEMU documentation build configuration file for the 'system' 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' +# One entry per manual page. List of tuples +# (source start file, name, description, authors, manual section). +man_pages = []
docs/user/index.rst new file +16 -0
@@ -0,0 +1,16 @@ +.. This is the top level page for the 'system' 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.21.1
Re: [PATCH 01/18] qemu-doc: convert user-mode emulation to a separate Sphinx manual
Quoted 6 lines · Paolo Bonzini
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.
Signed-off-by Paolo Bonzini <[email protected]>
I'm going to wade in and start making review comments, but I'm happy to just take on this series and clean it up myself for a v2 (I'd like to quickly get to a base where I can start on dealing with the last bits of qemu-doc conversion that deal with hxtool.)
Did you do the conversion to rST automatically? If so then it would be useful to give the runes used in the commit message.
Quoted 10 lines
--- Makefile | 8 +- docs/user/conf.py | 18 +++ docs/user/index.rst | 16 +++ docs/user/main.rst | 295 ++++++++++++++++++++++++++++++++++++++ qemu-doc.texi | 337 -------------------------------------------- 5 files changed, 336 insertions(+), 338 deletions(-) create mode 100644 docs/user/conf.py create mode 100644 docs/user/index.rst create mode 100644 docs/user/main.rst
A new manual also needs to be added to docs/index.html.in and to docs/index.rst.
(Compare 0928523a1230a69 which added the system manual.)
Makefile distclean: clean · line 789
Quoted 10 lines
Makefile +1
-0@@ -786,6 +786,7 @@ distclean: clean $(call clean-manual,interop) $(call clean-manual,specs) $(call clean-manual,system) + $(call clean-manual,user)
This doesn't apply to current master because of the addition of the 'tools' manual, but the fixes to the conflicts are easy.
Quoted 37 lines
Makefile +6
-1for d in $(TARGET_DIRS); do \ rm -rf $$d || exit 1 ; \ done@@ -843,6 +844,7 @@ install-sphinxdocs: sphinxdocs $(call install-manual,interop) $(call install-manual,specs) $(call install-manual,system) + $(call install-manual,user) install-doc: $(DOCS) install-sphinxdocs $(INSTALL_DIR) "$(DESTDIR)$(qemu_docdir)"@@ -1036,7 +1038,8 @@ docs/version.texi: $(SRC_PATH)/VERSION config-host.mak sphinxdocs: $(MANUAL_BUILDDIR)/devel/index.html \ $(MANUAL_BUILDDIR)/interop/index.html \ $(MANUAL_BUILDDIR)/specs/index.html \ - $(MANUAL_BUILDDIR)/system/index.html + $(MANUAL_BUILDDIR)/system/index.html \ + $(MANUAL_BUILDDIR)/user/index.html # Canned command to build a single manual # Arguments: $1 = manual name, $2 = Sphinx builder ('html' or 'man')@@ -1069,6 +1072,9 @@ $(MANUAL_BUILDDIR)/specs/index.html: $(call manual-deps,specs) $(MANUAL_BUILDDIR)/system/index.html: $(call manual-deps,system) $(call build-manual,system,html) +$(MANUAL_BUILDDIR)/user/index.html: $(call manual-deps,user) + $(call build-manual,user,html) + $(call define-manpage-rule,interop,\ qemu-ga.8 qemu-img.1 qemu-nbd.8 qemu-trace-stap.1\ virtiofsd.1 virtfs-proxy-helper.1,\docs/user/conf.py new file +0
-0
docs/user/conf.py line 3
Quoted 3 lines
docs/user/conf.py new file +3
-0@@ -0,0 +1,18 @@ +# -*- coding: utf-8 -*- +# +# QEMU documentation build configuration file for the 'system' manual.
Should say 'user'.
Quoted 5 lines
docs/user/conf.py new file +5
-0+# +# This includes the top level conf file and then makes any necessary tweaks. +import sys +import os +
docs/user/conf.py line 18
Quoted 10 lines
docs/user/conf.py new file +10
-0+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' +# One entry per manual page. List of tuples +# (source start file, name, description, authors, manual section). +man_pages = []
You can just not specify man_pages at all if the manual doesn't create any manpages (devel and specs are like this):docs/conf.py sets it to [] by default.
docs/user/index.rst line 1
Quoted 7 lines
docs/user/index.rst new file +1
-0@@ -0,0 +1,16 @@ +.. This is the top level page for the 'system' manual.
Should say 'user'.
Quoted 5 lines
docs/user/index.rst new file +5
-0+ + +QEMU User Mode Emulation User's Guide +===================================== +
docs/user/index.rst line 16
Quoted 10 lines
docs/user/index.rst new file +10
-0+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
The top level document looks a bit odd with this toctree which has a single level 1 entry whose title is basically the same as the whole manual's title, but it gives us a structure we can expand later I guess.
thanks
-- PMM
Re: [PATCH 01/18] qemu-doc: convert user-mode emulation to a separate Sphinx manual
Quoted 8 lines · Peter Maydell
Quoted 6 lines · Paolo Bonzini
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.
Signed-off-by Paolo Bonzini <[email protected]>
Quoted 8 lines
I'm going to wade in and start making review comments, but I'm happy to just take on this series and clean it up myself for a v2 (I'd like to quickly get to a base where I can start on dealing with the last bits of qemu-doc conversion that deal with hxtool.)
Did you do the conversion to rST automatically? If so then it would be useful to give the runes used in the commit message.
I started from the pandoc conversion but, unlike the others, this one was reviewed, so I didn't include the command line.
Paolo
Quoted 127 lines
Quoted 10 lines
--- Makefile | 8 +- docs/user/conf.py | 18 +++ docs/user/index.rst | 16 +++ docs/user/main.rst | 295 ++++++++++++++++++++++++++++++++++++++ qemu-doc.texi | 337 -------------------------------------------- 5 files changed, 336 insertions(+), 338 deletions(-) create mode 100644 docs/user/conf.py create mode 100644 docs/user/index.rst create mode 100644 docs/user/main.rstA new manual also needs to be added to docs/index.html.in and to
docs/index.rst.(Compare
0928523a1230a69which added the system manual.)Makefile distclean: clean · line 789
Quoted 10 lines
Makefile +1
-0@@ -786,6 +786,7 @@ distclean: clean $(call clean-manual,interop) $(call clean-manual,specs) $(call clean-manual,system) + $(call clean-manual,user)This doesn't apply to current master because of the addition of the 'tools' manual, but the fixes to the conflicts are easy.
Quoted 37 lines
Makefile +6
-1for d in $(TARGET_DIRS); do \ rm -rf $$d || exit 1 ; \ done@@ -843,6 +844,7 @@ install-sphinxdocs: sphinxdocs $(call install-manual,interop) $(call install-manual,specs) $(call install-manual,system) + $(call install-manual,user) install-doc: $(DOCS) install-sphinxdocs $(INSTALL_DIR) "$(DESTDIR)$(qemu_docdir)"@@ -1036,7 +1038,8 @@ docs/version.texi: $(SRC_PATH)/VERSION config-host.mak sphinxdocs: $(MANUAL_BUILDDIR)/devel/index.html \ $(MANUAL_BUILDDIR)/interop/index.html \ $(MANUAL_BUILDDIR)/specs/index.html \ - $(MANUAL_BUILDDIR)/system/index.html + $(MANUAL_BUILDDIR)/system/index.html \ + $(MANUAL_BUILDDIR)/user/index.html # Canned command to build a single manual # Arguments: $1 = manual name, $2 = Sphinx builder ('html' or 'man')@@ -1069,6 +1072,9 @@ $(MANUAL_BUILDDIR)/specs/index.html: $(call manual-deps,specs) $(MANUAL_BUILDDIR)/system/index.html: $(call manual-deps,system) $(call build-manual,system,html) +$(MANUAL_BUILDDIR)/user/index.html: $(call manual-deps,user) + $(call build-manual,user,html) + $(call define-manpage-rule,interop,\ qemu-ga.8 qemu-img.1 qemu-nbd.8 qemu-trace-stap.1\ virtiofsd.1 virtfs-proxy-helper.1,\docs/user/conf.py new file +0
-0docs/user/conf.py line 3
Quoted 3 lines
docs/user/conf.py new file +3
-0@@ -0,0 +1,18 @@ +# -*- coding: utf-8 -*- +# +# QEMU documentation build configuration file for the 'system' manual.Should say 'user'.
Quoted 5 lines
docs/user/conf.py new file +5
-0+# +# This includes the top level conf file and then makes any necessary tweaks. +import sys +import os +docs/user/conf.py line 18
Quoted 10 lines
docs/user/conf.py new file +10
-0+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' +# One entry per manual page. List of tuples +# (source start file, name, description, authors, manual section). +man_pages = []You can just not specify
man_pagesat all if the manual doesn't create any manpages (devel and specs are like this):docs/conf.pysets it to [] by default.docs/user/index.rst line 1
Quoted 7 lines
docs/user/index.rst new file +1
-0@@ -0,0 +1,16 @@ +.. This is the top level page for the 'system' manual.Should say 'user'.
Quoted 5 lines
docs/user/index.rst new file +5
-0+ + +QEMU User Mode Emulation User's Guide +===================================== +docs/user/index.rst line 16
Quoted 10 lines
docs/user/index.rst new file +10
-0+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 + + mainThe top level document looks a bit odd with this toctree which has a single level 1 entry whose title is basically the same as the whole manual's title, but it gives us a structure we can expand later I guess.
thanks
-- PMM
PATCH v2 2/18 qemu-doc: remove target OS documentation
In reply to Paolo BonziniThis section covers OSes up to Windows 2000, and as such it is mostly obsolete. Zap it.
--- 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.21.1
PATCH v2 3/18 texi2pod: parse @include directives outside "@c man" blocks
In reply to Paolo BonziniThis 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.
--- 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.21.1
Re: [PATCH 03/18] texi2pod: parse @include directives outside "@c man" blocks
Quoted 55 lines · Paolo Bonzini
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.
Signed-off-by Paolo Bonzini <[email protected]>--- scripts/texi2pod.pl | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-)scripts/texi2pod.pl +18
-11@@ -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;
scripts/texi2pod.pl while(<$inf>) { · line 265
Quoted 10 lines
scripts/texi2pod.pl +0
-7- $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+(.+)$/
This changes the semantics subtly -- we now honour @include even if it's found inside an @ignore..@end ignore comment block, for instance. But as you say this script isn't going to be around much longer, so we can just avoid doing that sort of thing.
thanks
-- PMM
PATCH v2 4/18 qemu-doc: split CPU models doc between MIPS and x86 parts
In reply to Paolo BonziniThe 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.
---
MAINTAINERS | 3 +-
Makefile | 11 +-
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.texiMAINTAINERS +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
Makefile +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)/interop/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)
@@ -859,7 +859,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)/interop/qemu-img.1 "$(DESTDIR)$(mandir)/man1" $(INSTALL_DIR) "$(DESTDIR)$(mandir)/man8"
@@ -1104,7 +1104,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
@@ -1116,7 +1116,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 \
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.21.1
Re: [PATCH 04/18] qemu-doc: split CPU models doc between MIPS and x86 parts
Quoted 7 lines · Paolo Bonzini
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.
Signed-off-by Paolo Bonzini <[email protected]>
thanks
-- PMM
PATCH v2 5/18 qemu-doc: split qemu-doc.texi in multiple files
In reply to Paolo BonziniIn 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.
--- 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
@@ -1116,6 +1116,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.21.1
Re: [PATCH 05/18] qemu-doc: split qemu-doc.texi in multiple files
Quoted 9 lines · Paolo Bonzini
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.
Signed-off-by Paolo Bonzini <[email protected]>---
(used git's colorMoved feature to check nothing accidentally changed during the reshuffle and eyeballed the table of contents in the generated HTML to confirm it's all still there and in the same order.)
thanks
-- PMM
Re: [PATCH 05/18] qemu-doc: split qemu-doc.texi in multiple files
Quoted 6 lines · Peter Maydell
Reviewed-by Peter Maydell <[email protected]>(used git's colorMoved feature to check nothing accidentally changed during the reshuffle and eyeballed the table of contents in the generated HTML to confirm it's all still there and in the same order.)
For what it's worth, "make qemu-doc.info" is very helpful in finding sections that are placed at the wrong level, because it forces you to sync @menu...@end menu with @chapter/@section headings.
Paolo
PATCH v2 6/18 qemu-doc: extract common system emulator documentation from the PC section
In reply to Paolo BonziniMove 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.
--- 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.21.1
Re: [PATCH 06/18] qemu-doc: extract common system emulator documentation from the PC section
Quoted 7 lines · Paolo Bonzini
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.
Signed-off-by Paolo Bonzini <[email protected]>
I'm all in favour of reducing x86-bias in our docs :-)
thanks
-- PMM
PATCH v2 7/18 qemu-doc: move system requirements chapter inside PC section
In reply to Paolo BonziniThe system requirements documented in this chapter are limited to x86 KVM targets. Clean them up and move them to the target section.
--- 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.21.1
Re: [PATCH 07/18] qemu-doc: move system requirements chapter inside PC section
Quoted 6 lines · Paolo Bonzini
The system requirements documented in this chapter are limited to x86 KVM targets. Clean them up and move them to the target section.
Signed-off-by Paolo Bonzini <[email protected]>---
thanks
-- PMM
PATCH v2 8/18 qemu-doc: split target sections to separate files
In reply to Paolo Bonzini--- 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.21.1
Re: [PATCH 08/18] qemu-doc: split target sections to separate files
Quoted 13 lines · Paolo Bonzini
Signed-off-by Paolo Bonzini <[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(-)
Quoted 8 lines
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
thanks
-- PMM
PATCH v2 9/18 qemu-doc: Remove the "CPU emulation" part of the "Implementation notes"
In reply to Paolo BonziniFrom: Peter Maydell <[email protected]>
The "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]>
--- 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.21.1
PATCH v2 10/18 qemu-doc: move qemu-tech.texi into main section
In reply to Paolo BonziniThe 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.
--- 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
@@ -1113,7 +1113,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.21.1
Re: [PATCH 10/18] qemu-doc: move qemu-tech.texi into main section
Quoted 6 lines · Paolo Bonzini
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.
Signed-off-by Paolo Bonzini <[email protected]>
thanks
-- PMM
PATCH v2 11/18 qemu-doc: move included files to docs/system
In reply to Paolo BonziniSince qemu-doc.texi is mostly including files from docs/system, move the existing include files there for consistency.
---
MAINTAINERS | 3 ++-
Makefile | 8 ++++----
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, 9 insertions(+), 8 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%)MAINTAINERS +2 -1
@@ -2796,7 +2796,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 ------------
Makefile +4 -4
@@ -1103,7 +1103,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
@@ -1113,8 +1113,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 \
@@ -1133,7 +1132,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 \
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.21.1
Re: [PATCH 11/18] qemu-doc: move included files to docs/system
Quoted 23 lines · Paolo Bonzini
Since qemu-doc.texi is mostly including files from docs/system, move the existing include files there for consistency.
Signed-off-by Paolo Bonzini <[email protected]>--- MAINTAINERS | 3 ++- Makefile | 8 ++++---- 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, 9 insertions(+), 8 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%)MAINTAINERS +0
-0
MAINTAINERS F: contrib/gitdm/* · line 2801
Quoted 7 lines
MAINTAINERS +2
-1@@ -2796,7 +2796,8 @@ F: contrib/gitdm/* Incompatible changes R: [email protected] -F: qemu-deprecated.texi +F: docs/system/deprecated.texi +F: docs/system/deprecated.rst
There's also an F: line for qemu-option-trace.texi that needs updating.
Otherwise
thanks
-- PMM
PATCH v2 12/18 qemu-doc: remove indices other than findex
In reply to Paolo BonziniThese indices are not well-maintained, and pandoc also chokes on the directives. Just nuke them.
--- 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.21.1
Re: [PATCH 12/18] qemu-doc: remove indices other than findex
Quoted 5 lines · Paolo Bonzini
These indices are not well-maintained, and pandoc also chokes on the directives. Just nuke them.
Signed-off-by Paolo Bonzini <[email protected]>
thanks
-- PMM
PATCH v2 13/18 docs/system: put qemu-block-drivers body in an included file
In reply to Paolo BonziniThis removes the "only" directives, and lets us use the conventional "DESCRIPTION" section in the manpage.
--- docs/system/index.rst | 2 - docs/system/qemu-block-drivers.rst | 987 +------------------------ docs/system/qemu-block-drivers.rst.inc | 954 ++++++++++++++++++++++++ 3 files changed, 966 insertions(+), 977 deletions(-) create mode 100644 docs/system/qemu-block-drivers.rst.inc
docs/system/index.rst +0 -2
@@ -13,5 +13,3 @@ Contents: .. toctree:: :maxdepth: 2 - - qemu-block-drivers
docs/system/qemu-block-drivers.rst +12 -975
997 lines not on this page · raw message
docs/system/qemu-block-drivers.rst.inc new file +954 -0
954 lines not on this page · raw message
Signature · 1 line
2.21.1
Re: [PATCH 13/18] docs/system: put qemu-block-drivers body in an included file
Quoted 17 lines · Paolo Bonzini
This removes the "only" directives, and lets us use the conventional "DESCRIPTION" section in the manpage.
Signed-off-by Paolo Bonzini <[email protected]>--- docs/system/index.rst | 2 - docs/system/qemu-block-drivers.rst | 987 +------------------------ docs/system/qemu-block-drivers.rst.inc | 954 ++++++++++++++++++++++++ 3 files changed, 966 insertions(+), 977 deletions(-) create mode 100644 docs/system/qemu-block-drivers.rst.incdocs/system/index.rst +0
-0
docs/system/index.rst Contents: · line 17
Quoted 5 lines
docs/system/index.rst +0
-2@@ -13,5 +13,3 @@ Contents: .. toctree:: :maxdepth: 2 - - qemu-block-drivers
Why do you drop the documentation from the HTML manual ?
Is the changing in the underline styles for section headings necessary? It's non-obvious in the diff format the patch in the email has, but with my local git diff settings (algorithm=histogram) it shows up better:
Quoted 3 lines
Secure Shell (ssh) disk images
-------------------------------
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Given that rST figures out subsection depth automatically rather than based on which particular character is used maybe we could avoid the noise in the diff?
(OTOH, we should probably pick a rST style guide for which characters to use for which section headings and follow it here to avoid unnecessarily confusing ourselves...)
thanks
-- PMM
Re: [PATCH 13/18] docs/system: put qemu-block-drivers body in an included file
Quoted 5 lines · Peter Maydell
docs/system/index.rst Contents: · line 17
Quoted 4 lines
.. toctree::
:maxdepth: 2docs/system/index.rst +0
-2- - qemu-block-driversWhy do you drop the documentation from the HTML manual ?
I'm adding it back (at the correct place) in patch 18, but it will be included in images.rst rather than part of the toctree.
Quoted 7 lines
Quoted 3 lines
Secure Shell (ssh) disk images
-------------------------------
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(OTOH, we should probably pick a rST style guide for which characters to use for which section headings and follow it here to avoid unnecessarily confusing ourselves...)
Right, I was trying to be consistent here between the characters used here and the characters used in the rest of the manual, so that the file can be included directly in both the man page and the manual.
Paolo
Re: [PATCH 13/18] docs/system: put qemu-block-drivers body in an included file
In reply to Peter MaydellQuoted 35 lines · Peter Maydell
Quoted 17 lines · Paolo Bonzini
This removes the "only" directives, and lets us use the conventional "DESCRIPTION" section in the manpage.
Signed-off-by Paolo Bonzini <[email protected]>--- docs/system/index.rst | 2 - docs/system/qemu-block-drivers.rst | 987 +------------------------ docs/system/qemu-block-drivers.rst.inc | 954 ++++++++++++++++++++++++ 3 files changed, 966 insertions(+), 977 deletions(-) create mode 100644 docs/system/qemu-block-drivers.rst.incdocs/system/index.rst +0
-0docs/system/index.rst Contents: · line 17
Quoted 5 lines
docs/system/index.rst +0
-2@@ -13,5 +13,3 @@ Contents: .. toctree:: :maxdepth: 2 - - qemu-block-driversWhy do you drop the documentation from the HTML manual ?
Is the changing in the underline styles for section headings necessary? It's non-obvious in the diff format the patch in the email has, but with my local git diff settings (algorithm=histogram) it shows up better:
Quoted 3 lines
Secure Shell (ssh) disk images
-------------------------------
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Quoted 7 lines
Given that rST figures out subsection depth automatically rather than based on which particular character is used maybe we could avoid the noise in the diff?
(OTOH, we should probably pick a rST style guide for which characters to use for which section headings and follow it here to avoid unnecessarily confusing ourselves...)
Yes, I'd encourage explicitly documenting the required section heading chars in particular, as otherwise we get a free for all which becomes confusing, especially if we need to move text from one doc into another doc.
For libvirt we chose:
=========
Heading 1
=========
Heading 2
=========
Heading 3
---------
Heading 4
~~~~~~~~~
Heading 5
.........
Heading 6
^^^^^^^^^
Heading 6 looks a bit odd, but on the flipside it should almost never need to be used. https://libvirt.org/styleguide.html
Regards,
Daniel
Signature · 3 lines
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
PATCH v2 14/18 docs/system: Convert qemu-cpu-models.texi to rST
In reply to Paolo BonziniFrom: 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
[Move macros to defs.rst.inc, split in x86 and MIPS parts,
make qemu-cpu-models.rst a standalone document. - Paolo]
--- MAINTAINERS | 2 +- Makefile | 3 +- docs/conf.py | 2 +- docs/system/conf.py | 10 +- docs/system/cpu-models-mips.rst.inc | 105 ++++++++ docs/system/cpu-models-x86.rst.inc | 365 ++++++++++++++++++++++++++++ docs/system/defs.rst.inc | 2 + docs/system/qemu-block-drivers.rst | 2 - docs/system/qemu-cpu-models.rst | 20 ++ docs/system/qemu-cpu-models.texi | 28 --- 10 files changed, 504 insertions(+), 35 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/defs.rst.inc create mode 100644 docs/system/qemu-cpu-models.rst delete mode 100644 docs/system/qemu-cpu-models.texi
MAINTAINERS +1 -1
@@ -320,7 +320,7 @@ 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 T: git https://github.com/ehabkost/qemu.git x86-next Xtensa TCG CPUs
Makefile +1 -2
@@ -1080,7 +1080,7 @@ $(call define-manpage-rule,interop,\ virtiofsd.1 virtfs-proxy-helper.1,\ $(SRC_PATH)/qemu-img-cmds.hx) -$(call define-manpage-rule,system,qemu-block-drivers.7) +$(call define-manpage-rule,system,qemu-block-drivers.7 qemu-cpu-models.7) $(MANUAL_BUILDDIR)/index.html: $(SRC_PATH)/docs/index.html.in qemu-version.h @mkdir -p "$(MANUAL_BUILDDIR)"
@@ -1104,7 +1104,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
docs/conf.py +1 -1
@@ -80,7 +80,7 @@ master_doc = 'index' # General information about the project. project = u'QEMU' -copyright = u'2019, The QEMU Project Developers' +copyright = u'2020, The QEMU Project Developers' author = u'The QEMU Project Developers' # The version info for the project you're documenting, acts as replacement for
docs/system/conf.py +9 -1
@@ -13,10 +13,18 @@ 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' + +rst_prolog = ''' +.. include:: defs.rst.inc +''' + # 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/defs.rst.inc new file +2 -0
@@ -0,0 +1,2 @@ +.. |qemu_system| replace:: ``qemu-system-x86_64`` +.. |qemu_system_x86| replace:: ``qemu_system_x86``
docs/system/qemu-block-drivers.rst +0 -2
@@ -3,8 +3,6 @@ QEMU block drivers reference ============================ -.. |qemu_system| replace:: qemu-system-x86_64 - Synopsis --------
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.21.1
Re: [PATCH 14/18] docs/system: Convert qemu-cpu-models.texi to rST
Quoted 35 lines · Paolo Bonzini
From: 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,
Makefilefixes, 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
Signed-off-by Kashyap Chamarthy <[email protected]>[Move macros to defs.rst.inc, split in x86 and MIPS parts,
makeqemu-cpu-models.rsta standalone document. - Paolo]Signed-off-by Paolo Bonzini <[email protected]>--- MAINTAINERS | 2 +- Makefile | 3 +- docs/conf.py | 2 +- docs/system/conf.py | 10 +- docs/system/cpu-models-mips.rst.inc | 105 ++++++++ docs/system/cpu-models-x86.rst.inc | 365 ++++++++++++++++++++++++++++ docs/system/defs.rst.inc | 2 + docs/system/qemu-block-drivers.rst | 2 -
Quoted 8 lines
docs/system/qemu-cpu-models.rst | 20 ++ docs/system/qemu-cpu-models.texi | 28 --- 10 files changed, 504 insertions(+), 35 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/defs.rst.inc create mode 100644 docs/system/qemu-cpu-models.rst delete mode 100644 docs/system/qemu-cpu-models.texi
Why don't we also delete cpu-models-x86.texi and
cpu-models-mips.texi ?
MAINTAINERS F: tests/tcg/i386/ · line 323
Quoted 10 lines
MAINTAINERS +1
-1@@ -320,7 +320,7 @@ 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
This isn't the filename the patch actually uses.
There should be a corresponding new F: line for the mips version too.
Quoted 17 lines
MAINTAINERS +0
-0T: git https://github.com/ehabkost/qemu.git x86-next Xtensa TCG CPUsMakefile +1
-1@@ -1080,7 +1080,7 @@ $(call define-manpage-rule,interop,\ virtiofsd.1 virtfs-proxy-helper.1,\ $(SRC_PATH)/qemu-img-cmds.hx) -$(call define-manpage-rule,system,qemu-block-drivers.7) +$(call define-manpage-rule,system,qemu-block-drivers.7 qemu-cpu-models.7) $(MANUAL_BUILDDIR)/index.html: $(SRC_PATH)/docs/index.html.in qemu-version.h @mkdir -p "$(MANUAL_BUILDDIR)"
Makefile docs/interop/qemu-ga-qapi.texi: qga/qapi-generated/qga-qapi-doc.texi · line 1109
Quoted 7 lines
Makefile +0
-1@@ -1104,7 +1104,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
The install line for qemu-cpu-models.7 also needs updating to include $(MANUAL_BUILDDIR).
The distclean line that removes qemu-cpu-models.7 can be removed.
docs/conf.py master_doc = 'index' · line 86
Quoted 13 lines
docs/conf.py +1
-1@@ -80,7 +80,7 @@ master_doc = 'index' # General information about the project. project = u'QEMU' -copyright = u'2019, The QEMU Project Developers' +copyright = u'2020, The QEMU Project Developers' author = u'The QEMU Project Developers' # The version info for the project you're documenting, acts as replacement for
We should indeed fix the copyright date, but not in the middle of this texi->rst series, and we should update the QEMU_COPYRIGHT macro in qemu-common.h at the same time.
docs/system/conf.py exec(compile(open(parent_config, "rb").read(), parent_config, 'exec')) · line 20
Quoted 13 lines
docs/system/conf.py +5
-0@@ -13,10 +13,18 @@ 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' + +rst_prolog = ''' +.. include:: defs.rst.inc +''' +
Maybe we should do this in docs/conf.py where we update rst_epilog with the CONFDIR replacement ?
Doing the "put these replacements into a generic defs.rst.inc" would also be clearer in its own patch, I think.
docs/system/conf.py exec(compile(open(parent_config, "rb").read(), parent_config, 'exec')) · line 26
Quoted 7 lines
docs/system/conf.py +1
-1# 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),
If we want to capitalize the 'D' in Developers, we should make that fix in its own commit, and we should update the QEMU_COPYRIGHT macro too, for consistency.
docs/system/conf.py exec(compile(open(parent_config, "rb").read(), parent_config, 'exec')) · line 30
Quoted 4 lines
docs/system/conf.py +3
-0+ ('qemu-cpu-models', 'qemu-cpu-models', + u'QEMU CPU Models', + ['The QEMU Project Developers'], 7) ]
I would mention explicitly in the commit message that Dan agreed to the updating of the manpage's Author information to the more generic string.
thanks
-- PMM
Re: [PATCH 14/18] docs/system: Convert qemu-cpu-models.texi to rST
Quoted 1 line · Peter Maydell
On Wed, 26 Feb 2020 at 11:30, Paolo Bonzini <[email protected]> wrote:
[...]
Quoted 4 lines
Quoted 1 line
delete mode 100644 docs/system/qemu-cpu-models.texiWhy don't we also delete cpu-models-x86.texi and
cpu-models-mips.texi ?
We can; will do.
Quoted 4 lines
Quoted 4 lines
MAINTAINERS +0
-0
Quoted 8 lines
MAINTAINERS F: tests/tcg/i386/ · line 323
Quoted 6 lines
MAINTAINERS +1
-1@@ -320,7 +320,7 @@ 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.rstThis isn't the filename the patch actually uses.
Originally, I used:
-F: docs/qemu-cpu-models.texi
+F: docs/system/qemu-cpu-models.rst
as part of my v4, here:
https://lists.nongnu.org/archive/html/qemu-devel/2020-02/msg07165.html
But got "obsoleted" with Paolo's split of x86 & MIPS change.
Quoted 1 line
There should be a corresponding new F: line for the mips version too.
Correct; will add.
Quoted 11 lines
MAINTAINERS F: tests/tcg/i386/
Quoted 6 lines
MAINTAINERS +0
-1qemu.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.infoThe install line for qemu-cpu-models.7 also needs updating to include $(MANUAL_BUILDDIR).
The distclean line that removes qemu-cpu-models.7 can be removed.
Noted, will do.
[...]
Quoted 11 lines
MAINTAINERS
Quoted 7 lines
# General information about the project.
project = u'QEMU'MAINTAINERS +1
-1-copyright = u'2019, The QEMU Project Developers' +copyright = u'2020, The QEMU Project Developers' author = u'The QEMU Project Developers' # The version info for the project you're documenting, acts as replacement forWe should indeed fix the copyright date, but not in the middle of this
texi->rstseries, and we should update theQEMU_COPYRIGHTmacro inqemu-common.hat the same time.
Indeed. A voice at the back of my head _did_ nag, "you're mashing this unrelated change into the middle of .texi --> .rst series..."
Will make it a separate patch.
Quoted 8 lines
MAINTAINERS
Quoted 5 lines
MAINTAINERS +5
-0+ +rst_prolog = ''' +.. include:: defs.rst.inc +''' +Maybe we should do this in
docs/conf.pywhere we updaterst_epilogwith the CONFDIR replacement ?
I'm ambivalent about it; can do it in docs/conf.py if you that is more appropriate.
Quoted 2 lines
Doing the "put these replacements into a generic defs.rst.inc" would also be clearer in its own patch, I think.
Fair enough.
Quoted 11 lines
MAINTAINERS
Quoted 7 lines
# 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',MAINTAINERS +1
-1- ['Fabrice Bellard and the QEMU Project developers'], 7) + ['Fabrice Bellard and the QEMU Project Developers'], 7),If we want to capitalize the 'D' in Developers, we should make that fix in its own commit, and we should update the
QEMU_COPYRIGHTmacro too, for consistency.
I did wonder about that too; fair enough. Will not mix it here.
Quoted 8 lines
MAINTAINERS
Quoted 4 lines
MAINTAINERS +3
-0+ ('qemu-cpu-models', 'qemu-cpu-models', + u'QEMU CPU Models', + ['The QEMU Project Developers'], 7) ]I would mention explicitly in the commit message that Dan agreed to the updating of the manpage's Author information to the more generic string.
Can do; I actually mentioned it in my v4 revision history, below the "---" line
(https://lists.nongnu.org/archive/html/qemu-devel/2020-02/msg07165.html):
- Fix author attribution as per the thread:
Message-ID:
<CAFEAcA8dTR6xkQnsf32HAo6aDXf5Z0UmkhL3+257KWLj1ES6Sw@mail.gmail.com>
[danpb, pm215]Can spell it out as part of the commit message.
In summary, to-do for v5:
- Fix the things you pointed out in this patch here.
- Don't mix unrelated changes with .texi --> rst conversion (undo the copyright year and the capitalization changes; make them separate patches).
- Do the split of x86 | MIPS in a separate patch, including the change of moving the macros to 'defs.rst.inc'.
Signature · 1 line
/kashyap
Re: [PATCH 14/18] docs/system: Convert qemu-cpu-models.texi to rST
On Thu, Feb 27, 2020 at 01:37:22PM +0100, Kashyap Chamarthy wrote:
(Just keeping the list in sync.)
[...]
Quoted 10 lines
In summary, to-do for v5:
- Fix the things you pointed out in this patch here.
- Don't mix unrelated changes with .texi --> rst conversion (undo the copyright year and the capitalization changes; make them separate patches).
- Do the split of x86 | MIPS in a separate patch, including the change of moving the macros to 'defs.rst.inc'.
On IRC (#qemu, OFTC), Peter offerred to take Paolo's series and roll out a v2 with the changes he suggested; so I can skip doing a v5.
Thanks, Peter.
Signature · 1 line
/kashyap
Re: [PATCH 14/18] docs/system: Convert qemu-cpu-models.texi to rST
In reply to Peter Maydell[Part of the comments are either obvious or relevant to Kashyap's original patch, I'm replying to those that are more directly for me.]
Quoted 8 lines · Peter Maydell
Quoted 5 lines
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/defs.rst.inc create mode 100644 docs/system/qemu-cpu-models.rst delete mode 100644 docs/system/qemu-cpu-models.texiWhy don't we also delete cpu-models-x86.texi and
cpu-models-mips.texi ?
They are included in the main manual.
Quoted 8 lines
docs/system/conf.py exec(compile(open(parent_config, "rb").read(), parent_config, 'exec')) · line 20
Quoted 5 lines
docs/system/conf.py +4
-0+rst_prolog = ''' +.. include:: defs.rst.inc +''' +Maybe we should do this in
docs/conf.pywhere we updaterst_epilogwith the CONFDIR replacement ?
Yes, that makes sense.
Quoted 2 lines
Doing the "put these replacements into a generic defs.rst.inc" would also be clearer in its own patch, I think.
Agreed.
Paolo
Re: [PATCH 14/18] docs/system: Convert qemu-cpu-models.texi to rST
In reply to Paolo BonziniQuoted 13 lines · Paolo Bonzini
From: 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).docs/system/defs.rst.inc new file +0
-0
docs/system/defs.rst.inc line 2
Quoted 2 lines
docs/system/defs.rst.inc new file +2
-0@@ -0,0 +1,2 @@ +.. |qemu_system| replace:: ``qemu-system-x86_64`` +.. |qemu_system_x86| replace:: ``qemu_system_x86``
Just noticed that you define qemu_system_x86 but never use it.
thanks
-- PMM
Re: [PATCH 14/18] docs/system: Convert qemu-cpu-models.texi to rST
Quoted 9 lines · Peter Maydell
docs/system/defs.rst.inc line 2
Quoted 8 lines
docs/system/defs.rst.inc new file +2
-0@@ -0,0 +1,2 @@ +.. |qemu_system| replace:: ``qemu-system-x86_64`` +.. |qemu_system_x86| replace:: ``qemu_system_x86``Just noticed that you define
qemu_system_x86but never use it.
Indeed, and the definition also makes no sense (should be qemu-system-x86_64 instead).
Paolo
PATCH v2 15/18 docs/system: Convert security.texi to rST format
In reply to Paolo BonziniFrom: Peter Maydell <[email protected]>
security.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.
--- 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
@@ -13,3 +13,4 @@ Contents: .. toctree:: :maxdepth: 2 + security
docs/system/security.rst new file +173 -0
173 lines not on this page · raw message
Signature · 1 line
2.21.1
PATCH v2 16/18 docs/system: convert managed startup to rST.
In reply to Paolo BonziniFrom: Peter Maydell <[email protected]>
Fix one typo in the process and format more option and command names as literal text, but make no significant changes to the content.
--- docs/system/index.rst | 1 + docs/system/managed-startup.rst | 35 +++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 docs/system/managed-startup.rst
docs/system/index.rst +1 -0
@@ -13,4 +13,5 @@ Contents: .. toctree:: :maxdepth: 2 + managed-startup security
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.21.1
PATCH v2 17/18 docs/system: convert the documentation of deprecated features to rST.
In reply to Paolo BonziniFrom: Peter Maydell <[email protected]>
We 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.
--- 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
@@ -15,3 +15,4 @@ Contents: :maxdepth: 2 managed-startup security + deprecated
Signature · 1 line
2.21.1
PATCH v2 18/18 docs/system: convert Texinfo documentation to rST
In reply to Paolo BonziniApart 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
- invocation.rst and ivshmem.rst: annotate more parsed-literal blocks
Content that is not @included remains exclusive to qemu-doc.texi.
--- 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 ++++++++++++++++++++ 25 files changed, 2199 insertions(+), 1 deletion(-) 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/system/build-platforms.rst new file +79 -0
@@ -0,0 +1,79 @@ +.. _Supported-build-platforms: + +Supported build platforms +========================= + +QEMU aims to support building and executing on multiple host OS +platforms. This appendix outlines which platforms are the major build +targets. These platforms are used as the basis for deciding upon the +minimum required versions of 3rd party software QEMU depends on. The +supported platforms are the targets for automated testing performed by +the project when patches are submitted for review, and tested before and +after merge. + +If a platform is not listed here, it does not imply that QEMU won't +work. If an unlisted platform has comparable software versions to a +listed platform, there is every expectation that it will work. Bug +reports are welcome for problems encountered on unlisted platforms +unless they are clearly older vintage than what is described here. + +Note that when considering software versions shipped in distros as +support targets, QEMU considers only the version number, and assumes the +features in that distro match the upstream release with the same +version. In other words, if a distro backports extra features to the +software in their distro, QEMU upstream code will not add explicit +support for those backports, unless the feature is auto-detectable in a +manner that works for the upstream releases too. + +The Repology site https://repology.org is a useful resource to identify +currently shipped versions of software in various operating systems, +though it does not cover all distros listed below. + +Linux OS +-------- + +For distributions with frequent, short-lifetime releases, the project +will aim to support all versions that are not end of life by their +respective vendors. For the purposes of identifying supported software +versions, the project will look at Fedora, Ubuntu, and openSUSE distros. +Other short- lifetime distros will be assumed to ship similar software +versions. + +For distributions with long-lifetime releases, the project will aim to +support the most recent major version at all times. Support for the +previous major version will be dropped 2 years after the new major +version is released, or when it reaches "end of life". For the purposes +of identifying supported software versions, the project will look at +RHEL, Debian, Ubuntu LTS, and SLES distros. Other long-lifetime distros +will be assumed to ship similar software versions. + +Windows +------- + +The project supports building with current versions of the MinGW +toolchain, hosted on Linux. + +macOS +----- + +The project supports building with the two most recent versions of +macOS, with the current homebrew package set available. + +FreeBSD +------- + +The project aims to support the all the versions which are not end of +life. + +NetBSD +------ + +The project aims to support the most recent major version at all times. +Support for the previous major version will be dropped 2 years after the +new major version is released. + +OpenBSD +------- + +The project aims to support the all the versions which are not end of +life.
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,7 +12,24 @@ 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 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 +`pcsys_keys <#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.21.1
Re: [PATCH 18/18] docs/system: convert Texinfo documentation to rST
Quoted 22 lines · Paolo Bonzini
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.rstandtarget-mips.rst: replace CPU model documentation with an include directive
Quoted 7 lines
-
monitor.rst: replace the command section with a comment-
images.rst: add toctree-
invocation.rstandivshmem.rst: annotate more parsed-literal blocksContent that is not @included remains exclusive to qemu-doc.texi.
My Sphinx doesn't like this:
Warning, treated as error:
/home/petmay01/linaro/qemu-from-laptop/qemu/docs/system/target-arm.rst:using "math" markup without a Sphinx math extension active, please use one of the math extensions described at
http://sphinx-doc.org/en/master/ext/math.html
This is all down to the I2C/I2S usage of superscript; this fixes it:
docs/system/defs.rst.inc +2 -0
@@ -1,2 +1,4 @@ .. |qemu_system| replace:: ``qemu-system-x86_64`` .. |qemu_system_x86| replace:: ``qemu_system_x86`` +.. |I2C| replace:: I\ :sup:`2`\ C +.. |I2S| replace:: I\ :sup:`2`\ S
docs/system/target-arm.rst +1 -1
@@ -94,7 +94,7 @@ and \"Terrier\") emulation includes the following peripherals: - TI ADS7846 touchscreen controller on SSP bus -- Maxim MAX1111 analog-digital converter on I\ :math:`^2`\ C bus +- Maxim MAX1111 analog-digital converter on |I2C| bus - GPIO-connected keyboard controller and LEDs
@@ -102,7 +102,7 @@ and \"Terrier\") emulation includes the following
peripherals:
- Three on-chip UARTs
-- WM8750 audio CODEC on I\ :math:^2\ C and I\ :math:^2\ S busses +- WM8750 audio CODEC on |I2C| and |I2S| busses
The Palm Tungsten|E PDA (codename \"Cheetah\") emulation includes the following elements:
@@ -117,7 +117,7 @@ following elements:
- On-chip Real Time Clock
- TI TSC2102i touchscreen controller / analog-digital converter / - Audio CODEC, connected through MicroWire and I\ :math:`^2`\ S busses + Audio CODEC, connected through MicroWire and |I2S| busses
- GPIO-connected matrix keypad
@@ -139,7 +139,7 @@ Nokia N800 and N810 internet tablets (known also as RX-34 and RX-44 /
controllers driven through SPI bus
- National Semiconductor LM8323-controlled qwerty keyboard driven - through I\ :math:`^2`\ C bus + through |I2C| bus
- Secure Digital card connected to OMAP MMC/SD host
@@ -148,10 +148,10 @@ Nokia N800 and N810 internet tablets (known also as RX-34 and RX-44 /
- Mentor Graphics \"Inventra\" dual-role USB controller embedded in a TI TUSB6010 chip - only USB host mode is supported
-- TI TMP105 temperature sensor driven through I\ :math:^2\ C bus +- TI TMP105 temperature sensor driven through |I2C| bus
- TI TWL92230C power management companion with an RTC on - I\ :math:`^2`\ C bus + |I2C| bus
- Nokia RETU and TAHVO multi-purpose chips with an RTC, connected through CBUS
@@ -163,10 +163,10 @@ devices:
- 64k Flash and 8k SRAM.
-- Timers, UARTs, ADC and I\ :math:^2\ C interface. +- Timers, UARTs, ADC and |I2C| interface.
- OSRAM Pictiva 96x16 OLED with SSD0303 controller on
+- Timers, UARTs, ADC and |I2C| interface.
- OSRAM Pictiva 96x16 OLED with SSD0303 controller on - I\ :math:`^2`\ C bus. + |I2C| bus.
The Luminary Micro Stellaris LM3S6965EVB emulation includes the following devices:
@@ -175,7 +175,7 @@ following devices:
- 256k Flash and 64k SRAM.
-- Timers, UARTs, ADC, I\ :math:^2\ C and SSI interfaces. +- Timers, UARTs, ADC, |I2C| and SSI interfaces.
- OSRAM Pictiva 128x64 OLED with SSD0323 controller connected via SSI.
thanks
-- PMM
Re: [PATCH 18/18] docs/system: convert Texinfo documentation to rST
Quoted 7 lines · Peter Maydell
My Sphinx doesn't like this:
Warning, treated as error:
/home/petmay01/linaro/qemu-from-laptop/qemu/docs/system/target-arm.rst:using "math" markup without a Sphinx math extension active, please use one of the math extensions described at
http://sphinx-doc.org/en/master/ext/math.html
Interesting, it works for me. Maybe some difference between Fedora and whatever distro you're using, or something like that.
Quoted 1 line
This is all down to the I2C/I2S usage of superscript; this fixes it:
Yes, that should do.
Also:
Quoted 1 line
-
images.rst: add toctree
There is no toctree anymore in this file.
Paolo
Re: [PATCH 18/18] docs/system: convert Texinfo documentation to rST
In reply to Paolo Bonzinidocs/system/images.rst line 75
Quoted 13 lines · Paolo Bonzini
docs/system/images.rst new file +9
-0+.. _disk_005fimages_005fsnapshot_005fmode: + +Snapshot mode +~~~~~~~~~~~~~ + +When using the (unrelated) ``-snapshot`` option +(`disk_images_snapshot_mode <#disk_005fimages_005fsnapshot_005fmode>`__), +you can always make VM snapshots, but they are deleted as soon as you +exit QEMU.
This syntax for within-document links doesn't work; the link needs to be written
+When using the (unrelated) ``-snapshot`` option
+(:ref:disk_005fimages_005fsnapshot_005fmode),
There are only about half a dozen of these so I'll fix them up by hand.
thanks
-- PMM