[Autotest][PATCH 2/4] virt: Multihost-migrate stops unnecessary vm disk clone.

2012-10-31 Thread Jiří Župka
If force_image_clone == no then only check vm image consistency. If vm image consistency is good use old image else copy again from original. Remove image if consistency is not correct after finish of test. Signed-off-by: Jiří Župka jzu...@redhat.com --- shared/cfg/subtests.cfg.sample |2 ++

[Autotest][PATCH 3/4] virt: Move migration_multi_host_fd to framework

2012-10-31 Thread Jiří Župka
It allows use migration over fd in all multihost_migration tests. Signed-off-by: Jiří Župka jzu...@redhat.com --- kvm/tests/migration_multi_host_fd.py | 196 -- virttest/utils_test.py | 178 ++- 2 files changed, 173

[Autotest][PATCH 4/4] virt: Allows multihost test using of fd migration and adds new tests

2012-10-31 Thread Jiří Župka
New tests: 1) change downtime of migration after start of migration 2) change migration speed after start of migration. 3) cancel migration after start. Signed-off-by: Jiří Župka jzu...@redhat.com --- kvm/tests/migration_multi_host.py | 75 ++-

Re: [PATCH 12/20] KVM/MIPS32: Routines to handle specific traps/exceptions while executing the guest.

2012-10-31 Thread David Daney
On 10/31/2012 08:20 AM, Sanjay Lal wrote: Signed-off-by: Sanjay Lal sanj...@kymasys.com --- arch/mips/kvm/kvm_cb.c| 16 ++ arch/mips/kvm/kvm_trap_emul.c | 446 ++ 2 files changed, 462 insertions(+) create mode 100644 arch/mips/kvm/kvm_cb.c

[patch 03/16] x86: pvclock: remove pvclock_shadow_time

2012-10-31 Thread Marcelo Tosatti
Originally from Jeremy Fitzhardinge. We can copy the information directly from struct pvclock_vcpu_time_info, remove pvclock_shadow_time. Signed-off-by: Marcelo Tosatti mtosa...@redhat.com Index: vsyscall/arch/x86/kernel/pvclock.c

[patch 14/16] KVM: x86: notifier for clocksource changes

2012-10-31 Thread Marcelo Tosatti
Register a notifier for clocksource change event. In case the host switches to clock other than TSC, disable master clock usage. Signed-off-by: Marcelo Tosatti mtosa...@redhat.com Index: vsyscall/arch/x86/kvm/x86.c === ---

[patch 13/16] KVM: x86: implement PVCLOCK_TSC_STABLE_BIT pvclock flag

2012-10-31 Thread Marcelo Tosatti
KVM added a global variable to guarantee monotonicity in the guest. One of the reasons for that is that the time between 1. ktime_get_ts(timespec); 2. rdtscll(tsc); Is variable. That is, given a host with stable TSC, suppose that two VCPUs read the same time via ktime_get_ts()

[patch 16/16] KVM: x86: require matched TSC offsets for master clock

2012-10-31 Thread Marcelo Tosatti
With master clock, a pvclock clock read calculates: ret = system_timestamp + [ (rdtsc + tsc_offset) - tsc_timestamp ] Where 'rdtsc' is the host TSC. system_timestamp and tsc_timestamp are unique, one tuple per VM: the master clock. Given a host with synchronized TSCs, its obvious that guest

[patch 00/16] pvclock vsyscall support + KVM hypervisor support (v3)

2012-10-31 Thread Marcelo Tosatti
This patchset, based on earlier work by Jeremy Fitzhardinge, implements paravirtual clock vsyscall support. It should be possible to implement Xen support relatively easily. It reduces clock_gettime from 500 cycles to 200 cycles on my testbox. Please review. From my POV, this is ready to

[patch 05/16] x86: pvclock: introduce helper to read flags

