Re: Windows 2008 Guest BSODS with CLOCK_WATCHDOG_TIMEOUT on VM migration

2015-01-27 Thread Zhang Haoyu
On 2015-01-28 03:10:23, Jidong Xiao wrote: On Tue, Jan 27, 2015 at 5:55 AM, Mikhail Sennikovskii mikhail.sennikovs...@profitbricks.com wrote: Hi all, I've posted the bolow mail to the qemu-dev mailing list, but I've got no response there. That's why I decided to re-post it here as

Re: [question] incremental backup a running vm

2015-01-26 Thread Zhang Haoyu
On 2015-01-26 19:29:03, Paolo Bonzini wrote: On 26/01/2015 12:13, Zhang Haoyu wrote: Thanks, Paolo, but too many internal snapshots were saved by customers, switching to external snapshot mechanism has significant impaction on subsequent upgrade. In that case, patches are welcome

Re: [question] incremental backup a running vm

2015-01-26 Thread Zhang Haoyu
On 2015-01-26 17:29:43, Paolo Bonzini wrote: On 26/01/2015 02:07, Zhang Haoyu wrote: Hi, Kashyap I've tried ‘drive_backup’ via QMP, but the snapshots were missed to backup to destination, I think the reason is that backup_run() only copy the guest data regarding qcow2 image. Yes

Re: [question] incremental backup a running vm

2015-01-25 Thread Zhang Haoyu
On 2015-01-23 07:30:19, Kashyap Chamarthy wrote: On Wed, Jan 21, 2015 at 11:39:44AM +0100, Paolo Bonzini wrote: On 21/01/2015 11:32, Zhang Haoyu wrote: Hi, Does drive_mirror support incremental backup a running vm? Or other mechanism does? incremental backup a running vm

[question] incremental backup a running vm

2015-01-21 Thread Zhang Haoyu
for the changed data. Next time backup, only the dirty data will be mirrored to destination. Even the VM shutdown and start after several days, the bitmap will be loaded while starting vm. Any ideas? Thanks, Zhang Haoyu -- To unsubscribe from this list: send the line unsubscribe kvm in the body

Re: Does kvm friendly support GPT?

2015-01-11 Thread Zhang Haoyu
On 2014-12-22 09:28:52, Paolo Bonzini wrote: On 22/12/2014 07:39, Zhang Haoyu wrote: Hi, When I perform P2V from native servers with win2008 to kvm vm, some cases failed due to the physical disk was using GPT for partition, and QEMU doesn't support GPT by default. And, I see in below

Re: bridge mode without network rework

2014-12-23 Thread Zhang Haoyu
: sync highest ISR to hardware apic on EOI ? I want to backport it to our product. Thanks, Zhang Haoyu should have thought about this yourself. If you hadn't thought about it, and you are going for an open source solution (which I hope), you probably should re-evaluate the plan of not paying

Re: Does kvm friendly support GPT?

2014-12-22 Thread Zhang Haoyu
On 2014/12/22 17:28, Paolo Bonzini wrote: On 22/12/2014 07:39, Zhang Haoyu wrote: Hi, When I perform P2V from native servers with win2008 to kvm vm, some cases failed due to the physical disk was using GPT for partition, and QEMU doesn't support GPT by default. And, I see in below

cannot receive qemu-dev/kvm-dev mails sent by myself

2014-12-22 Thread Zhang Haoyu
Hi, I cannot receive qemu-dev/kvm-dev mails sent by myself, but mails from others can be received, any helps? Thanks, Zhang Haoyu -- 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

Re: Does kvm friendly support GPT?

2014-12-22 Thread Zhang Haoyu
On 2014/12/22 17:52, Paolo Bonzini wrote: On 22/12/2014 10:40, Zhang Haoyu wrote: 2) the FAT driver is not free, which prevents distribution in Fedora and several other distributions Sorry, I cannot follow you, the FAT mentioned above means FAT filesystem? what's the relationship

Re: cannot receive qemu-dev/kvm-dev mails sent by myself

2014-12-22 Thread Zhang Haoyu
On 2014/12/22 17:54, Paolo Bonzini wrote: On 22/12/2014 10:48, Zhang Haoyu wrote: Hi, I cannot receive qemu-dev/kvm-dev mails sent by myself, but mails from others can be received, any helps? For qemu-devel, you need to configure mailman to send messages even if they are yours

Re: cannot receive qemu-dev/kvm-dev mails sent by myself

2014-12-22 Thread Zhang Haoyu
On 2014/12/22 20:05, Paolo Bonzini wrote: On 22/12/2014 12:40, Zhang Haoyu wrote: On 2014/12/22 17:54, Paolo Bonzini wrote: On 22/12/2014 10:48, Zhang Haoyu wrote: Hi, I cannot receive qemu-dev/kvm-dev mails sent by myself, but mails from others can be received, any helps

Re: cannot receive qemu-dev/kvm-dev mails sent by myself

