README.rst 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. ===========
  2. QEMU README
  3. ===========
  4. QEMU is a generic and open source machine & userspace emulator and
  5. virtualizer.
  6. QEMU is capable of emulating a complete machine in software without any
  7. need for hardware virtualization support. By using dynamic translation,
  8. it achieves very good performance. QEMU can also integrate with the Xen
  9. and KVM hypervisors to provide emulated hardware while allowing the
  10. hypervisor to manage the CPU. With hypervisor support, QEMU can achieve
  11. near native performance for CPUs. When QEMU emulates CPUs directly it is
  12. capable of running operating systems made for one machine (e.g. an ARMv7
  13. board) on a different machine (e.g. an x86_64 PC board).
  14. QEMU is also capable of providing userspace API virtualization for Linux
  15. and BSD kernel interfaces. This allows binaries compiled against one
  16. architecture ABI (e.g. the Linux PPC64 ABI) to be run on a host using a
  17. different architecture ABI (e.g. the Linux x86_64 ABI). This does not
  18. involve any hardware emulation, simply CPU and syscall emulation.
  19. QEMU aims to fit into a variety of use cases. It can be invoked directly
  20. by users wishing to have full control over its behaviour and settings.
  21. It also aims to facilitate integration into higher level management
  22. layers, by providing a stable command line interface and monitor API.
  23. It is commonly invoked indirectly via the libvirt library when using
  24. open source applications such as oVirt, OpenStack and virt-manager.
  25. QEMU as a whole is released under the GNU General Public License,
  26. version 2. For full licensing details, consult the LICENSE file.
  27. Documentation
  28. =============
  29. Documentation can be found hosted online at
  30. `<https://www.qemu.org/documentation/>`_. The documentation for the
  31. current development version that is available at
  32. `<https://www.qemu.org/docs/master/>`_ is generated from the ``docs/``
  33. folder in the source tree, and is built by `Sphinx
  34. <https://www.sphinx-doc.org/en/master/>`_.
  35. Building
  36. ========
  37. QEMU is multi-platform software intended to be buildable on all modern
  38. Linux platforms, OS-X, Win32 (via the Mingw64 toolchain) and a variety
  39. of other UNIX targets. The simple steps to build QEMU are:
  40. .. code-block:: shell
  41. mkdir build
  42. cd build
  43. ../configure
  44. make
  45. Additional information can also be found online via the QEMU website:
  46. * `<https://wiki.qemu.org/Hosts/Linux>`_
  47. * `<https://wiki.qemu.org/Hosts/Mac>`_
  48. * `<https://wiki.qemu.org/Hosts/W32>`_
  49. Submitting patches
  50. ==================
  51. The QEMU source code is maintained under the GIT version control system.
  52. .. code-block:: shell
  53. git clone https://gitlab.com/qemu-project/qemu.git
  54. When submitting patches, one common approach is to use 'git
  55. format-patch' and/or 'git send-email' to format & send the mail to the
  56. qemu-devel@nongnu.org mailing list. All patches submitted must contain
  57. a 'Signed-off-by' line from the author. Patches should follow the
  58. guidelines set out in the `style section
  59. <https://www.qemu.org/docs/master/devel/style.html>`_ of
  60. the Developers Guide.
  61. Additional information on submitting patches can be found online via
  62. the QEMU website:
  63. * `<https://wiki.qemu.org/Contribute/SubmitAPatch>`_
  64. * `<https://wiki.qemu.org/Contribute/TrivialPatches>`_
  65. The QEMU website is also maintained under source control.
  66. .. code-block:: shell
  67. git clone https://gitlab.com/qemu-project/qemu-web.git
  68. * `<https://www.qemu.org/2017/02/04/the-new-qemu-website-is-up/>`_
  69. A 'git-publish' utility was created to make above process less
  70. cumbersome, and is highly recommended for making regular contributions,
  71. or even just for sending consecutive patch series revisions. It also
  72. requires a working 'git send-email' setup, and by default doesn't
  73. automate everything, so you may want to go through the above steps
  74. manually for once.
  75. For installation instructions, please go to:
  76. * `<https://github.com/stefanha/git-publish>`_
  77. The workflow with 'git-publish' is:
  78. .. code-block:: shell
  79. $ git checkout master -b my-feature
  80. $ # work on new commits, add your 'Signed-off-by' lines to each
  81. $ git publish
  82. Your patch series will be sent and tagged as my-feature-v1 if you need to refer
  83. back to it in the future.
  84. Sending v2:
  85. .. code-block:: shell
  86. $ git checkout my-feature # same topic branch
  87. $ # making changes to the commits (using 'git rebase', for example)
  88. $ git publish
  89. Your patch series will be sent with 'v2' tag in the subject and the git tip
  90. will be tagged as my-feature-v2.
  91. Bug reporting
  92. =============
  93. The QEMU project uses GitLab issues to track bugs. Bugs
  94. found when running code built from QEMU git or upstream released sources
  95. should be reported via:
  96. * `<https://gitlab.com/qemu-project/qemu/-/issues>`_
  97. If using QEMU via an operating system vendor pre-built binary package, it
  98. is preferable to report bugs to the vendor's own bug tracker first. If
  99. the bug is also known to affect latest upstream code, it can also be
  100. reported via GitLab.
  101. For additional information on bug reporting consult:
  102. * `<https://wiki.qemu.org/Contribute/ReportABug>`_
  103. ChangeLog
  104. =========
  105. For version history and release notes, please visit
  106. `<https://wiki.qemu.org/ChangeLog/>`_ or look at the git history for
  107. more detailed information.
  108. Contact
  109. =======
  110. The QEMU community can be contacted in a number of ways, with the two
  111. main methods being email and IRC:
  112. * `<mailto:qemu-devel@nongnu.org>`_
  113. * `<https://lists.nongnu.org/mailman/listinfo/qemu-devel>`_
  114. * #qemu on irc.oftc.net
  115. Information on additional methods of contacting the community can be
  116. found online via the QEMU website:
  117. * `<https://wiki.qemu.org/Contribute/StartHere>`_