2012-10-31 Thread Marcelo Tosatti
Signed-off-by: Marcelo Tosatti mtosa...@redhat.com Index: vsyscall/arch/x86/kernel/pvclock.c === --- vsyscall.orig/arch/x86/kernel/pvclock.c +++ vsyscall/arch/x86/kernel/pvclock.c @@ -45,6 +45,19 @@ void pvclock_resume(void)

[patch 10/16] x86: vdso: pvclock gettime support

2012-10-31 Thread Marcelo Tosatti
Improve performance of time system calls when using Linux pvclock, by reading time info from fixmap visible copy of pvclock data. Originally from Jeremy Fitzhardinge. Signed-off-by: Marcelo Tosatti mtosa...@redhat.com Index: vsyscall/arch/x86/vdso/vclock_gettime.c

[patch 08/16] KVM: x86: introduce facility to support vsyscall pvclock, via MSR

2012-10-31 Thread Marcelo Tosatti
Allow a guest to register a second location for the VCPU time info structure for each vcpu (as described by MSR_KVM_SYSTEM_TIME_NEW). This is intended to allow the guest kernel to map this information into a usermode accessible page, so that usermode can efficiently calculate system time from the

[patch 07/16] x86: pvclock: generic pvclock vsyscall initialization

2012-10-31 Thread Marcelo Tosatti
Originally from Jeremy Fitzhardinge. Introduce generic, non hypervisor specific, pvclock initialization routines. Signed-off-by: Marcelo Tosatti mtosa...@redhat.com Index: vsyscall/arch/x86/kernel/pvclock.c === ---

[patch 15/16] KVM: x86: add kvm_arch_vcpu_postcreate callback, move TSC initialization

2012-10-31 Thread Marcelo Tosatti
TSC initialization will soon make use of online_vcpus. Signed-off-by: Marcelo Tosatti mtosa...@redhat.com Index: vsyscall/arch/ia64/kvm/kvm-ia64.c === --- vsyscall.orig/arch/ia64/kvm/kvm-ia64.c +++ vsyscall/arch/ia64/kvm/kvm-ia64.c

[patch 01/16] KVM: x86: retain pvclock guest stopped bit in guest memory

2012-10-31 Thread Marcelo Tosatti
Otherwise its possible for an unrelated KVM_REQ_UPDATE_CLOCK (such as due to CPU migration) to clear the bit. Noticed by Paolo Bonzini. Signed-off-by: Marcelo Tosatti mtosa...@redhat.com Index: vsyscall/arch/x86/kvm/x86.c === ---

[patch 02/16] x86: pvclock: make sure rdtsc doesnt speculate out of region

2012-10-31 Thread Marcelo Tosatti
Originally from Jeremy Fitzhardinge. pvclock_get_time_values, which contains the memory barriers will be removed by next patch. Signed-off-by: Marcelo Tosatti mtosa...@redhat.com Index: vsyscall/arch/x86/kernel/pvclock.c === ---

[patch 09/16] x86: kvm guest: pvclock vsyscall support

2012-10-31 Thread Marcelo Tosatti
Allow hypervisor to update userspace visible copy of pvclock data. Signed-off-by: Marcelo Tosatti mtosa...@redhat.com Index: vsyscall/arch/x86/kernel/kvmclock.c === --- vsyscall.orig/arch/x86/kernel/kvmclock.c +++

[patch 04/16] x86: pvclock: create helper for pvclock data retrieval

2012-10-31 Thread Marcelo Tosatti
Originally from Jeremy Fitzhardinge. So code can be reused. Signed-off-by: Marcelo Tosatti mtosa...@redhat.com Index: vsyscall/arch/x86/kernel/pvclock.c === --- vsyscall.orig/arch/x86/kernel/pvclock.c +++

[patch 06/16] sched: add notifier for cross-cpu migrations

2012-10-31 Thread Marcelo Tosatti
Originally from Jeremy Fitzhardinge. Signed-off-by: Marcelo Tosatti mtosa...@redhat.com Index: vsyscall/include/linux/sched.h === --- vsyscall.orig/include/linux/sched.h +++ vsyscall/include/linux/sched.h @@ -107,6 +107,14 @@ extern

