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