KVM: nVMX: Introduce vmread and vmwrite bitmaps
authorAbel Gordon <abelg@il.ibm.com>
Thu, 18 Apr 2013 11:35:55 +0000 (14:35 +0300)
committerGleb Natapov <gleb@redhat.com>
Mon, 22 Apr 2013 07:51:34 +0000 (10:51 +0300)
commit4607c2d7a2ee90707de2b3b37e4d9156e05cdf29
tree48220aa0ebca91a5f2c7ab0a4d6b2b9044684b23
parentabc4fc58c5ba1a794092bcd97fdb1680b0b3398d
KVM: nVMX: Introduce vmread and vmwrite bitmaps

Prepare vmread and vmwrite bitmaps according to a pre-specified list of fields.
These lists are intended to specifiy most frequent accessed fields so we can
minimize the number of fields that are copied from/to the software controlled
VMCS12 format to/from to processor-specific shadow vmcs. The lists were built
measuring the VMCS fields access rate after L2 Ubuntu 12.04 booted when it was
running on top of L1 KVM, also Ubuntu 12.04. Note that during boot there were
additional fields which were frequently modified but they were not added to
these lists because after boot these fields were not longer accessed by L1.

Signed-off-by: Abel Gordon <abelg@il.ibm.com>
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
Signed-off-by: Gleb Natapov <gleb@redhat.com>
arch/x86/kvm/vmx.c