]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kvm tools: Fix 32-bit build of the asm/system.h include
authorIngo Molnar <mingo@elte.hu>
Thu, 5 May 2011 08:00:45 +0000 (10:00 +0200)
committerPekka Enberg <penberg@kernel.org>
Thu, 5 May 2011 13:28:32 +0000 (16:28 +0300)
commitd0ded3d6cf9224594a8ee8593600163bc1eb2663
tree5c75f608723d0b6fede27a49c0d8e7b5c101813a
parentd7f0c07afeefa2d20739437306e4b8bb2853cf83
kvm tools: Fix 32-bit build of the asm/system.h include

Provide wrappers and other environmental dependencies that the
asm/system.h header file from hell needs to build fine in user-space.

Sidenote: right now alternative() defaults to the compatible, slightly
slower barrier instructions that work on all x86 systems.

If this ever shows up in profiles then kvm could provide an alternatives
patching machinery as well. Right now those instructions are emitted
into special sections and then discarded by the linker harmlessly.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
tools/kvm/include/asm/hweight.h [new file with mode: 0644]
tools/kvm/include/kvm/barrier.h [new file with mode: 0644]
tools/kvm/include/linux/bitops.h [new file with mode: 0644]
tools/kvm/virtio.c