]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: SVM: Optimize nested svm msrpm merging
authorJoerg Roedel <joerg.roedel@amd.com>
Mon, 1 Mar 2010 14:34:37 +0000 (15:34 +0100)
committerAvi Kivity <avi@redhat.com>
Mon, 17 May 2010 09:15:12 +0000 (12:15 +0300)
commit436c7be90d6ed2cd1bf40f35e765c0e003d56359
treeac96b682183194f70e10be5dd85d34cef205e7ba
parent875234354d9de076fb0e69d38e8ece2c1d906ae6
KVM: SVM: Optimize nested svm msrpm merging

This patch optimizes the way the msrpm of the host and the
guest are merged. The old code merged the 2 msrpm pages
completly. This code needed to touch 24kb of memory for that
operation. The optimized variant this patch introduces
merges only the parts where the host msrpm may contain zero
bits. This reduces the amount of memory which is touched to
48 bytes.

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/svm.c