Re: Changing clock in KVM host may cause VM to hang

2011-08-16 Thread lidong chen
2011/8/16 编码人 : > Hi, > > Does anyone know this issue? > > Thanks, > Paul > > On Sat, Aug 13, 2011 at 8:10 AM, 编码人 wrote: >> >> Hi, >> >> My KVM guest OS is Windows 7. If I change the clock in KVM host >> (Redhat Enterprise Linux 6), Windows may hang --I can't move mouse in >> the VNC desktop. (If

Re: collect some information when qemu-kvm exit

2011-07-06 Thread lidong chen
VATE)) +       if (vma->anon_vma && !(vma->vm_flags & VM_MERGEABLE) ) {                goto whole; +        } else if ( vma->anon_vma && FILTER(ANON_PRIVATE) ) { +                goto whole; +        }        if (vma->vm_file == NULL)                return

Re: collect some information when qemu-kvm exit

2011-07-02 Thread lidong chen
fffa2a5ffc0 in ?? () #10 0x7fffa2a60040 in ?? () #11 0x004d46b1 in ?? () #12 0x7fffa2a5ffc0 in ?? () #13 0x00cb1d80 in ?? () #14 0x0001 in ?? () #15 0x0040c752 in ?? () #16 0x00007fac8c4e4128 in _r_debug () #17 0x03e88c2cd933 in ?? () #18 0x

Re: [PATCH v2 05/11] KVM: Expose a version 1 architectural PMU to guests

2011-06-27 Thread lidong chen
} asm("int $2"); kvm_after_handle_nmi(&vmx->vcpu); } } 2011/6/27 Avi Kivity : > On 06/27/2011 05:10 PM, lidong chen wrote: >> >> this patch used perf_event_create_kernel_counter function to setup >> event in ho

Re: [PATCH v2 05/11] KVM: Expose a version 1 architectural PMU to guests

2011-06-27 Thread lidong chen
this patch used perf_event_create_kernel_counter function to setup event in host os. whether the count of event will calculate the part of qemu-kvm userspace, and deliver the nmi interrupt which caused by this part to guest os? thanks. 2011/6/13 Avi Kivity : > Use perf_events to emulate an archit

Re: SR-IOV and KVM?

2011-06-24 Thread lidong chen
I have tested the performance of sr-iov for kvm, it better than virtio-net. 2011/6/25 Chris Friesen : > > Is anyone working on SR-IOV for KVM, specifically for networking?  Or is > virtio good enough that it's not a pressing concern? > > Thanks, > Chris > > > -- > Chris Friesen > Software Develope

Re: collect some information when qemu-kvm exit

2011-06-24 Thread lidong chen
2011/6/24 Jan Kiszka : > On 2011-06-24 10:55, Jan Kiszka wrote: >> On 2011-06-24 10:24, lidong chen wrote: >>> 2011/6/23 Jan Kiszka : >>>> On 2011-06-23 15:56, lidong chen wrote: >>>>>>> is it safe to register another signal handler?

Re: collect some information when qemu-kvm exit

2011-06-24 Thread lidong chen
2011/6/23 Jan Kiszka : > On 2011-06-23 15:56, lidong chen wrote: >>>> is it safe to register another signal handler? >>>> if somebody know the reason, please tell me. >>>> >>>> and is it worth to do this? >>> >> because the core du

Re: collect some information when qemu-kvm exit

2011-06-23 Thread lidong chen
2011/6/23 Jan Kiszka : > On 2011-06-23 11:05, lidong chen wrote: >> Hi all, >> >> I didn't understand why need block all signal except SIGBUS SIGIPI for >> vcpu thread? > > For simplicity reasons: All other expected signals are handled by the > io-thread

Re: collect some information when qemu-kvm exit

2011-06-23 Thread lidong chen
Hi all, I didn't understand why need block all signal except SIGBUS SIGIPI for vcpu thread? is it safe to register another signal handler? if somebody know the reason, please tell me. and is it worth to do this? 2011/6/22 lidong chen : > I find qemu-kvm only output a little informat

Re: virtio_net sometimes didn't work

2011-06-22 Thread lidong chen
ize=3 >>               Vector table: BAR=1 offset= >>               PBA: BAR=1 offset=0800 >> >> 00:07.0 Ethernet controller: Unknown device 1af4:1000 >>       Subsystem: Unknown device 1af4:0001 >>       Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- V

collect some information when qemu-kvm exit