2014-12-22 Thread Zhang Haoyu
On 2014/12/23 9:36, Fam Zheng wrote: On Mon, 12/22 20:21, Zhang Haoyu wrote: On 2014/12/22 20:05, Paolo Bonzini wrote: On 22/12/2014 12:40, Zhang Haoyu wrote: On 2014/12/22 17:54, Paolo Bonzini wrote: On 22/12/2014 10:48, Zhang Haoyu wrote: Hi, I cannot receive qemu-dev/kvm-dev mails

[question] Does is_guest_mode() == true mean in L1 (guest hypervisor)?

2014-12-21 Thread Zhang Haoyu
Hi, Does is_guest_mode() == true mean in L1 (guest hypervisor)? Thanks, Zhang Haoyu -- 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

Does kvm friendly support GPT?

2014-12-21 Thread Zhang Haoyu
But, it seems that OVMF is not stable enough for kvm. Any advises? Thanks, Zhang Haoyu -- 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

Re: [question] lots of interrupts injected to vm when pressing some key w/o releasing

2014-12-15 Thread Zhang Haoyu
Hi Paolo, Yang What's the status of this problem? Thanks, Zhang Haoyu On 2014-12-04 00:13:49, Paolo Bonzini wrote: On 28/11/2014 12:59, Zhang, Yang Z wrote: According the feedback from Haoyu on my test patch which skipping the interrupt injection if irq line is active (See another thread

Re: [PATCH] KVM: x86: reset RVI upon system reset

2014-12-14 Thread Zhang Haoyu
On 2014-12-12 18:27:14, Paolo Bonzini wrote: On 12/12/2014 10:56, Zhang Haoyu wrote: Strange, I didn't find this commit in https://git.kernel.org/cgit/virt/kvm/kvm.git/log/ but found it from the repository downloaded by git clone git://git.kernel.org/pub/scm/virt/kvm/kvm.git It's here

RE: [PATCH] KVM: x86: reset RVI upon system reset

2014-12-12 Thread Zhang Haoyu
On 2014-12-11 19:06:33, Zhang, Yang Z wrote: Zhang Haoyu wrote on 2014-12-11: Then? It's already in upstream KVM Strange, I didn't find this commit in https://git.kernel.org/cgit/virt/kvm/kvm.git/log/ but found it from the repository downloaded by git clone git://git.kernel.org/pub/scm/virt

RE: [PATCH] KVM: x86: reset RVI upon system reset

2014-12-11 Thread Zhang Haoyu
Then? On 05/11/2014 10:02, Chen, Tiejun wrote: I think both are ok. If we zero max_irr in vmx_set_rvi(), we still need this check: if ((is_guest_mode(vcpu) nested_exit_on_intr(vcpu)) || max_irr == -1) No, I don't think we need to add this. You don't, because the code will look like:

Re: Windows 7 VM BSOD

2014-12-04 Thread Zhang Haoyu
() is inline function, which is called by apic_set_eoi(), you can check it, this method is a bit complicated. Any better ideas? On Thu, Dec 4, 2014 at 3:15 PM, Zhang Haoyu zhan...@sangfor.com wrote: Is this the correct function? kvm_lapic_set_eoi No, see the detail of commit fc57ac2c9ca, https

What's the difference between EPT_MISCONFIG and EPT_VIOLATION?

2014-12-03 Thread Zhang Haoyu
the guest physical address. According to above description, EPT-MISCONFIG is from error settings , but from the its exit-handle handle_ept_misconfig(), it seems that handle_ept_misconfig() handles mmio pagefault, I'm really confused, I think I'm missing something, any advices? Thanks, Zhang Haoyu

Re: What's the difference between EPT_MISCONFIG and EPT_VIOLATION?

2014-12-03 Thread Zhang Haoyu
Hi, EXIT_REASON_EPT_VIOLATION's corresponding handle is handle_ept_violation(), and EXIT_REASON_EPT_MISCONFIG's corresponding handle is handle_ept_misconfig(), what's the difference between them? I read the SDM-3C 28.2.3 EPT-Induced VM Exits, and found below description, An

Re: Windows 7 VM BSOD

2014-12-03 Thread Zhang Haoyu
Hi All, I am running 3.13.0-24-generic kernel on Ubuntu 14, Windows 7 VM installation was fine, but it does random reboot by itself, the error code is 0x0101, does anyone know how to fix this? Could you try hv_relaxed, like -cpu kvm64,hv_relaxed. Thanks, Zhang Haoyu -- To unsubscribe

Re: Windows 7 VM BSOD

2014-12-03 Thread Zhang Haoyu
Hi, How do I know if my qemu-kvm version support this? I don't know which qemu version starts to support hv-relaxed, but I'm sure qemu-1.4.1 and later versions support it. qemu will report error if it dosen't support it. Please show your qemu version. Thanks, Zhang Haoyu hv-relaxed

Re: Windows 7 VM BSOD

