Re: [PATCH v3] kvm/fpu: Enable fully eager restore kvm FPU

2012-09-23 Thread Avi Kivity
On 09/21/2012 11:47 AM, Hao, Xudong wrote: -Original Message- From: Avi Kivity [mailto:a...@redhat.com] Sent: Thursday, September 20, 2012 5:20 PM To: Hao, Xudong Cc: Marcelo Tosatti; kvm@vger.kernel.org; Zhang, Xiantao Subject: Re: [PATCH v3] kvm/fpu: Enable fully eager

Re: [PATCH v3 1/7] KVM: MMU: fix release noslot pfn

2012-09-23 Thread Gleb Natapov
On Fri, Sep 21, 2012 at 02:57:19PM +0800, Xiao Guangrong wrote: We can not directly call kvm_release_pfn_clean to release the pfn since we can meet noslot pfn which is used to cache mmio info into spte Wouldn't it be better to move the check into kvm_release_pfn_clean()? Signed-off-by: Xiao

Re: [PATCH v11] kvm: Add resampling irqfds for level triggered interrupts

2012-09-23 Thread Avi Kivity
On 09/21/2012 08:58 PM, Alex Williamson wrote: To emulate level triggered interrupts, add a resample option to KVM_IRQFD. When specified, a new resamplefd is provided that notifies the user when the irqchip has been resampled by the VM. This may, for instance, indicate an EOI. Also in this

Re: [PATCH v2] KVM: x86: Fix guest debug across vcpu INIT reset

2012-09-23 Thread Avi Kivity
On 09/21/2012 06:42 AM, Jan Kiszka wrote: From: Jan Kiszka jan.kis...@siemens.com If we reset a vcpu on INIT, we so far overwrote dr7 as provided by KVM_SET_GUEST_DEBUG, and we also cleared switch_db_regs unconditionally. Fix this by saving the dr7 used for guest debugging and calculating

Re: [libvirt] TSC scaling interface to management

2012-09-23 Thread Dor Laor
On 09/23/2012 04:06 AM, Marcelo Tosatti wrote: On Fri, Sep 21, 2012 at 11:30:31PM +0300, Dor Laor wrote: On 09/21/2012 05:51 AM, Marcelo Tosatti wrote: On Fri, Sep 21, 2012 at 12:02:46AM +0300, Dor Laor wrote: On 09/12/2012 06:39 PM, Marcelo Tosatti wrote: HW TSC scaling is a feature of

Block live migration without pausing VM

2012-09-23 Thread Felix Leimbach
Hi all, I want to implement live-migration of a highly available VM but I cannot use shared storage. The -b option to the migrate command already allows for copying the block device (locally stored raw file) and that is exactly what I want. This worked in my experiments but the VM is

[PATCH v4] kvm/fpu: Enable fully eager restore kvm FPU

2012-09-23 Thread Xudong Hao
Enable KVM FPU fully eager restore, if there is other FPU state which isn't tracked by CR0.TS bit. v4 changes from v3: - Wrap up some confused code with a clear functio lazy_fpu_allowed() - Update fpu while update cr4 too. v3 changes from v2: - Make fpu active explicitly while guest xsave is

Re: [PATCH v3 1/7] KVM: MMU: fix release noslot pfn

2012-09-23 Thread Xiao Guangrong
On 09/23/2012 05:13 PM, Gleb Natapov wrote: On Fri, Sep 21, 2012 at 02:57:19PM +0800, Xiao Guangrong wrote: We can not directly call kvm_release_pfn_clean to release the pfn since we can meet noslot pfn which is used to cache mmio info into spte Wouldn't it be better to move the check into

Re: [PATCH v3 0/6] Optimize vcpu-requests processing

2012-09-23 Thread Xiao Guangrong
On 07/10/2012 01:05 AM, Avi Kivity wrote: Currently, any time a request bit is set (not too uncommon) we check all of them. This patchset optimizes the process slightly by skipping over unset bits using for_each_set_bit(). I also notice that kvm_check_request costs lots of cpu time. What

Re: [RFC PATCH v3 05/19] Implement dimm device abstraction

2012-09-23 Thread Wen Congyang
At 09/21/2012 07:17 PM, Vasilis Liaskovitis Wrote: Each hotplug-able memory slot is a DimmDevice. All DimmDevices are attached to a new bus called DimmBus. This bus is introduced so that we no longer depend on hotplug-capability of main system bus (the main bus does not allow hotplugging). The