]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kvm tools: Enable fast string operations
authorSasha Levin <levinsasha928@gmail.com>
Fri, 14 Oct 2011 07:36:09 +0000 (09:36 +0200)
committerPekka Enberg <penberg@kernel.org>
Fri, 14 Oct 2011 12:49:25 +0000 (15:49 +0300)
commit5a00c132e7c1943f7ffcf365f1f44e59479ddc1f
treeaf3164746915c075bb81b8321e6739cb44070c0b
parent8e4ebac4a27449f8c3ff81e757dc7a6d45312f8a
kvm tools: Enable fast string operations

Recent kernels check for MSR_IA32_MISC_ENABLE_FAST_STRING in the
MSR_IA32_MISC_ENABLE MSR before enabling reps/movs memcpy.

So far we didn't set it, and got a slower memcpy and a warning:

[    0.000000] Disabled fast string operations

This patch enables fast string operations.

Signed-off-by: Sasha Levin <levinsasha928@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
tools/kvm/kvm-cpu.c