[Devel] [PATCH] scsi: make scsi error laud

2016-11-11 Thread Dmitry Monakhov
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

[Devel] [PATCH] scsi-DBG: make scsi error laud

2016-11-11 Thread Dmitry Monakhov
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

[Devel] [PATCH 00/16] add tsc_scale and fix VM pause/resume

2016-11-11 Thread Roman Kagan
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

Re: [Devel] [PATCH 00/16] add tsc_scale and fix VM pause/resume

2016-11-11 Thread Denis V. Lunev
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

[Devel] [PATCH RHEL7 COMMIT] xfs: compilation fix in xfs_buftarg_wait_rele()

2016-11-11 Thread Konstantin Khorenko
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

[Devel] [PATCH RHEL7 COMMIT] ms/xfs: convert dquot cache lru to list_lru part2

2016-11-11 Thread Konstantin Khorenko
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

[Devel] [PATCH 04/16] KVM: x86: Add a common TSC scaling function

2016-11-11 Thread Roman Kagan
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.

[Devel] [PATCH 15/16] kvm: x86: drop read_tsc_offset()

2016-11-11 Thread Roman Kagan
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)

[Devel] [PATCH 16/16] KVM: x86: drop TSC offsetting kvm_x86_ops to fix KVM_GET/SET_CLOCK

2016-11-11 Thread Roman Kagan
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

[Devel] [PATCH 14/16] kvm: x86: add tsc_offset field to struct kvm_vcpu_arch

2016-11-11 Thread Roman Kagan
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

[Devel] [PATCH 03/16] KVM: x86: Add a common TSC scaling ratio field in kvm_vcpu_arch

2016-11-11 Thread Roman Kagan
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

[Devel] [PATCH 12/16] KVM: VMX: Use a scaled host TSC for guest readings of MSR_IA32_TSC

2016-11-11 Thread Roman Kagan
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

[Devel] [PATCH 07/16] KVM: x86: Move TSC scaling logic out of call-back adjust_tsc_offset()

2016-11-11 Thread Roman Kagan
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

[Devel] [PATCH 09/16] KVM: x86: Use the correct vcpu's TSC rate to compute time scale

2016-11-11 Thread Roman Kagan
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

[Devel] [PATCH 13/16] KVM: VMX: Dump TSC multiplier in dump_vmcs()

2016-11-11 Thread Roman Kagan
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

[Devel] [PATCH 11/16] KVM: VMX: Setup TSC scaling ratio when a vcpu is loaded

2016-11-11 Thread Roman Kagan
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

[Devel] [PATCH 10/16] KVM: VMX: Enable and initialize VMX TSC scaling

2016-11-11 Thread Roman Kagan
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

[Devel] [PATCH 08/16] KVM: x86: Move TSC scaling logic out of call-back read_l1_tsc()

2016-11-11 Thread Roman Kagan
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

[Devel] [PATCH 02/16] KVM: x86: Collect information for setting TSC scaling ratio

2016-11-11 Thread Roman Kagan
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

[Devel] [PATCH 06/16] KVM: x86: Replace call-back compute_tsc_offset() with a common function

2016-11-11 Thread Roman Kagan
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

[Devel] [PATCH 01/16] KVM: x86: declare a few variables as __read_mostly

2016-11-11 Thread Roman Kagan
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

[Devel] [PATCH 05/16] KVM: x86: Replace call-back set_tsc_khz() with a common function

2016-11-11 Thread Roman Kagan
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