[PATCH V6 2/2] Enabling IA32_TSC_ADJUST for KVM guest VM support

2012-11-29 Thread Will Auld
performs a rdtsc. In this case the guest process will get TSC + IA32_TSC_ADJUST_hyperviser + vmsc tsc_offset including IA32_TSC_ADJUST_guest. While the total system semantics changed the semantics as seen by the guest do not and hence this will not cause a problem. Signed-off-by: Will Auld ---

[PATCH V6 1/2] Add code to track call origin for msr assignment.

2012-11-29 Thread Will Auld
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 --- arch/x86/include/asm/kvm_host.h | 12 +--- arch/x86/kvm/svm.c

[PATCH V6 0/2] Enable guest use of TSC_ADJUST functionality

2012-11-29 Thread Will Auld
I have re-based this patch set version (V6) to kvm.git's queue branch. Will Auld (2): Add code to track call origin for msr assignment. Enabling IA32_TSC_ADJUST for KVM guest VM support arch/x86/include/asm/cpufeature.h | 1 + arch/x86/include/asm/kvm_host.h | 14 --- arc

[PATCH V2] Added tests for ia32_tsc_adjust funtionality.

2012-11-28 Thread Will Auld
Added x86/tsc_adjust.c and updated x86/vmexit.c to include timing tests for reading and writing the emulated IA32_TSC_ADJUST msr. Signed-off-by: Will Auld --- config-x86-common.mak | 5 - x86/tsc_adjust.c | 60 +++ x86/vmexit.c

[PATCH V5 2/2] Enabling IA32_TSC_ADJUST for KVM guest VM support

2012-11-27 Thread Will Auld
performs a rdtsc. In this case the guest process will get TSC + IA32_TSC_ADJUST_hyperviser + vmsc tsc_offset including IA32_TSC_ADJUST_guest. While the total system semantics changed the semantics as seen by the guest do not and hence this will not cause a problem. Signed-off-by: Will Auld ---

[PATCH V5 1/2] Add code to track call origin for msr assignment.

2012-11-27 Thread Will Auld
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 other tasks. Signed-off-by: Will Auld --- arch/x86/include/asm/kvm_host.h | 12 +--- arch/x86/kvm/svm.c

[PATCH V5 0/2] Enable guest use of TSC_ADJUST functionality

2012-11-27 Thread Will Auld
With this version (V5) I have gone back the the V3 implementation of emulator_set_msr() but changing the bool to false. Will Auld (2): Add code to track call origin for msr assignment. Enabling IA32_TSC_ADJUST for KVM guest VM support arch/x86/include/asm/cpufeature.h | 1 + arch/x86

[PATCH V5] target-i386: Enabling IA32_TSC_ADJUST for QEMU KVM guest VMs

2012-11-26 Thread Will Auld
whether through rdmsr or rdtsc. As this is a new MSR that the guest may access and modify its value needs to be migrated along with the other MRSs. The changes here are specifically for recognizing when IA32_TSC_ADJUST is enabled in CPUID and code added for migrating its value. Signed-off-by: Will

[PATCH V4] target-i386: Enabling IA32_TSC_ADJUST for Qemu KVM guest VMs

2012-11-26 Thread Will Auld
whether through rdmsr or rdtsc. As this is a new MSR that the guest may access and modify its value needs to be migrated along with the other MRSs. The changes here are specifically for recognizing when IA32_TSC_ADJUST is enabled in CPUID and code added for migrating its value. Signed-off-by: Will

[PATCH V3] target-i386: Enabling IA32_TSC_ADJUST for QEMU KVM guest VMs

2012-11-26 Thread Will Auld
whether through rdmsr or rdtsc. As this is a new MSR that the guest may access and modify its value needs to be migrated along with the other MRSs. The changes here are specifically for recognizing when IA32_TSC_ADJUST is enabled in CPUID and code added for migrating its value. Signed-off-by: Will

[PATCH V4 2/2] Enabling IA32_TSC_ADJUST for KVM guest VM support

2012-11-26 Thread Will Auld
performs a rdtsc. In this case the guest process will get TSC + IA32_TSC_ADJUST_hyperviser + vmsc tsc_offset including IA32_TSC_ADJUST_guest. While the total system semantics changed the semantics as seen by the guest do not and hence this will not cause a problem. Signed-off-by: Will Auld ---