2011-06-22 Thread lidong chen
I find qemu-kvm only output a little information when abnormally exit. For example, if qemu-kvm exit by segmentation fault, there are no information in /var/log/libvirt/qemu/xx.log. so i want to solve this by collect some information when qemu-kvm exit. my idea is register some signal handler, an

Re: when use sriov, guest os could not access the vf device assigned

2011-03-05 Thread lidong chen
the version of libvirt is 0.7.6. i find the patch of this problem,now solved. http://libvirt.org/git/?p=libvirt.git;a=commit;h=71e92a1575b6653720b0f4c7a474b6e7baec72f3 thanks. 2011/3/5 Chris Wright : > * lidong chen (chen.lidong.ker...@gmail.com) wrote: >> guest os could not acce

when use sriov, guest os could not access the vf device assigned

2011-03-04 Thread lidong chen
guest os could not access the vf assigned ,and print this error message . PCI: device :00:06.0 has unknown header type 7f, ignoring. PCI: device :00:07.0 has unknown header type 7f, ignoring. PCI: device :00:08.0 has unknown header type 7f, ignoring. the reason is the config file /sys/

Re: virtio_net sometimes didn't work

2011-02-16 Thread lidong chen
- 82441FX PMC [Natoma] (rev 02) Subsystem: Unknown device 1af4:1100 Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SER

Re: virtio_net sometimes didn't work

2011-02-15 Thread lidong chen
e off the value. */ isr = ioread8(vp_dev->ioaddr + VIRTIO_PCI_ISR); /* It's definitely not us if the ISR was not high */ if (!isr) return IRQ_NONE; //return from here 2010/12/9 Michael S. Tsirkin : > On Fri, Nov 26, 2010 at 10:38:33AM +0800, l

Re: [PATCH v2 3/6] KVM-GST: KVM Steal time accounting

2011-01-30 Thread lidong chen
I think we can use performance counter. use unhalted core cycles event, in the nmi callback funcation, count which process is running . if the vm exit is caused by nmi,discard it. the system time of qemu process is the time steal by kvm. 2011/1/30 Avi Kivity : > On 01/28/2011 09:52 PM, Glauber C

Re: [PATCH] kvm-vmx: add module parameter to avoid trapping HLT instructions (v2)

2010-12-02 Thread lidong chen
In certain use-cases, we want to allocate guests fixed time slices where idle guest cycles leave the machine idling. i could not understand why need this? can you tell more detailedly? thanks. 2010/12/2 Anthony Liguori : > In certain use-cases, we want to allocate guests fixed time slices where

Re: Performance test result between virtio_pci MSI-X disable and enable

2010-12-02 Thread lidong chen
, Dec 2, 2010 at 5:49 PM, Michael S. Tsirkin wrote: >> > On Thu, Dec 02, 2010 at 09:13:28AM +0800, Yang, Sheng wrote: >> >> On Wednesday 01 December 2010 22:03:58 Michael S. Tsirkin wrote: >> >> > On Wed, Dec 01, 2010 at 04:41:38PM +0800, lidong chen wrote: >&

Re: Performance test result between virtio_pci MSI-X disable and enable

2010-12-01 Thread lidong chen
update_msix_mmio(kvm_context, &msix_mmio); if (ret) fprintf(stderr, "fail to register in-kernel msix_mmio!\n"); } #endif 2010/12/1 Yang, Sheng : > On Wednesday 01 December 2010 16:54:16 lidong chen wrote: >> yes, i patch qemu as

Re: Performance test result between virtio_pci MSI-X disable and enable

2010-12-01 Thread lidong chen
yes, i patch qemu as well. and i found the address of second vf is not in mmio range. the first one is fine. 2010/12/1 Yang, Sheng : > On Wednesday 01 December 2010 16:41:38 lidong chen wrote: >> I used sr-iov, give each vm 2 vf. >> after apply the patch, and i found performe

Re: Performance test result between virtio_pci MSI-X disable and enable

2010-12-01 Thread lidong chen
ng, Sheng : > On Tuesday 30 November 2010 17:10:11 lidong chen wrote: >> sr-iov also meet this problem, MSIX mask waste a lot of cpu resource. >> >> I test kvm with sriov, which the vf driver could not disable msix. >> so the host os waste a lot of cpu.  cpu rate of host os

Re: Performance test result between virtio_pci MSI-X disable and enable

2010-11-30 Thread lidong chen
with MSIX enabled, the performace is better. 2010/11/23 Avi Kivity : > On 11/23/2010 09:27 AM, lidong chen wrote: >> >> can you tell me something about this problem. >> thanks. > > Which problem? > > -- > I have a truly marvellous patch that fixes the bug whi

