Re: [Qemu-devel] [BUG/RFC] Two cpus are not brought up normally in SLES11 sp3 VM after reboot

2015-07-07 Thread zhanghailiang
On 2015/7/7 20:21, Igor Mammedov wrote: On Tue, 7 Jul 2015 19:43:35 +0800 zhanghailiang wrote: On 2015/7/7 19:23, Igor Mammedov wrote: On Mon, 6 Jul 2015 17:59:10 +0800 zhanghailiang wrote: On 2015/7/6 16:45, Paolo Bonzini wrote: On 06/07/2015 09:54, zhanghailiang wrote: From host

Re: [BUG/RFC] Two cpus are not brought up normally in SLES11 sp3 VM after reboot

2015-07-07 Thread zhanghailiang
On 2015/7/7 19:23, Igor Mammedov wrote: On Mon, 6 Jul 2015 17:59:10 +0800 zhanghailiang wrote: On 2015/7/6 16:45, Paolo Bonzini wrote: On 06/07/2015 09:54, zhanghailiang wrote: From host, we found that QEMU vcpu1 thread and vcpu7 thread were not consuming any cpu (Should be in idle

Re: [BUG/RFC] Two cpus are not brought up normally in SLES11 sp3 VM after reboot

2015-07-06 Thread zhanghailiang
On 2015/7/6 16:45, Paolo Bonzini wrote: On 06/07/2015 09:54, zhanghailiang wrote: From host, we found that QEMU vcpu1 thread and vcpu7 thread were not consuming any cpu (Should be in idle state), All of VCPUs' stacks in host is like bellow: [] kvm_vcpu_block+0x65/0xa0 [kvm] [] __vcp

[BUG/RFC] Two cpus are not brought up normally in SLES11 sp3 VM after reboot

2015-07-06 Thread zhanghailiang
roduce this problem, we are not quite sure. Is there any possible that the cupid emulation in kvm/qemu has some bug ? Has anyone come across these problem before? Or any idea? Thanks, zhanghailiang -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a mes

Re: [BUG] Balloon malfunctions with memory hotplug

2015-03-02 Thread zhanghailiang
On 2015/3/2 14:22, Amit Shah wrote: On (Fri) 27 Feb 2015 [12:09:20], zhanghailiang wrote: On 2015/2/27 3:26, Luiz Capitulino wrote: Hello, Reproducer: 1. Start QEMU with balloon and memory hotplug support: # qemu [...] -m 1G,slots=2,maxmem=2G -balloon virtio 2. Check balloon size: (qemu

Re: [BUG] Balloon malfunctions with memory hotplug

2015-02-26 Thread zhanghailiang
ddition to reading ram_size, the balloon device in QEMU could scan pc-dimm devices to account for hotplugged memory. This solution was already implemented by zhanghailiang: http://lists.gnu.org/archive/html/qemu-devel/2014-11/msg02362.html It works, except that on Linux memory hotplu

Re: [PATCH] KVM: add KVM_CAP_VMX_APICV to advertise hardware apic-v support

2014-12-17 Thread zhanghailiang
On 2014/12/18 6:17, Stefan Fritsch wrote: On Thursday 11 December 2014 18:15:39, Paolo Bonzini wrote: On 11/12/2014 13:53, zhanghailiang wrote: I think it's a Windows bug---it should prefer x2apic to hv-vapic if both are available. No, i don't think it is a windows bug, it has not

Re: [PATCH] KVM: add KVM_CAP_VMX_APICV to advertise hardware apic-v support

2014-12-11 Thread zhanghailiang
On 2014/12/11 19:48, Paolo Bonzini wrote: On 11/12/2014 09:07, zhanghailiang wrote: User space (i.e. QEMU) should be able to check whether KVM supports apic-v. User space will use this to decide whether enable emulated MSR-based APIC (i.e. hyperv-vapic). Did you see an improvement in some

[PATCH] KVM: add KVM_CAP_VMX_APICV to advertise hardware apic-v support

2014-12-11 Thread zhanghailiang
User space (i.e. QEMU) should be able to check whether KVM supports apic-v. User space will use this to decide whether enable emulated MSR-based APIC (i.e. hyperv-vapic). Signed-off-by: zhanghailiang --- arch/x86/kvm/x86.c | 6 ++ include/uapi/linux/kvm.h | 1 + 2 files changed, 7

Re: [PATCH 00/17] RFC: userfault v2

2014-11-20 Thread zhanghailiang
On 2014/11/21 1:38, Andrea Arcangeli wrote: Hi, On Thu, Nov 20, 2014 at 10:54:29AM +0800, zhanghailiang wrote: Yes, you are right. This is what i really want, bypass all non-present faults and only track strict wrprotect faults. ;) So, do you plan to support that in the userfault API? Yes I

Re: [PATCH 00/17] RFC: userfault v2

2014-11-19 Thread zhanghailiang
On 2014/11/20 2:49, Andrea Arcangeli wrote: Hi Zhang, On Fri, Oct 31, 2014 at 09:26:09AM +0800, zhanghailiang wrote: On 2014/10/30 20:49, Dr. David Alan Gilbert wrote: * zhanghailiang (zhang.zhanghaili...@huawei.com) wrote: On 2014/10/30 1:46, Andrea Arcangeli wrote: Hi Zhanghailiang, On

Re: [PATCH 00/17] RFC: userfault v2

2014-11-11 Thread zhanghailiang
Hi Andrea, Is there any new about this discussion? ;) Will you plan to support 'only wrprotect fault' in the userfault API? Thanks, zhanghailiang On 2014/10/30 19:31, zhanghailiang wrote: On 2014/10/30 1:46, Andrea Arcangeli wrote: Hi Zhanghailiang, On Mon, Oct 27, 2014 at 05:32:

Re: [PATCH 00/17] RFC: userfault v2

2014-11-01 Thread zhanghailiang
On 2014/11/1 3:39, Peter Feiner wrote: On Fri, Oct 31, 2014 at 11:29:49AM +0800, zhanghailiang wrote: Agreed, but for doing live memory snapshot (VM is running when do snapsphot), we have to do this (block the write action), because we have to save the page before it is dirtied by writing

Re: [PATCH 00/17] RFC: userfault v2

2014-10-31 Thread zhanghailiang
On 2014/10/31 13:17, Andres Lagar-Cavilla wrote: On Thu, Oct 30, 2014 at 9:38 PM, zhanghailiang wrote: On 2014/10/31 11:29, zhanghailiang wrote: On 2014/10/31 10:23, Peter Feiner wrote: On Thu, Oct 30, 2014 at 07:31:48PM +0800, zhanghailiang wrote: On 2014/10/30 1:46, Andrea Arcangeli

Re: [PATCH 00/17] RFC: userfault v2

2014-10-30 Thread zhanghailiang
On 2014/10/31 11:29, zhanghailiang wrote: On 2014/10/31 10:23, Peter Feiner wrote: On Thu, Oct 30, 2014 at 07:31:48PM +0800, zhanghailiang wrote: On 2014/10/30 1:46, Andrea Arcangeli wrote: On Mon, Oct 27, 2014 at 05:32:51PM +0800, zhanghailiang wrote: I want to confirm a question: Can we

Re: [PATCH 00/17] RFC: userfault v2

2014-10-30 Thread zhanghailiang
On 2014/10/31 10:23, Peter Feiner wrote: On Thu, Oct 30, 2014 at 07:31:48PM +0800, zhanghailiang wrote: On 2014/10/30 1:46, Andrea Arcangeli wrote: On Mon, Oct 27, 2014 at 05:32:51PM +0800, zhanghailiang wrote: I want to confirm a question: Can we support distinguishing between writing and

Re: [PATCH 00/17] RFC: userfault v2

2014-10-30 Thread zhanghailiang
On 2014/10/30 20:49, Dr. David Alan Gilbert wrote: * zhanghailiang (zhang.zhanghaili...@huawei.com) wrote: On 2014/10/30 1:46, Andrea Arcangeli wrote: Hi Zhanghailiang, On Mon, Oct 27, 2014 at 05:32:51PM +0800, zhanghailiang wrote: Hi Andrea, Thanks for your hard work on userfault;) This

Re: [PATCH 00/17] RFC: userfault v2

2014-10-30 Thread zhanghailiang
On 2014/10/30 1:46, Andrea Arcangeli wrote: Hi Zhanghailiang, On Mon, Oct 27, 2014 at 05:32:51PM +0800, zhanghailiang wrote: Hi Andrea, Thanks for your hard work on userfault;) This is really a useful API. I want to confirm a question: Can we support distinguishing between writing and

Re: [PATCH 00/17] RFC: userfault v2

2014-10-27 Thread zhanghailiang
pshot, if we support configuring userfault for writing memory only. Thanks, zhanghailiang On 2014/10/4 1:07, Andrea Arcangeli wrote: Hello everyone, There's a large To/Cc list for this RFC because this adds two new syscalls (userfaultfd and remap_anon_pages) and MADV_USERFAULT/MADV_NOUSE

[Help] qemu abort when configure ivshmem size >=32M with kvm-3.6

2014-10-11 Thread zhanghailiang
em >= 32M, so is it a bug of guest OS? Any help will be appreciated.;) Thanks, zhanghailiang -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

[Bug?] qemu abort when trying to passthrough BCM5719 Gigabit Ethernet

2014-10-10 Thread zhanghailiang
booms. The size of the PCI address space region should be fixed anyway For it works fine when we use VFIO way, i don't know if it is really a QEMU's bug or KVM's bug. Any help will be appreciated. Thanks, zhanghailiang -- To unsubscribe from this list: send the line "

[PATCH] kvm:iommu: fix the third parameter of kvm_iommu_put_pages

2014-08-19 Thread zhanghailiang
The third parameter of kvm_iommu_put_pages is wrong, It should be 'gfn-slot->base_gfn' Signed-off-by: zhanghailiang --- virt/kvm/iommu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/virt/kvm/iommu.c b/virt/kvm/iommu.c index 0df7d4b..c02f9a3 100644 --- a/vir

[RFC] Synchronizing TSC of All vCPU

2014-08-05 Thread Zhanghailiang
offset value of vCPUs' TSC will be worse when the pressure of host is large. So is it necessary to sync all vCPUs' TSC when the guest start? May be we could set the tsc_offset to the same value, when vCPU is created. Is it acceptable? Thanks, zhanghailiang

Re: VDSO pvclock may increase host cpu consumption, is this a problem?

2014-03-30 Thread Zhanghailiang
vnmi flexpriority ept vpid bogomips: 4800.18 clflush size: 64 cache_alignment : 64 address sizes : 40 bits physical, 48 bits virtual power management: Thanks Zhang hailiang > On Sat, Mar 29, 2014 at 08:47:27AM +, Zhanghailiang wrote: > > Hi, > > I found when Guest is id

VDSO pvclock may increase host cpu consumption, is this a problem?

2014-03-29 Thread Zhanghailiang
Hi, I found when Guest is idle, VDSO pvclock may increase host consumption. We can calcutate as follow, Correct me if I am wrong. (Host)250 * update_pvclock_gtod = 1500 * gettimeofday(Guest) In Host, VDSO pvclock introduce a notifier chain, pvclock_gtod_chain in timekeeping.c. It consume nea