KVM: nVMX: Refactor handle_vmwrite
authorAbel Gordon <abelg@il.ibm.com>
Thu, 18 Apr 2013 11:36:25 +0000 (14:36 +0300)
committerGleb Natapov <gleb@redhat.com>
Mon, 22 Apr 2013 07:51:44 +0000 (10:51 +0300)
commit20b97feaf615da2c43361e1dda7efd068a4446ef
tree74976cbba36be27a16cfd8b13ccc7fe17b6abf4c
parent4607c2d7a2ee90707de2b3b37e4d9156e05cdf29
KVM: nVMX: Refactor handle_vmwrite

Refactor existent code so we re-use vmcs12_write_any to copy fields from the
shadow vmcs specified by the link pointer (used by the processor,
implementation-specific) to the VMCS12 software format used by L0 to hold
the fields in L1 memory address space.

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