[PATCH V4 1/2] Add code to track call origin for msr assignment.

2012-11-26 Thread Will Auld
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 other tasks. Signed-off-by: Will Auld --- arch/x86/include/asm/kvm_host.h | 12 +--- arch/x86/kvm/svm.c

[PATCH V4 0/2] Enable guest use of TSC_ADJUST functionality

2012-11-26 Thread Will Auld
This reversion, V4, addresses a couple of issues I missed from Gleb and Marcelo. Thanks, Will Will Auld (2): Add code to track call origin for msr assignment. Enabling IA32_TSC_ADJUST for KVM guest VM support arch/x86/include/asm/cpufeature.h | 1 + arch/x86/include/asm/kvm_host.h | 15

[PATCH V2] Resend - Enabling IA32_TSC_ADJUST for Qemu KVM guest VMs

2012-11-26 Thread Will Auld
whether through rdmsr or rdtsc. As this is a new MSR that the guest may access and modify its value needs to be migrated along with the other MRSs. The changes here are specifically for recognizing when IA32_TSC_ADJUST is enabled in CPUID and code added for migrating its value. Signed-off-by: Will

[PATCH V3 2/2] Resend - Enabling IA32_TSC_ADJUST for KVM guest VM support

2012-11-26 Thread Will Auld
performs a rdtsc. In this case the guest process will get TSC + IA32_TSC_ADJUST_hyperviser + vmsc tsc_offset including IA32_TSC_ADJUST_guest. While the total system semantics changed the semantics as seen by the guest do not and hence this will not cause a problem. Signed-off-by: Will Auld ---

[PATCH V3 1/2] Resend - Add code to track call origin for msr assignment.

2012-11-26 Thread Will Auld
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 other tasks. Signed-off-by: Will Auld --- arch/x86/include/asm/kvm_host.h | 12 +--- arch/x86/kvm/svm.c

[PATCH V3 0/2] Resend - IA32_TSC_ADJUST support for KVM

2012-11-26 Thread Will Auld
Resending these as the mail seems to have not fully worked last Wed. Marcelo, I have addressed your comments for this patch set (V3), the following patch for QEMU-KVM and for adding a test case for tsc_adjust also to follow today. Thanks, Will Will Auld (2): Add code to track call

[PATCH 2/2] Enabling IA32_TSC_ADJUST for KVM guest VM support

2012-11-22 Thread Will Auld
performs a rdtsc. In this case the guest process will get TSC + IA32_TSC_ADJUST_hyperviser + vmsc tsc_offset including IA32_TSC_ADJUST_guest. While the total system semantics changed the semantics as seen by the guest do not and hence this will not cause a problem. Signed-off-by: Will Auld ---

[PATCH V3 0/2] IA32_TSC_ADJUST for KVM

2012-11-22 Thread Will Auld
Marcelo, I have addressed your comments for this patch set, the following patch for QEMU-KVM and for adding a test case for tsc_adjust also to follow today. Thanks, Will Will Auld (2): Add code to track call origin for msr assignment. Enabling IA32_TSC_ADJUST for KVM guest VM support

[PATCH V3 2/2] Enabling IA32_TSC_ADJUST for KVM guest VM support

2012-11-22 Thread Will Auld
performs a rdtsc. In this case the guest process will get TSC + IA32_TSC_ADJUST_hyperviser + vmsc tsc_offset including IA32_TSC_ADJUST_guest. While the total system semantics changed the semantics as seen by the guest do not and hence this will not cause a problem. Signed-off-by: Will Auld ---

[PATCH V3 1/2] Add code to track call origin for msr assignment.

2012-11-22 Thread Will Auld
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 other tasks. Signed-off-by: Will Auld --- arch/x86/include/asm/kvm_host.h | 12 +--- arch/x86/kvm/svm.c

[PATCH 1/2] Add code to track call origin for msr assignment.

2012-11-22 Thread Will Auld
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 other tasks. Signed-off-by: Will Auld --- arch/x86/include/asm/kvm_host.h | 12 +--- arch/x86/kvm/svm.c

[PATCH V2] Enabling IA32_TSC_ADJUST for Qemu KVM guest VMs

2012-11-22 Thread Will Auld
whether through rdmsr or rdtsc. As this is a new MSR that the guest may access and modify its value needs to be migrated along with the other MRSs. The changes here are specifically for recognizing when IA32_TSC_ADJUST is enabled in CPUID and code added for migrating its value. Signed-off-by: Will