2014-12-03 Thread Zhang Haoyu
https://bugzilla.redhat.com/show_bug.cgi?id=893857 In fact I am doing testing now, but are we fixing one problem and introduce other problem?! I'm not sure about this, but it works on my side, I think BSOD(error:0x0078) has been fixed, please show your environment. Thanks, Zhang Haoyu

Re: Windows 7 VM BSOD

2014-12-03 Thread Zhang Haoyu
December, 2014 7:30 PM To: Thomas Lau Cc: Zhang Haoyu; kvm; imammedo Subject: Re: Windows 7 VM BSOD If you run WS2008(R2) or Win7 - always turn on relaxed timing. Otherwise it's just a matter of time when you hit 101 BOSD. Bugcheck 78 is quite rare one. What is your setup, and how easy it's

Re: Windows 7 VM BSOD

2014-12-03 Thread Zhang Haoyu
Rozenfeld Sent: Wednesday, 3 December, 2014 7:30 PM To: Thomas Lau Cc: Zhang Haoyu; kvm; imammedo Subject: Re: Windows 7 VM BSOD If you run WS2008(R2) or Win7 - always turn on relaxed timing. Otherwise it's just a matter of time when you hit 101 BOSD. Bugcheck 78 is quite rare one. What is your

Re: Windows 7 VM BSOD

2014-12-03 Thread Zhang Haoyu
Sure, but I am little confused as KVM is part of linux kernel now, if I want to try it, should I just upgrade kernel or compile kvm kernel module by myself ?! You can just apply the patch to kvm module and rebuild it. On Thu, Dec 4, 2014 at 10:01 AM, Zhang Haoyu zhan...@sangfor.com wrote: I just

Re: Windows 7 VM BSOD

2014-12-03 Thread Zhang Haoyu
on the frequency of access to above three apic regs. On Thu, Dec 4, 2014 at 10:06 AM, Zhang Haoyu zhan...@sangfor.com wrote: Sure, but I am little confused as KVM is part of linux kernel now, if I want to try it, should I just upgrade kernel or compile kvm kernel module by myself ?! You can just

Re: Windows 7 VM BSOD

2014-12-03 Thread Zhang Haoyu
, nothing found. On Thu, Dec 4, 2014 at 12:32 PM, Zhang Haoyu zhan...@sangfor.com wrote: what does vapic affect Windows 7 at all if I disable it? if it just a minor performance drop, I am fine with that. hv_vapic provides accelerated MSR access to high usage memory mapped APIC registers, EOI

Re: [question] lots of interrupts injected to vm when pressing some key w/o releasing

2014-11-28 Thread Zhang Haoyu
Hi all, On Thu, Nov 27, 2014 at 03:20:43PM +0800, Zhang Haoyu wrote: I tested win-server-2008 with -cpu core2duo,hv_spinlocks=0x,hv_relaxed,hv_time, this problem still happened, about 200,000 vmexits per-second, bringing very bad experience, just like being stuck. Please upload a full

RE: [question] lots of interrupts injected to vm when pressing some key w/o releasing

2014-11-27 Thread Zhang Haoyu
-server/2284096534876.virtser,server,nowait,id=channelser -device virtio-serial,max_ports=2,ioeventfd=off -device virtserialport,chardev=channelser,name=channelser.virtserial0.0 -bios /sf/share/kvm/bios.bin.1 You can change -id option to -uuid. Thanks, Zhang Haoyu stage, # trace-cmd report

[question] what is virtio-1 device?

2014-11-26 Thread Zhang Haoyu
Hi, what is virtio-1 device? Thanks, Zhang Haoyu -- 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

Re: [question] what is virtio-1 device?

2014-11-26 Thread Zhang Haoyu
it incorporates? Thanks, Zhang Haoyu Tiejun -- 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

Re: [question] what is virtio-1 device?

2014-11-26 Thread Zhang Haoyu
Hi, what is virtio-1 device? Are you mean subsystem device id is '1'? That should be a network card. In the mail qemu: towards virtio-1 host support, virtio: allow virtio-1 queue layout, dataplane: allow virtio-1 devices, etc., virtio-1 devices was mentioned, I don't know which devices

RE: [question] lots of interrupts injected to vm when pressing some key w/o releasing

2014-11-26 Thread Zhang Haoyu
pin 1 (edge|masked) kvm-1266 [004] 14413.908088: kvm_apic_accept_irq: apicid 0 vec 177 (LowPrio|level) kvm-1266 [004] 14413.908089: kvm_ioapic_set_irq: pin 9 dst 3 vec=177 (LowPrio|logical|level) Thanks, Zhang Haoyu diff --git a/virt/kvm/ioapic.c b/virt/kvm/ioapic.c

Re: [question] lots of interrupts injected to vm when pressing somekey w/o releasing

2014-11-25 Thread Zhang Haoyu
disappeared. Thanks, Zhang Haoyu Paolo -- 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

