Re: Why so many vm exits caused by ept violation

2010-11-16 Thread lidong chen
it ready caused by the the MSIX mask bit. so i disable the msix in the newer virtio driver, and i found it have better performent than msix enabled. the cpu rate of host os reduce. the reason maybe is ept violation. I couldn't use newer kernels. because the purpose i used kvm is run old

Re: Why so many vm exits caused by ept violation

2010-11-15 Thread 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 every interrupt. Newer kernels do this much less frequently. Try with a new

Re: Why so many vm exits caused by ept violation

2010-11-15 Thread lidong chen
2010/11/15, Avi Kivity a...@redhat.com: 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 every interrupt. Newer kernels do

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 chen.lidong.ker...@gmail.com: 2010/11/15, Avi Kivity a...@redhat.com: On 11/15/2010 09:24 AM, lidong chen

Re: Why so many vm exits caused by ept violation

2010-11-14 Thread lidong chen
the gpa caused ept violation is below: most of them is F202.(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 error gpa is 4060217344 error gpa is 4060217344 error gpa is 4060217344

Re: Why so many vm exits caused by ept violation

2010-11-14 Thread lidong chen
the address is the Region 1 of virtio_net. why virtio_net use this address caused ept violation? 00:04.0 Ethernet controller: Unknown device 1af4:1000 Subsystem: Unknown device 1af4:0001 Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-

Re: Why so many vm exits caused by ept violation

2010-11-10 Thread Avi Kivity
On 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_net. This is also solved by the msi-capable

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 g...@redhat.com: 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 emulated by qemu. I test uesd 2M

Re: Why so many vm exits caused by ept violation

2010-11-09 Thread 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 like it should be enabled by default. What is you guest? 2010/11/9 Gleb Natapov g...@redhat.com: On Tue, Nov 09, 2010 at 03:37:44PM +0800, lidong chen

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 g...@redhat.com: 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 like it should be enabled

Re: Why so many vm exits caused by ept violation

2010-11-09 Thread Gleb Natapov
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 from RHEL5.5. This guest does not support MSI. 2010/11/9 Gleb Natapov g...@redhat.com: On Tue, Nov 09, 2010 at 05:04:15PM +0800, lidong chen wrote:

Re: Why so many vm exits caused by ept violation

2010-11-09 Thread lidong chen
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_net. qemu-kvm-18727 [006] 31297.698935: kvm_pio: pio_read at 0xc093 size 1 count 1

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

Re: Why so many vm exits caused by ept violation

2010-11-08 Thread 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: xen3.4.2 then i stat the vm exit reason, and i found the ept violation reason, kvm is much more than xen.

Re: Why so many vm exits caused by ept violation

2010-11-08 Thread lidong chen
sorry,i take mistake, the ept violation is not caused by 2M hugepages, but caused by e1000 emulated by qemu. I test uesd 2M hugepages and virio, the performance is better than e1000. but is still worse than xen. I will continue to find out other reason. so, there are two question: 1.why have

Re: Why so many vm exits caused by ept violation

2010-11-08 Thread 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 emulated by qemu. I test uesd 2M hugepages and virio, the performance is better than e1000. but is still worse than xen. I will continue to