[PATCH] Added x86/tsc_adjust.c to test the ia32_tsc_adjust funtionality.

2012-11-22 Thread Will Auld
Signed-off-by: Will Auld --- config-x86-common.mak | 5 - x86/tsc_adjust.c | 43 +++ 2 files changed, 47 insertions(+), 1 deletion(-) create mode 100644 x86/tsc_adjust.c diff --git a/config-x86-common.mak b/config-x86-common.mak index c76cd11

[PATCH V2] Enabling IA32_TSC_ADJUST for Qemu KVM guest VMs

2012-11-22 Thread Will Auld
whether through rdmsr or rdtsc. As this is a new MSR that the guest may access and modify its value needs to be migrated along with the other MRSs. The changes here are specifically for recognizing when IA32_TSC_ADJUST is enabled in CPUID and code added for migrating its value. Signed-off-by: Will

Resend [PATCH] Enabling IA32_TSC_ADJUST for Qemu KVM guest VMs

2012-11-15 Thread Will Auld
whether through rdmsr or rdtsc. As this is a new MSR that the guest may access and modify its value needs to be migrated along with the other MRSs. The changes here are specifically for recognizing when IA32_TSC_ADJUST is enabled in CPUID and code added for migrating its value. Signed-off-by: Will

[PATCH 2/2] Enabling IA32_TSC_ADJUST for KVM guest VM support

2012-11-15 Thread Will Auld
performs a rdtsc. In this case the guest process will get TSC + IA32_TSC_ADJUST_hyperviser + vmsc tsc_offset including IA32_TSC_ADJUST_guest. While the total system semantics changed the semantics as seen by the guest do not and hence this will not cause a problem. Signed-off-by: Will Auld ---

[PATCH 1/2] Add code to track call origin for msr assignment.

2012-11-15 Thread Will Auld
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 other tasks. Signed-off-by: Will Auld --- arch/x86/include/asm/kvm_host.h | 12 +--- arch/x86/kvm/svm.c

[PATCH 0/2] Resend V2 of patch set to enable guest use of TSC_ADJUST functionality

2012-11-15 Thread Will Auld
Adding Gleb. This is a resend of the patches for TSC_ADJUST functionality. The two KVM patches and an additional QEMU-KVM patch together provide this support. Will Auld (2): Add code to track call origin for msr assignment. Enabling IA32_TSC_ADJUST for KVM guest VM support arch/x86

[PATCH V2] Enabling IA32_TSC_ADJUST for KVM guest VM support

2012-11-03 Thread Will Auld
performs a rdtsc. In this case the guest process will get TSC + IA32_TSC_ADJUST_hyperviser + vmsc tsc_offset including IA32_TSC_ADJUST_guest. While the total system semantics changed the semantics as seen by the guest do not and hence this will not cause a problem. Signed-off-by: Will Auld --- This

[PATCH V2] Add code to track call origin for msr assignment.

2012-10-30 Thread Will Auld
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 --- arch/x86/include/asm/kvm_host.h | 12 +--- arch/x86/kvm/svm.c

[PATCH] Add code to track call origin for msr assignment.

2012-10-29 Thread Will Auld
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 --- arch/x86/include/asm/kvm_host.h | 18 +++--- arch/x86/kvm/svm.c

Re: [PATCH] Added call parameter to track whether invocation originated with guest or elsewhere

2012-10-22 Thread Will Auld
On Wed, 2012-10-17 at 16:28 +0200, Avi Kivity wrote: > On 10/17/2012 04:09 PM, Marcelo Tosatti wrote: > > On Wed, Oct 17, 2012 at 12:35:33PM +0200, Avi Kivity wrote: > >> On 10/17/2012 04:10 AM, Will Auld wrote: > >> > Signed-off-by: Will Auld > >> >

[PATCH] Added call parameter to track whether invocation originated with guest or elsewhere

2012-10-16 Thread Will Auld
Signed-off-by: Will Auld --- Resending to full list Marcelo, This patch is what I believe you ask for as foundational for later patches to address IA32_TSC_ADJUST. Thanks, Will arch/x86/include/asm/kvm_host.h | 8 arch/x86/kvm/svm.c | 18 ++ arch/x86