]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - arch/x86/kvm/svm.c
KVM: x86: Add code to track call origin for msr assignment
authorWill Auld <will.auld.intel@gmail.com>
Thu, 29 Nov 2012 20:42:12 +0000 (12:42 -0800)
committerMarcelo Tosatti <mtosatti@redhat.com>
Fri, 30 Nov 2012 20:26:12 +0000 (18:26 -0200)
commit8fe8ab46be06fcd9abfe6fe9928fd95b54ab079a
tree38c355d8451076da9259f45db598763f91aaf941
parent5419369ed6bd4cf711fdda5e52a5999b940413f5
KVM: x86: Add code to track call origin for msr assignment

In order to track who initiated the call (host or guest) to modify an msr
value I have changed function call parameters along the call path. The
specific change is to add a struct pointer parameter that points to (index,
data, caller) information rather than having this information passed as
individual parameters.

The initial use for this capability is for updating the IA32_TSC_ADJUST msr
while setting the tsc value. It is anticipated that this capability is
useful for other tasks.

Signed-off-by: Will Auld <will.auld@intel.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/svm.c
arch/x86/kvm/vmx.c
arch/x86/kvm/x86.c
arch/x86/kvm/x86.h