Re: How do I prevent one guest from hogging the disk I/O and preventing other guests from accessing the disk?

2010-11-27 Thread lidong chen
blkio may help you. http://www.mjmwired.net/kernel/Documentation/cgroups/blkio-controller.txt 2010/11/26 Henry Pepper : > Hi > > I'm running some tests on a KVM setup, based on RHEL 6 beta2. > > When running a disk test in one guest, then no other guests seems to > get any disk I/O done. > > How

Re: virtio_net sometimes didn't work

2010-11-25 Thread lidong chen
. and i found someone else also meet this problem. https://bugs.launchpad.net/ubuntu/+source/linux/+bug/584675 2010/11/25 Michael S. Tsirkin : > On Thu, Nov 25, 2010 at 10:21:24PM +0800, lidong chen wrote: >> [version] >> the host os version is 2.6.32 > > Which qemu-kvm ve

virtio_net sometimes didn't work

2010-11-25 Thread lidong chen
[version] the host os version is 2.6.32 the guest os version is 2.6.16 [dmesg] ACPI: (supports S3 S4 S5) Freeing unused kernel memory: 200k freed input: ImExPS/2 Generic Explorer Mouse as /class/input/input2 ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11 ACPI: PCI Interrupt :00:03.0[A] -> L

Re: Performance test result between per-vhost kthread disable and enable

2010-11-24 Thread lidong chen
sorry,because of work plan, i can not give the perf top result now. i will give the comparative result next week. 2010/11/24 Michael S. Tsirkin : > On Wed, Nov 24, 2010 at 02:49:26PM +0800, lidong chen wrote: >> apply the patch, and disable CONFIG_SCHED_DEBUG, the result is worse, &

Re: Performance test result between per-vhost kthread disable and enable

2010-11-23 Thread lidong chen
irkin : > On Tue, Nov 23, 2010 at 10:13:43AM +0800, lidong chen wrote: >> I test the performance between per-vhost kthread disable and enable. >> >> Test method: >> Send the same traffic load between per-vhost kthread disable and >> enable, and compare the cpu rate of hos

Re: Performance test result between virtio_pci MSI-X disable and enable

2010-11-22 Thread lidong chen
can you tell me something about this problem. thanks. 2010/11/23 Avi Kivity : > On 11/23/2010 04:53 AM, lidong chen wrote: >> >> Test method: >> Send the same traffic load between virtio_pci MSI-X disable and >> enable,and compare the cpu rate of host os. >>

Re: Performance test result between per-vhost kthread disable and enable

2010-11-22 Thread lidong chen
traffic with same bandwidth. for example,both 1000 packets per second. 2010/11/23 Huang, Zhiteng : > By same traffic load, do you mean same amount of packets or traffic with same > bandwidth or anything else? > > Regards, > > HUANG, Zhiteng > > > > -Original Me

Re: Performance test result between per-vhost kthread disable and enable

2010-11-22 Thread lidong chen
---Original Message- > From: kvm-ow...@vger.kernel.org [mailto:kvm-ow...@vger.kernel.org] On Behalf > Of lidong chen > Sent: Tuesday, November 23, 2010 10:14 AM > To: t...@kernel.org; s...@us.ibm.com; m...@redhat.com; Avi Kivity; > kvm@vger.kernel.org > Subject: Performance test resul

Performance test result between virtio_pci MSI-X disable and enable

2010-11-22 Thread lidong chen
Test method: Send the same traffic load between virtio_pci MSI-X disable and enable,and compare the cpu rate of host os. I used the same version of virtio driver, only modify the msi-x option. the host os version is 2.6.32. the virtio dirver is from rhel6. the guest version os is 2.6.16. Test res

Performance test result between per-vhost kthread disable and enable

2010-11-22 Thread lidong chen
I test the performance between per-vhost kthread disable and enable. Test method: Send the same traffic load between per-vhost kthread disable and enable, and compare the cpu rate of host os. I run five vm on kvm, each of them have five nic. the vhost version which per-vhost kthread disable we use

Re: Why so many vm exits caused by ept violation

2010-11-16 Thread lidong chen
(!err) return 0; /* Finally fall back to regular interrupts. */ #endif return vp_try_to_find_vqs(vdev, nvqs, vqs, callbacks, names, false, false); } 2010/11/15, lidong chen : > I think the address maybe initialized in function virtio_p

Re: Why so many vm exits caused by ept violation