[patch 11/16] KVM: x86: pass host_tsc to read_l1_tsc

2012-10-31 Thread Marcelo Tosatti
Allow the caller to pass host tsc value to kvm_x86_ops-read_l1_tsc(). Signed-off-by: Marcelo Tosatti mtosa...@redhat.com Index: vsyscall/arch/x86/include/asm/kvm_host.h === --- vsyscall.orig/arch/x86/include/asm/kvm_host.h +++

[patch 12/16] time: export time information for KVM pvclock

2012-10-31 Thread Marcelo Tosatti
As suggested by John, export time data similarly to how its done by vsyscall support. This allows KVM to retrieve necessary information to implement vsyscall support in KVM guests. Signed-off-by: Marcelo Tosatti mtosa...@redhat.com Index: vsyscall/include/linux/pvclock_gtod.h

Re: [PATCH v11] kvm: notify host when the guest is panicked

2012-10-31 Thread Marcelo Tosatti
On Tue, Oct 30, 2012 at 10:30:02PM -0400, Sasha Levin wrote: On Tue, Oct 30, 2012 at 9:48 PM, Wen Congyang we...@cn.fujitsu.com wrote: At 10/31/2012 09:12 AM, Marcelo Tosatti Wrote: It has been asked earlier why a simple virtio device is not usable for this (with no response IIRC). 1.

[GIT PULL] KVM fixes for 3.7-rc3

2012-10-31 Thread Marcelo Tosatti
Linus, Please pull from git://git.kernel.org/pub/scm/virt/kvm/kvm.git master To receive the following KVM bug fixes Xiao Guangrong (1): KVM: x86: fix vcpu-mmio_fragments overflow arch/x86/kvm/x86.c | 60 ++- include/linux/kvm_host.h

Re: [PATCH] emulator test: add rep ins mmio access test

2012-10-31 Thread Marcelo Tosatti
On Fri, Oct 19, 2012 at 03:39:08PM +0800, Xiao Guangrong wrote: Add the test to trigger the bug that rep ins causes vcpu-mmio_fragments overflow overflow while move large data from ioport to MMIO Signed-off-by: Xiao Guangrong xiaoguangr...@linux.vnet.ibm.com --- x86/emulator.c | 14

Guest performance is reduced after live migration

2012-10-31 Thread Shouta.Uehara
Hello. I have a problem with the performance of the guest Linux after live migration. When I analyze the file I/O latency of the guest using LMbench3, the latency of the guest on the destination host is about 2 times bigger than the guest on the source host. As a result that I investigated it,

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

2012-10-31 Thread Marcelo Tosatti
On Tue, Oct 30, 2012 at 11:35:13AM -0700, Will Auld wrote: 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)

Re: [PATCH 2/2] kvm, svm: Update MAINTAINERS entry

2012-10-31 Thread Marcelo Tosatti
On Mon, Oct 29, 2012 at 07:08:21PM +0100, Joerg Roedel wrote: I have no access to my AMD email address anymore. Update entry in MAINTAINERS to the new address. Cc: Avi Kivity a...@redhat.com Cc: Marcelo Tosatti mtosa...@redhat.com Signed-off-by: Joerg Roedel j...@8bytes.org ---

Re: Guest performance is reduced after live migration

2012-10-31 Thread Xiao Guangrong
Shouta, Can it be reproduced if thp/hugetlbfs is disabled on both source and destination? On 11/01/2012 08:12 AM, shouta.ueh...@jp.yokogawa.com wrote: Hello. I have a problem with the performance of the guest Linux after live migration. When I analyze the file I/O latency of the guest

Re: [PATCH v3 2/2] KVM: make crash_clear_loaded_vmcss valid when loading kvm_intel module