Re: [question] lots of interrupts injected to vm when pressingsomekey w/o releasing

2014-11-24 Thread Zhang Haoyu
On Thu, Nov 20, 2014 at 02:59:36PM +0800, Zhang Haoyu wrote: On 20/11/2014 03:20, Zhang Haoyu wrote: Hi all, If I press the one of Insert/Delete/Home/End/PageUp/PageDown/UpArrow/ DownArrow/LeftArrow/RightArrow key w/o releasing, then lots of interrupts will be injected to vm(win7

Re: [question] lots of interrupts injected to vm when pressing some key w/o releasing

2014-11-24 Thread Zhang Haoyu
. Sorry for wrong description, the interrupt rate is normal, but huge numbers of vmexit induced by PIO were produced. Thanks, Zhang Haoyu And, linux guest has no this problem. If I remove the commit of 0bc830b05c667218d703f2026ec866c49df974fc, then the problem disappeared, but win7 guest got stuck

Re: [question] lots of interrupts injected to vm when pressing somekey w/o releasing

2014-11-24 Thread Zhang Haoyu
,hv_time, this problem still happened, about 200,000 vmexits per-second, bringing very bad experience, just like being stuck. Thanks, Zhang Haoyu Paolo -- 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

[question] lots of interrupts injected to vm when pressing some key w/o releasing

2014-11-19 Thread Zhang Haoyu
. And, linux guest has no this problem. If I remove the commit of 0bc830b05c667218d703f2026ec866c49df974fc, then the problem disappeared, but win7 guest got stuck at booting stage. And so strange that If the vm has only one vcpu, then the problem also disappeared. Any ideas? Thanks, Zhang Haoyu

Re: [question] lots of interrupts injected to vm when pressing somekey w/o releasing

2014-11-19 Thread Zhang Haoyu
On 20/11/2014 03:20, Zhang Haoyu wrote: Hi all, If I press the one of Insert/Delete/Home/End/PageUp/PageDown/UpArrow/ DownArrow/LeftArrow/RightArrow key w/o releasing, then lots of interrupts will be injected to vm(win7/win2008), about 8000/s, the system become very slow, bringing very

[question] kvm fully support vga adapter pass-through ?

2014-11-18 Thread Zhang Haoyu
Hi all, Does the combination of qemu-2.0.1 and linux-3.10 fully support direct-assign vga adapters to vm? Thanks, Zhang Haoyu -- 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

Re: [Qemu-devel] Where is the VM live migration code?

2014-11-17 Thread Zhang Haoyu
Hi, I saw this page: http://www.linux-kvm.org/page/Migration. It looks like Migration is a feature provided by KVM? But when I look at the Linux kernel source code, i.e., virt/kvm, and arch/x86/kvm, I don't see the code for this migration feature. Most of live migration code is in

Re: vhost + multiqueue + RSS question.

2014-11-17 Thread Zhang Haoyu
, what virtio has is not RSS - it's an accelerated RFS really. OK, if what virtio has is RFS and not RSS my test results make sense. Thanks! I think the RSS emulation for virtio-mq NIC is implemented in tun_select_queue(), am I missing something? Thanks, Zhang Haoyu -- To unsubscribe from

Re: [Qemu-devel] [question] updating the base image for all clones which have been running for months

2014-11-06 Thread Zhang Haoyu
the same for your guests. For bare-metal, I use manager to push the applications to each host-agent which is running in each host, the host-agent is responsible to install the applications. Thanks, Zhang Haoyu Install the applications on each clone separately, or use some other method to make

[question] updating the base image for all clones which have been running for months

2014-11-03 Thread Zhang Haoyu
is responsible to install the applications. Thanks, Zhang Haoyu -- 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

Re: [question] updating the base image for all clones which havebeen running for months

2014-11-03 Thread Zhang Haoyu
separately, or use some other method to make it available (like installing on a shared network resource). Could you detail installing on a shared network resource? Thanks, Zhang Haoyu Can I rebase image A to B which have the applications to be installed, then change the base image to B for all

Re: Benchmarking for vhost polling patch

2014-10-30 Thread Zhang Haoyu
on their own dedicated core. Could you provide your changing code? Thanks, Zhang Haoyu -- 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

Re: Benchmarking for vhost polling patch

2014-10-30 Thread Zhang Haoyu
running on their own dedicated core. Could you provide your changing code? Thanks, Zhang Haoyu Hi Zhang, Do you mean the change in code for poll_stop_idle? Yes, it's better to provide the complete code, including the polling patch. Thanks, Zhang Haoyu Thanks, Razya -- To unsubscribe from

Re: [Qemu-devel] [PATCH] qcow2: fix double-free of Qcow2DiscardRegion in qcow2_process_discards

2014-10-12 Thread Zhang Haoyu
On 2014-10-12 15:34, Kevin Wolf wrote: Am 11.10.2014 um 09:14 hat Zhang Haoyu geschrieben: In qcow2_update_snapshot_refcount - qcow2_process_discards() - bdrv_discard() may free the Qcow2DiscardRegion which is referenced by next pointer in qcow2_process_discards() now, in next iteration, d

[PATCH] qcow2: fix double-free of Qcow2DiscardRegion in qcow2_process_discards

2014-10-11 Thread Zhang Haoyu
|-- qcow2_free_any_clusters |--- qcow2_free_clusters | update_refcount |- qcow2_process_discards |-- g_free(d) == In next iteration, this Qcow2DiscardRegion will be double-free. Signed-off-by: Zhang Haoyu zhan...@sangfor.com Signed-off-by: Fu Xuewei f...@sangfor.com

[question] Is there a plan to introduce a unified co-scheduling mechanism to CFS ?

2014-10-10 Thread Zhang Haoyu
/task is running in guest. Is there a plane for this work? Thanks, Zhang Haoyu -- 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

Re: [question] Is there a plan to introduce a unified co-scheduling mechanism to CFS ?

2014-10-10 Thread Zhang Haoyu
thought. Regards, Wanpeng Li Thanks, Zhang Haoyu -- 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

Re: [Qemu-devel] [question] virtio-blk performancedegradationhappened with virito-serial

2014-09-22 Thread Zhang Haoyu
-serial in guest, and the difference of perf top data on guest when disable/enable virtio-serial in guest, any ideas? Thanks, Zhang Haoyu If you restrict the number of vectors the virtio-serial device gets (using the -device virtio-serial-pci,vectors= param), does that make things

Re: [question] virtio-blk performance degradation happened with virito-serial

2014-09-16 Thread Zhang Haoyu
. Emulating virtio-balloon device instead of virtio-serial deivce , then to see whether the virtio-blk performance is hampered. Base on the test result, corresponding analysis will be performed. Any ideas? Thanks, Zhang Haoyu -- To unsubscribe from this list: send the line unsubscribe kvm

Re: [PATCH] kvm: ioapic: conditionally delay irq delivery duringeoi broadcast

2014-09-11 Thread Zhang Haoyu
Signed-off-by: Zhang Haoyu zhan...@sangfor.com --- include/trace/events/kvm.h | 20 ++ virt/kvm/ioapic.c | 51 -- virt/kvm/ioapic.h | 6 ++ 3 files changed, 75 insertions(+), 2 deletions(-) diff --git

[PATCH] kvm: ioapic: conditionally delay irq delivery duringeoi broadcast

2014-09-11 Thread Zhang Haoyu
in case it may register one very soon and for guest who has a bad irq detection routine ( such as note_interrupt() in linux ), this bad irq would be recognized soon as in the past. Cc: Michael S. Tsirkin m...@redhat.com Signed-off-by: Jason Wang jasow...@redhat.com Signed-off-by: Zhang Haoyu zhan

Re: [Qemu-devel] [PATCH] kvm: ioapic: conditionally delay irq delivery during eoi broadcast

2014-09-11 Thread Zhang Haoyu
as in the past. Cc: Michael S. Tsirkin m...@redhat.com Signed-off-by: Jason Wang jasow...@redhat.com Signed-off-by: Zhang Haoyu zhan...@sangfor.com --- include/trace/events/kvm.h | 20 +++ virt/kvm/ioapic.c | 50 -- virt/kvm

[PATCH v2] kvm: ioapic: conditionally delay irq delivery duringeoi broadcast

2014-09-11 Thread Zhang Haoyu
-irq_eoi[i] == IOAPIC_SUCCESSIVE_IRQ_MAX_COUNT) { Cc: Michael S. Tsirkin m...@redhat.com Cc: Jan Kiszka jan.kis...@siemens.com Signed-off-by: Jason Wang jasow...@redhat.com Signed-off-by: Zhang Haoyu zhan...@sangfor.com --- include/trace/events/kvm.h | 20 +++ virt/kvm/ioapic.c

Re: [Qemu-devel] [question] virtio-blk performance degradation happened with virito-serial

2014-09-11 Thread Zhang Haoyu
: virtio-pci Kernel modules: virtio_pci Thanks, Zhang Haoyu -- 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

[PATCH] kvm: ioapic: conditionally delay irq delivery during eoi broadcast

2014-09-10 Thread Zhang Haoyu
in case it may register one very soon and for guest who has a bad irq detection routine ( such as note_interrupt() in linux ), this bad irq would be recognized soon as in the past. Cc: Michael S. Tsirkin m...@redhat.com Signed-off-by: Jason Wang jasow...@redhat.com Signed-off-by: Zhang Haoyu zhan

Re: [PATCH] kvm: ioapic: conditionally delay irq delivery during eoi broadcast

2014-09-10 Thread Zhang Haoyu
Signed-off-by: Jason Wang jasow...@redhat.com Signed-off-by: Zhang Haoyu zhan...@sangfor.com --- include/trace/events/kvm.h | 20 ++ virt/kvm/ioapic.c | 51 -- virt/kvm/ioapic.h | 6 ++ 3 files changed, 75 insertions

[PATCH] kvm: ioapic: conditionally delay irq delivery during eoi broadcast

2014-09-10 Thread Zhang Haoyu
in case it may register one very soon and for guest who has a bad irq detection routine ( such as note_interrupt() in linux ), this bad irq would be recognized soon as in the past. Cc: Michael S. Tsirkin m...@redhat.com Signed-off-by: Jason Wang jasow...@redhat.com Signed-off-by: Zhang Haoyu zhan

Re: [Qemu-devel] [question] virtio-blk performance degradationhappenedwith virito-serial

2014-09-07 Thread Zhang Haoyu
Hi, Paolo, Amit, any ideas? Thanks, Zhang Haoyu On 2014-9-4 15:56, Zhang Haoyu wrote: If virtio-blk and virtio-serial share an IRQ, the guest operating system has to check each virtqueue for activity. Maybe there is some inefficiency doing that. AFAIK virtio-serial registers 64 virtqueues

Re: [Qemu-devel] [question] virtio-blk performance degradationhappenedwith virito-serial

2014-09-04 Thread Zhang Haoyu
[disabled] [size=256K] Capabilities: [40] MSI-X: Enable+ Count=3 Masked- Vector table: BAR=1 offset= PBA: BAR=1 offset=0800 Kernel driver in use: virtio-pci Kernel modules: virtio_pci Thanks, Zhang Haoyu Paolo -- To unsubscribe

[question] git clone kvm.git failed

2014-09-04 Thread Zhang Haoyu
/unaligned': File too large How to resolve these errors? Thanks, Zhang Haoyu -- 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

Re: [Qemu-devel] [question] virtio-blk performancedegradationhappened with virito-serial

2014-09-03 Thread Zhang Haoyu
. with virtio-serial enabled: 64k-write-sequence: 4200 IOPS with virtio-serial disabled: 64k-write-sequence: 5300 IOPS How to confirm whether it's MSI in windows? Thanks, Zhang Haoyu So, I think it has no business with legacy interrupt mode, right? I am going to observe the difference of perf top data

Re: [Qemu-devel] [question] e1000 interrupt stormhappenedbecauseofits correspondingioapic-irr bit always set

2014-09-03 Thread Zhang Haoyu
-irq_eoi will reach to 100. I want to add u32 irq_eoi[IOAPIC_NUM_PINS]; instead of u32 irq_eoi;. Any ideas? Zhang Haoyu I'm a bit concerned how this will affect realtime guests. Worth adding a flag to enable this, so that e.g. virtio is not affected? Your concern is reasonable. If applying

Re: [Qemu-devel] [question] virtio-blk performance degradationhappened with virito-serial

2014-09-01 Thread Zhang Haoyu
/enable virtio-serial in guest, and the difference of perf top data on guest when disable/enable virtio-serial in guest, any ideas? Thanks, Zhang Haoyu If you restrict the number of vectors the virtio-serial device gets (using the -device virtio-serial-pci,vectors= param), does that make things

Re: [Qemu-devel] [question] virtio-blk performance degradationhappened with virito-serial

2014-09-01 Thread Zhang Haoyu
mode, right? I am going to observe the difference of perf top data on qemu and perf kvm stat data when disable/enable virtio-serial in guest, and the difference of perf top data on guest when disable/enable virtio-serial in guest, any ideas? Thanks, Zhang Haoyu If you restrict the number

Re: [Qemu-devel] [question] virtio-blk performancedegradationhappened with virito-serial

2014-09-01 Thread Zhang Haoyu
windows driver specific, too. I have not test linux guest, I'll test it later. Thanks, Zhang Haoyu Amit -- 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

[question] virtio-blk performance degradation happened with virito-serial

2014-08-29 Thread Zhang Haoyu
,base=localtime -global kvm-pit.lost_tick_policy=discard -global PIIX4_PM.disable_s3 =1 -global PIIX4_PM.disable_s4=1 Any ideas? Thanks, Zhang Haoyu -- 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

Re: [Qemu-devel] [question] e1000 interrupt storm happenedbecauseofits correspondingioapic-irr bit always set

2014-08-28 Thread Zhang Haoyu
continually, and not too long, ioapic-irq_eoi will reach to 100. I want to add u32 irq_eoi[IOAPIC_NUM_PINS]; instead of u32 irq_eoi;. Any ideas? Zhang Haoyu at at -375,12 +414,14 at at void kvm_ioapic_reset(struct kvm_ioapic *ioapic) { int i; + cancel_delayed_work_sync(ioapic

Re: [Qemu-devel] [question] e1000 interrupt storm happenedbecauseofitscorrespondingioapic-irr bit always set

2014-08-28 Thread Zhang Haoyu
Hi, Yang, Gleb, Michael, Could you help review below patch please? Thanks, Zhang Haoyu Hi Jason, I tested below patch, it's okay, the e1000 interrupt storm disappeared. But I am going to make a bit change on it, could you help review it? Currently, we call ioapic_service() immediately when

Re: [Qemu-devel] [question] e1000 interrupt storm happened becauseofits correspondingioapic-irr bit always set

2014-08-27 Thread Zhang Haoyu
. Under what cases did you meet this issue? Some scenarios, not constant and 100% reproducity, e.g., reboot vm, ifdown e1000 nic, install kaspersky(network configuration is performed during installing stage), .etc. Thanks, Zhang Haoyu Thanks, Zhang Haoyu -- To unsubscribe from this list

Re: [question] e1000 interrupt storm happened becauseof its correspondingioapic-irr bit always set

2014-08-26 Thread Zhang Haoyu
interrupt injection sometimes, then some time delay sensitive applications will be impacted? Thanks, Zhang Haoyu -- 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

Re: [question] e1000 interrupt storm happened becauseof its corresponding ioapic-irr bit always set

2014-08-25 Thread Zhang Haoyu
emulation inject the interrupt before the interrupt is succesfully enabled? Thanks, Zhang Haoyu e1000 emulation is far from stable and complete (e.g run e1000 ethtool selftest in linux guest may see lots of errors). It's complicate and subtle (even has undocumented registers and behaviour). You

Re: [question] e1000 interrupt storm happened becauseof its correspondingioapic-irr bit always set

2014-08-25 Thread Zhang Haoyu
in such condition. Sorry, I don't understand, I think one interrupt should not been enabled before its handler is successfully registered, is it possible that e1000 emulation inject the interrupt before the interrupt is succesfully enabled? Thanks, Zhang Haoyu e1000 emulation is far

[question] e1000 interrupt storm happened because of its corresponding ioapic-irr bit always set

2014-08-23 Thread Zhang Haoyu
Hi, all I use a qemu-1.4.1/qemu-2.0.0 to run win7 guest, and encounter e1000 NIC interrupt storm, because if (!ent-fields.mask (ioapic-irr (1 i))) is always true in __kvm_ioapic_update_eoi(). Any ideas? Thanks, Zhang Haoyu -- To unsubscribe from this list: send the line unsubscribe kvm

Re: [PATCH] vhost: Add polling mode

2014-08-22 Thread Zhang Haoyu
; posted by Shirley, any update to this patch? And, I want to make a bit change on this patch, create total_cpu_number * 1/N(N={3,4}) vhost threads instead of per-cpu vhost thread to server all VMs, any ideas? Thanks, Zhang Haoyu +static int poll_start_rate = 0; +module_param(poll_start_rate

Re: [PATCH] vhost: Add polling mode

2014-08-22 Thread Zhang Haoyu
, I think per-cpu vhost thread is too many. any ideas? Thanks, Zhang Haoyu +static int poll_start_rate = 0; +module_param(poll_start_rate, int, S_IRUGO|S_IWUSR); +MODULE_PARM_DESC(poll_start_rate, Start continuous polling of virtqueue when rate of events is at least this number per jiffy

[question] one vhost kthread servers mulitiple tx/rx queues which blong to one virtio-net device

2014-08-21 Thread Zhang Haoyu
Hi, Krishna, Shirley How got get the latest patch of M:N Implementation of mulitiqueue, I am going to test the the combination of M:N Implementation of mulitiqueue and vhost: add polling mode. Thanks, Zhang Haoyu -- To unsubscribe from this list: send the line unsubscribe kvm in the body

Re: [questions] about using vfio to assign sr-iov vf to vm

2014-08-18 Thread Zhang Haoyu
: Enable overrides for missing ACS capabilities, and how to reduce the risk of data corruption and info leakage between VMs? Thanks, Zhang Haoyu Alex -- 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

Re: [questions] about using vfio to assign sr-iov vf to vm

2014-08-18 Thread Zhang Haoyu
: Enable overrides for missing ACS capabilities, and how to reduce the risk of data corruption and info leakage between VMs? Any update compared with http://thread.gmane.org/gmane.comp.emulators.kvm.devel/110726/focus=111515 ? Thanks, Zhang Haoyu Alex -- To unsubscribe from this list: send the line

Re: [questions] about using vfio to assign sr-iov vf to vm

2014-08-17 Thread Zhang Haoyu
- D2- AuxCurrent=0mA PME(D0+,D1-,D2-,D3hot+,D3cold+) Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME- Kernel driver in use: pcieport Thanks, Zhang Haoyu Alex -- To unsubscribe from this list: send the line unsubscribe kvm in the body of a message to majord

Re: [questions] about using vfio to assign sr-iov vf to vm

2014-08-16 Thread Zhang Haoyu
? Thanks, Zhang Haoyu Alex -- 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

[questions] about using vfio to assign sr-iov vf to vm

2014-08-14 Thread Zhang Haoyu
vfio.txt, I'm not sure should I unbind all of the devices which belong to one iommu_group? If so, because PF and its VFs belong to the same iommu_group, if I unbind the PF, its VFs also diappeared. I think I misunderstand someting, any advises? Thanks, Zhang Haoyu -- To unsubscribe from this list: send

Re: [Qemu-devel] [questions] about KVMasaMicrosoft-compatiblehypervisor

2014-08-07 Thread Zhang Haoyu
need the support of lazy eoi? Btw, hv_spinlocks=0xfff is a pretty huge value. which value do you advise to use? MS seems to be using 0x as a default. best regards, Vadim. Thanks, Zhang Haoyu Best regards, Vadim. -- To unsubscribe from this list: send the line unsubscribe kvm

Re: [Qemu-devel] [questions] about KVM asaMicrosoft-compatiblehypervisor

2014-08-04 Thread Zhang Haoyu
value do you advise to use? Thanks, Zhang Haoyu Best regards, Vadim. -- 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

Re: Re: [Qemu-devel] [questions] about KVM as aMicrosoft-compatiblehypervisor

2014-08-03 Thread Zhang Haoyu
PIIX4_PM.disable_s4=1 -post win2008_iotest -enable-kvm -L /boot/pc-bios Seen similar problem before? Any ideas? Thanks, Zhang Haoyu Hi, Vadim I read the kvm-2012-forum paper KVM as a Microsoft-compatible hypervisor, Any update and other references, please? Thanks, Zhang Haoyu

Re: [PATCH] vhost: Add polling mode

2014-07-28 Thread Zhang Haoyu
Maybe tie a knot between vhost-net scalability tuning: threading for many VMs and vhost: Add polling mode is a good marriage, because it's more possibility to get work to do with less polling time, so less cpu cycles waste. Thanks, Zhang Haoyu Hello All, When vhost is waiting

Re: Re: [Qemu-devel] [questions] about KVM as a Microsoft-compatiblehypervisor

2014-06-30 Thread Zhang Haoyu
Hi, Vadim I read the kvm-2012-forum paper KVM as a Microsoft-compatible hypervisor, Any update and other references, please? Thanks, Zhang Haoyu Unfortunately, not too much. From the the most recent, we have lazy eoi implemented by MST and reference time counter. How to get

[questions] about KVM as a Microsoft-compatible hypervisor

2014-06-29 Thread Zhang Haoyu
Hi, Vadim I read the kvm-2012-forum paper KVM as a Microsoft-compatible hypervisor, Any update and other references, please? Thanks, Zhang Haoyu -- 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

Re: How does kvm support x2apic?

2014-06-11 Thread Zhang Haoyu
Hi, According to this: https://github.com/torvalds/linux/commit/0d1de2d901f4ba0972a3886496a44fb1d3300dbd It looks like kvm have been supporting x2apic since kernel 2.6.32, or even earlier. This patch is to emulate x2apic for guest, then guest can benefit from some advantages of x2apic,

Re: How does kvm support x2apic?

2014-06-11 Thread Zhang Haoyu
Hi, According to this: https://github.com/torvalds/linux/commit/0d1de2d901f4ba0972a3886496a44fb1d3300dbd It looks like kvm have been supporting x2apic since kernel 2.6.32, or even earlier. This patch is to emulate x2apic for guest, then guest can benefit from some advantages of x2apic,

Re: How does kvm support x2apic?

2014-06-11 Thread Zhang Haoyu
| grep -i x2apic' Configure crashkernel to kdump more info, please. Thanks, Zhang Haoyu And this above message will be displayed repeatedly all the time and the system will become unresponsive. [ 1090.922260] Process bash (pid: 3091, ti=f58b2000 task=f5a725f0 task.ti=f58b2000) [ 1090.923089] Stack

Re: How does kvm support x2apic?

2014-06-10 Thread Zhang Haoyu
Hi, According to this: https://github.com/torvalds/linux/commit/0d1de2d901f4ba0972a3886496a44fb1d3300dbd It looks like kvm have been supporting x2apic since kernel 2.6.32, or even earlier. This patch is to emulate x2apic for guest, then guest can benefit from some advantages of x2apic,

Re: How does kvm support x2apic?

2014-06-10 Thread Zhang Haoyu
Hi, According to this: https://github.com/torvalds/linux/commit/0d1de2d901f4ba0972a3886496a44fb1d3300dbd It looks like kvm have been supporting x2apic since kernel 2.6.32, or even earlier. This patch is to emulate x2apic for guest, then guest can benefit from some advantages of x2apic,

Re: How to enable Pause Loop Exiting (PLE)?

2014-06-09 Thread Zhang Haoyu
said PAUSE exiting must be 0 setting, so what shall I do? Is PLE enabled or not? check /sys/module/kvm_intel/parameters/ple_gap, if non-zero(0), ple is enabled, zero means ple is disabled. Thanks, Zhang Haoyu primary processor-based controls Interrupt window exiting yes Use TSC

  1   2   >