2010-11-15 Thread lidong chen
I think the address maybe initialized in function virtio_pci_probe. err = pci_request_regions(pci_dev, "virtio-pci"); but i did not know when used this address. 2010/11/15, lidong chen : > 2010/11/15, Avi Kivity : >> On 11/15/2010 09:24 AM, lidong chen wrote: >>> th

Re: Why so many vm exits caused by ept violation

2010-11-15 Thread lidong chen
2010/11/15, Avi Kivity : > On 11/15/2010 09:24 AM, lidong chen wrote: >> the address is the Region 1 of virtio_net. >> >> why virtio_net use this address caused ept violation? > > It's probably the MSIX mask bit. Older kernels program this bit twice > on ever

Re: Why so many vm exits caused by ept violation

2010-11-14 Thread lidong chen
s 4060217344 > error gpa is 4060217344 > error gpa is 4060217344 > error gpa is 4060217344 > error gpa is 4060217344 > error gpa is 4060217344 > error gpa is 4060217344 > > other is F20A(4060741632). > > error gpa is 4060741632 > error gpa is 4060741632 > > >

Re: Why so many vm exits caused by ept violation

2010-11-14 Thread lidong chen
error gpa is 4060217344 other is F20A(4060741632). error gpa is 4060741632 error gpa is 4060741632 2010/11/15, lidong chen : > i use the virtio dirvier of rhle6, the guest os version is 2.6.16. > > the vm exits which caused by io instruction and apic access reduce a lot. > the tot

Re: Why so many vm exits caused by ept violation

2010-11-14 Thread lidong chen
11/10/2010 09:09 AM, lidong chen wrote: >> >> after slove the ept violation problem, i found  the vm exits times is >> still more than xen. >> >> and i found most of them is caused by io instruction. then i stat the >> port number, most of them is caused by virio_

Re: Why so many vm exits caused by ept violation

2010-11-09 Thread lidong chen
- Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- : > On Tue, Nov 09, 2010 at 06:24:06PM +0800, lidong chen wrote: >> the version of guest os is 2.6.16.60-0.21-bigsmp. >> >> the virtio driver we use

Re: Why so many vm exits caused by ept violation

2010-11-09 Thread lidong chen
the version of guest os is 2.6.16.60-0.21-bigsmp. the virtio driver we use from RHEL5.5. 2010/11/9 Gleb Natapov : > On Tue, Nov 09, 2010 at 05:04:15PM +0800, lidong chen wrote: >> how to configure virtio to use MSI? I didn't found out it. >> thanks. >> > It looks

Re: Why so many vm exits caused by ept violation

2010-11-09 Thread lidong chen
how to configure virtio to use MSI? I didn't found out it. thanks. 2010/11/9 Gleb Natapov : > On Tue, Nov 09, 2010 at 03:37:44PM +0800, lidong chen wrote: >> sorry,i take mistake, >> >> the ept violation is not caused by 2M hugepages, but caused by e1000 >> emu

Re: Why so many vm exits caused by ept violation

2010-11-08 Thread lidong chen
error gpa is 4273995776 error gpa is 4273995776 error gpa is 4273995776 error gpa is 4273995776 2010/11/9 lidong chen : >> What workload is this?  Are you using virtio? > yes,i using virtio and vhost. the cpu rate is 70%. > > I found it maybe caused by  2M HugePages. if  didn't

Re: KVM: High CPU load with audio enabled

2010-11-08 Thread lidong chen
you can use "perf top" to collect some information. 2010/11/8 Stefan Pietsch : > Hi, > > I'm running a Windows XP guest in KVM. After enabling the audio support > (-soundhw es1370) the CPU load of the KVM process in the host system > goes up to 100%. > > Tested with: qemu-kvm-0.13.0 Debian 0.13.0+

Re: Why so many vm exits caused by ept violation

2010-11-08 Thread lidong chen
HugePage cause such a result. 2010/11/8 Avi Kivity : > On 11/08/2010 02:15 PM, lidong chen wrote: >> >> I run my application both on xen and kvm, and I found the performance >> on kvm is worse than xen. >> >> kvm: 2.6.32-60.el6.x86_64 redhat 6 bate 2 >> xen

Why so many vm exits caused by ept violation

2010-11-08 Thread lidong chen
I run my application both on xen and kvm, and I found the performance on kvm is worse than xen. kvm: 2.6.32-60.el6.x86_64 redhat 6 bate 2 xen: xen3.4.2 then i stat the vm exit reason, and i found the ept violation reason, kvm is much more than xen. the static result is : (XEN) 10 times on cp