2012-10-31 Thread zhangyanfei
于 2012年10月31日 17:01, Hatayama, Daisuke 写道: -Original Message- From: kexec-boun...@lists.infradead.org [mailto:kexec-boun...@lists.infradead.org] On Behalf Of zhangyanfei Sent: Wednesday, October 31, 2012 12:34 PM To: x...@kernel.org; ke...@lists.infradead.org; Avi Kivity; Marcelo

Re: [PULL 00/12] ppc patch queue 2012-10-30

2012-10-31 Thread Alexander Graf
On 31.10.2012, at 02:32, Marcelo Tosatti mtosa...@redhat.com wrote: On Tue, Oct 30, 2012 at 11:02:13AM +0100, Alexander Graf wrote: Hi Avi / Marcelo, This is my current patch queue for ppc. Please pull. Headline changes are: * Fix 440 target * Fix uapi conflict Can you

Re: [PULL 00/12] ppc patch queue 2012-10-30

2012-10-31 Thread Avi Kivity
On 10/31/2012 12:22 PM, Alexander Graf wrote: On 31.10.2012, at 02:32, Marcelo Tosatti mtosa...@redhat.com wrote: On Tue, Oct 30, 2012 at 11:02:13AM +0100, Alexander Graf wrote: Hi Avi / Marcelo, This is my current patch queue for ppc. Please pull. Headline changes are: * Fix

Re: [PULL 00/12] ppc patch queue 2012-10-30

2012-10-31 Thread Alexander Graf
On 31.10.2012, at 11:26, Avi Kivity a...@redhat.com wrote: On 10/31/2012 12:22 PM, Alexander Graf wrote: On 31.10.2012, at 02:32, Marcelo Tosatti mtosa...@redhat.com wrote: On Tue, Oct 30, 2012 at 11:02:13AM +0100, Alexander Graf wrote: Hi Avi / Marcelo, This is my current patch

Re: [PULL 00/12] ppc patch queue 2012-10-30

2012-10-31 Thread Avi Kivity
On 10/31/2012 12:34 PM, Alexander Graf wrote: On 31.10.2012, at 11:26, Avi Kivity a...@redhat.com wrote: On 10/31/2012 12:22 PM, Alexander Graf wrote: On 31.10.2012, at 02:32, Marcelo Tosatti mtosa...@redhat.com wrote: On Tue, Oct 30, 2012 at 11:02:13AM +0100, Alexander Graf wrote:

Re: [PULL 00/12] ppc patch queue 2012-10-30

2012-10-31 Thread Marcelo Tosatti
On Wed, Oct 31, 2012 at 12:26:04PM +0200, Avi Kivity wrote: On 10/31/2012 12:22 PM, Alexander Graf wrote: On 31.10.2012, at 02:32, Marcelo Tosatti mtosa...@redhat.com wrote: On Tue, Oct 30, 2012 at 11:02:13AM +0100, Alexander Graf wrote: Hi Avi / Marcelo, This is my current

Re: [PULL 00/12] ppc patch queue 2012-10-30

2012-10-31 Thread Marcelo Tosatti
On Wed, Oct 31, 2012 at 11:22:55AM +0100, Alexander Graf wrote: On 31.10.2012, at 02:32, Marcelo Tosatti mtosa...@redhat.com wrote: On Tue, Oct 30, 2012 at 11:02:13AM +0100, Alexander Graf wrote: Hi Avi / Marcelo, This is my current patch queue for ppc. Please pull. Headline

Re: [PULL 00/12] ppc patch queue 2012-10-30

2012-10-31 Thread Alexander Graf
On 31.10.2012, at 12:25, Marcelo Tosatti wrote: On Wed, Oct 31, 2012 at 12:26:04PM +0200, Avi Kivity wrote: On 10/31/2012 12:22 PM, Alexander Graf wrote: On 31.10.2012, at 02:32, Marcelo Tosatti mtosa...@redhat.com wrote: On Tue, Oct 30, 2012 at 11:02:13AM +0100, Alexander Graf wrote:

<    1   2