kernel git tree
The kvm kernel code is available through a git tree (like the kernel itself). To create a repository using git, type
Alternatively, it is also accessible through the kernel.org gitweb interface: 
For subsequent upgrades use the command
in the git working directory.
kernel git workflow
userspace git tree
As of QEMU 1.3, the KVM userspace code is in mainline QEMU. Please use and develop with
git clone https://gitlab.com/qemu-project/qemu.git
If you want to contribute code, please see the guidelines and submit patches to email@example.com.
If you are interested in the history of KVM in the QEMU codebase, the old qemu-kvm.git fork repository is still available (but completely outdated nowadays):
Alternatively, it is also accessible through the kernel.org gitweb interface: