Re: [RFC PATCH v3 19/19][SeaBIOS] Calculate pcimem_start and pcimem64_start from SRAT entries

2012-09-23 Thread Wen Congyang
At 09/21/2012 07:17 PM, Vasilis Liaskovitis Wrote: > pcimem_start and pcimem64_start are adjusted from srat entries. For this > reason, > paravirt info (NUMA SRAT entries and number of cpus) need to be read before > pci_setup. > Imho, this is an ugly code change since SRAT bios tables and number

Re: [RFC PATCH v3 20/19][SeaBIOS] alternative: Use paravirt interface for pci windows

2012-09-23 Thread Wen Congyang
At 09/21/2012 07:20 PM, Vasilis Liaskovitis Wrote: > Initialize the 32-bit and 64-bit pci starting offsets from values passed in by > the qemu paravirt interface QEMU_CFG_PCI_WINDOW. Qemu calculates the starting > offsets based on initial memory and hotplug-able dimms. This patch can't be applied

[RFC PATCH] KVM: x86: Skip request checking branches in vcpu_enter_guest() more effectively

2012-09-23 Thread Takuya Yoshikawa
This is an RFC since I have not done any comparison with the approach using for_each_set_bit() which can be seen in Avi's work. Takuya --- We did a simple test to see which requests we would get at the same time in vcpu_enter_guest() and got the following numbers: |...|..

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).

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. Wh

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 che

[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 enab

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 unreachabl

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 AMD

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 > > 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 the > effective reg

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 th

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:

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 e