This patch is not for release, testing purpose only.
We need it in order to investigate #PSBM-54665
Signed-off-by: Dmitry Monakhov
diff --git a/drivers/scsi/hosts.c b/drivers/scsi/hosts.c
index 287045b..7364d86 100644
--- a/drivers/scsi/hosts.c
+++ b/drivers/scsi/hosts.c
This patch is not for release, testing purpose only.
We need it in order to investigate #PSBM-54665
Signed-off-by: Dmitry Monakhov
diff --git a/drivers/scsi/hosts.c b/drivers/scsi/hosts.c
index 287045b..7364d86 100644
--- a/drivers/scsi/hosts.c
+++ b/drivers/scsi/hosts.c
From: Denis Plotnikov
The set of patches:
1. adds tsc_scaling functionality for VMX
2. generalizes a number of functions responsible for tsc writing and
reading
3. fix VM pause/resume issue #PSBM-54338 by switching to using
of cached tsc_offset
Haozhong Zhang
On 11/11/2016 11:47 AM, Roman Kagan wrote:
> From: Denis Plotnikov
>
> The set of patches:
> 1. adds tsc_scaling functionality for VMX
> 2. generalizes a number of functions responsible for tsc writing and
>reading
> 3. fix VM pause/resume issue #PSBM-54338 by
The commit is pushed to "branch-rh7-3.10.0-493.vz7.25.x-ovz" and will appear at
https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-493.el7
-->
commit a7df44fbebed6954ea001ce4bfdc023454ec1fc1
Author: Dmitry Monakhov
Date: Fri Nov 11 13:15:22 2016 +0400
The commit is pushed to "branch-rh7-3.10.0-493.vz7.25.x-ovz" and will appear at
https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-493.el7
-->
commit 17b05cfc89e9a34006abd7267d22548811f447dd
Author: Dmitry Monakhov
Date: Fri Nov 11 13:15:20 2016 +0400
From: Haozhong Zhang
VMX and SVM calculate the TSC scaling ratio in a similar logic, so this
patch generalizes it to a common TSC scaling function.
Signed-off-by: Haozhong Zhang
[Inline the multiplication and shift steps into mul_u64_u64_shr.
From: Luiz Capitulino
The TSC offset can now be read directly from struct kvm_arch_vcpu.
Signed-off-by: Luiz Capitulino
Signed-off-by: Paolo Bonzini
(cherry-picked from commit 3e3f50262eb441d0fd1de4dce06739e9c0fe7c61)
From: Paolo Bonzini
Since commit a545ab6a0085 ("kvm: x86: add tsc_offset field to struct
kvm_vcpu_arch", 2016-09-07) the offset between host and L1 TSC is
cached and need not be fished out of the VMCS or VMCB. This means
that we can implement adjust_tsc_offset_guest and
From: Luiz Capitulino
A future commit will want to easily read a vCPU's TSC offset,
so we store it in struct kvm_arch_vcpu_arch for easy access.
Signed-off-by: Luiz Capitulino
Signed-off-by: Paolo Bonzini
(cherry-picked from
From: Haozhong Zhang
This patch moves the field of TSC scaling ratio from the architecture
struct vcpu_svm to the common struct kvm_vcpu_arch.
Signed-off-by: Haozhong Zhang
Signed-off-by: Paolo Bonzini
(cherry-picked
From: Haozhong Zhang
This patch makes kvm-intel to return a scaled host TSC plus the TSC
offset when handling guest readings to MSR_IA32_TSC.
Signed-off-by: Haozhong Zhang
Signed-off-by: Paolo Bonzini
(cherry-picked from
From: Haozhong Zhang
For both VMX and SVM, if the 2nd argument of call-back
adjust_tsc_offset() is the host TSC, then adjust_tsc_offset() will scale
it first. This patch moves this common TSC scaling logic to its caller
adjust_tsc_offset_host() and rename the call-back
From: Haozhong Zhang
This patch makes KVM use virtual_tsc_khz rather than the host TSC rate
as vcpu's TSC rate to compute the time scale if TSC scaling is enabled.
Signed-off-by: Haozhong Zhang
Signed-off-by: Paolo Bonzini
From: Haozhong Zhang
This patch enhances dump_vmcs() to dump the value of TSC multiplier
field in VMCS.
Signed-off-by: Haozhong Zhang
Signed-off-by: Paolo Bonzini
(cherry-picked from commit
From: Haozhong Zhang
This patch makes kvm-intel module to load TSC scaling ratio into TSC
multiplier field of VMCS when a vcpu is loaded, so that TSC scaling
ratio can take effect if VMX TSC scaling is enabled.
Signed-off-by: Haozhong Zhang
From: Haozhong Zhang
This patch exhances kvm-intel module to enable VMX TSC scaling and
collects information of TSC scaling ratio during initialization.
Signed-off-by: Haozhong Zhang
Signed-off-by: Paolo Bonzini
From: Haozhong Zhang
Both VMX and SVM scales the host TSC in the same way in call-back
read_l1_tsc(), so this patch moves the scaling logic from call-back
read_l1_tsc() to a common function kvm_read_l1_tsc().
Signed-off-by: Haozhong Zhang
From: Haozhong Zhang
The number of bits of the fractional part of the 64-bit TSC scaling
ratio in VMX and SVM is different. This patch makes the architecture
code to collect the number of fractional bits and other related
information into variables that can be accessed
From: Haozhong Zhang
Both VMX and SVM calculate the tsc-offset in the same way, so this
patch removes the call-back compute_tsc_offset() and replaces it with a
common function kvm_compute_tsc_offset().
Signed-off-by: Haozhong Zhang
From: Paolo Bonzini
These include module parameters and variables that are set by
kvm_x86_ops->hardware_setup.
Signed-off-by: Paolo Bonzini
(cherry-picked from commit 893590c73426585dfd9f33358b19f18d9395fb2f)
Signed-off-by: Denis Plotnikov
From: Haozhong Zhang
Both VMX and SVM propagate virtual_tsc_khz in the same way, so this
patch removes the call-back set_tsc_khz() and replaces it with a common
function.
Signed-off-by: Haozhong Zhang
Signed-off-by: Paolo Bonzini
22 matches
Mail list logo