Re: [Qemu-devel] High CPU use of -usbdevice tablet (was Re: KVM usability)

2010-04-05 Thread Avi Kivity
On 04/05/2010 12:53 AM, Paul Brook wrote: Surprising as there are ~10 descriptors being polled, so ~1200 polls per second. Maybe epoll will help here. I'm not sure where you get 1200 from. select will be called once per host wakeup. i.e. if the USB controller is enabled then 1k times

Re: Some Code for Performance Profiling

2010-04-05 Thread Avi Kivity
On 03/31/2010 07:53 PM, Jiaqing Du wrote: Hi, We have some code about performance profiling in KVM. They are outputs of a school project. Previous discussions in KVM, Perfmon2, and Xen mailing lists helped us a lot. The code are NOT in a good shape and are only used to demonstrated the

bnx2 driver for NIC passthrough

2010-04-05 Thread Xiong Wang
Hi,List, I have an ibm X3650M2 box with two onboard broadcom NICs,I assign one of the NIC to the KVM guest,I can see the NIC in the guest VM,but the bnx2 driver can not load successfully, is there any solution to fix this? Host:fedora12 x86_64 /usr/bin/qemu-kvm -m 2048

Re: Networkconfiguration with KVM

2010-04-05 Thread Dan Johansson
On Sunday 04 April 2010 22.23:28 Held Bernhard wrote: Am 04.04.2010 20:02, schrieb Dan Johansson: On Sunday 04 April 2010 15.00:26 sudhir kumar wrote: On Sun, Apr 4, 2010 at 5:47 PM, Dan Johansson k...@dmj.nu wrote: Hi, I am new to this list and to KVM (and qemu) so please be gentle

Re: [RFC] vhost-blk implementation

2010-04-05 Thread Stefan Hajnoczi
On Mon, Mar 29, 2010 at 4:41 PM, Badari Pulavarty pbad...@us.ibm.com wrote: +static void handle_io_work(struct work_struct *work) +{ +       struct vhost_blk_io *vbio; +       struct vhost_virtqueue *vq; +       struct vhost_blk *blk; +       int i, ret = 0; +       loff_t pos; +      

Re: Networkconfiguration with KVM

2010-04-05 Thread Dan Johansson
On Monday 05 April 2010 13.34:26 mathias dufresne wrote: Hi, For networks 1 and 2 (respectively 192.168.1.0/24 and 192.168.2.0/24, I'll acll also network 3 for the last one) you'll have to use bridges. For network 3 you can use vde which is quite simply to use and gives possibility to add

Re: Networkconfiguration with KVM

2010-04-05 Thread David Mair
On 04/05/2010 08:35 AM, Dan Johansson wrote: On Monday 05 April 2010 13.34:26 mathias dufresne wrote: Hi, For networks 1 and 2 (respectively 192.168.1.0/24 and 192.168.2.0/24, I'll acll also network 3 for the last one) you'll have to use bridges. For network 3 you can use vde which is quite

Re: Networkconfiguration with KVM

2010-04-05 Thread Dan Johansson
On Monday 05 April 2010 17.31:22 Held Bernhard wrote: Hi Dan! But Still I get the following: From the Host to the VM: $ ssh r...@192.168.4.4 ssh: connect to host 192.168.4.4 port 22: Connection refused And from the VM to the Host: # ssh r...@192.168.4.1 ssh: connect to host

Re: [PATCH] vhost: Make it more scalable by creating a vhost thread per device.

2010-04-05 Thread Sridhar Samudrala
On Sun, 2010-04-04 at 14:14 +0300, Michael S. Tsirkin wrote: On Fri, Apr 02, 2010 at 10:31:20AM -0700, Sridhar Samudrala wrote: Make vhost scalable by creating a separate vhost thread per vhost device. This provides better scaling across multiple guests and with multiple interfaces in a

Re: Networkconfiguration with KVM

2010-04-05 Thread Dan Johansson
On Monday 05 April 2010 19.48:49 Bernhard Held wrote: Am 05.04.2010 17:31, schrieb Held Bernhard: Hi Dan! But Still I get the following: From the Host to the VM: $ ssh r...@192.168.4.4 ssh: connect to host 192.168.4.4 port 22: Connection refused And from the VM to the Host: #

Re: bnx2 driver for NIC passthrough

2010-04-05 Thread Chris Wright
* Xiong Wang (xiong...@gmail.com) wrote: I have an ibm X3650M2 box with two onboard broadcom NICs,I assign one of the NIC to the KVM guest,I can see the NIC in the guest VM,but the bnx2 driver can not load successfully, is there any solution to fix this? This device can not be successfully

[GSoC 2010][RESEND] Completing Nested VMX

2010-04-05 Thread Mohammed Gamal
Hello All, I'm interested in adding nested VMX support to KVM in GSoC 2010 (among other things). I see that Orit Wasserman has done some work in this area, but it didn't get merged yet. The last patches were a few months ago and I have not seen any substantial progress in that front ever since. I

Re: Networkconfiguration with KVM

2010-04-05 Thread David S. Ahern
On 04/05/2010 12:04 PM, Dan Johansson wrote: Must I specify an IP for the br-eth3 interface? You do not have to specify an IP address for the bridge. In my case: mainbr0 Link encap:Ethernet HWaddr mac UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX

[ kvm-Bugs-2976863 ] 32PAE Windows guest blue screen when booting with apci on

2010-04-05 Thread SourceForge.net
Bugs item #2976863, was opened at 2010-03-26 02:44 Message generated for change (Comment added) made by mtosatti You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=893831aid=2976863group_id=180599 Please note that this message will contain a full copy of the comment

Re: [PATCH 2/2] KVM: Trace emulated instructions

2010-04-05 Thread Marcelo Tosatti
On Thu, Mar 25, 2010 at 05:02:56PM +0200, Avi Kivity wrote: Log emulated instructions in ftrace, especially if they failed. Signed-off-by: Avi Kivity a...@redhat.com --- arch/x86/kvm/trace.h | 86 ++ arch/x86/kvm/x86.c |4 ++ 2

Re: [RFC] vhost-blk implementation

2010-04-05 Thread Christoph Hellwig
On Wed, Mar 24, 2010 at 01:22:37PM -0700, Badari Pulavarty wrote: iovecs and buffers are user-space pointers (from the host kernel point of view). They are guest address. So, I don't need to do any set_fs tricks. From verifying the code and using the sparse annotations it appears that the

[PATCH] vhost: fix sparse warnings

2010-04-05 Thread Christoph Hellwig
Index: linux-2.6/drivers/vhost/net.c === --- linux-2.6.orig/drivers/vhost/net.c 2010-04-05 21:13:24.196004388 +0200 +++ linux-2.6/drivers/vhost/net.c 2010-04-05 21:13:32.726004109 +0200 @@ -641,7 +641,7 @@ static struct

Re: [GSoC 2010][RESEND] Completing Nested VMX

2010-04-05 Thread Luiz Capitulino
On Mon, 5 Apr 2010 20:34:26 +0200 Mohammed Gamal m.gamal...@gmail.com wrote: Hello All, I'm interested in adding nested VMX support to KVM in GSoC 2010 (among other things). I see that Orit Wasserman has done some work in this area, but it didn't get merged yet. The last patches were a few

Re: [GSoC 2010][RESEND] Completing Nested VMX

2010-04-05 Thread Alexander Graf
On 05.04.2010, at 21:37, Luiz Capitulino wrote: On Mon, 5 Apr 2010 20:34:26 +0200 Mohammed Gamal m.gamal...@gmail.com wrote: Hello All, I'm interested in adding nested VMX support to KVM in GSoC 2010 (among other things). I see that Orit Wasserman has done some work in this area, but it

Re: [GSoC 2010][RESEND] Completing Nested VMX

2010-04-05 Thread Mohammed Gamal
On Mon, Apr 5, 2010 at 9:42 PM, Alexander Graf ag...@suse.de wrote: On 05.04.2010, at 21:37, Luiz Capitulino wrote: On Mon, 5 Apr 2010 20:34:26 +0200 Mohammed Gamal m.gamal...@gmail.com wrote: Hello All, I'm interested in adding nested VMX support to KVM in GSoC 2010 (among other things).

Re: [RFC] vhost-blk implementation

2010-04-05 Thread Christoph Hellwig
On Thu, Mar 25, 2010 at 04:00:56PM +0100, Asdo wrote: Would the loop device provide the features of a block device? I recall barrier support at least has been added recently. It does, but not in a very efficient way. Is it recommended to run kvm on a loopback mounted file compared to on a

Re: Networkconfiguration with KVM

2010-04-05 Thread Held Bernhard
Hi Dan! This should be done over the host-eth3 interface and I have set up the br-eth3 and qtap3 the same way as with the eth1/br-eth1/qtap1 with one difference - the br-eth3 interface is setup without an IP. When doing traffic from the VM to the network I can see traffic on the qtap3

Re: [PATCH] fix migration with big mem guests

2010-04-05 Thread Marcelo Tosatti
On Mon, Apr 05, 2010 at 02:26:37AM +0300, Izik Eidus wrote: Hi, (Below is explenation about the bug to who does`nt familier) In the beggining I tried to make this code run with qemu_bh() but the result was performence catastrophic The reason is that the migration code just doesn`t built

Re: [PATCH 1/2] KVM MMU: cleanup/fix mmu audit code

2010-04-05 Thread Marcelo Tosatti
On Thu, Apr 01, 2010 at 04:50:45PM +0800, Xiao Guangrong wrote: This patch does: - 'sp' parameter in inspect_spte_fn() is not used, so remove it - fix 'kvm' and 'slots' is not defined in count_rmaps() - fix a bug in inspect_spte_has_rmap() Signed-off-by: Xiao Guangrong

Re: qemu-kvm.git stable requests

2010-04-05 Thread Marcelo Tosatti
On Thu, Apr 01, 2010 at 06:25:58PM +0300, Avi Kivity wrote: On 03/31/2010 11:26 AM, Alexander Graf wrote: Howdy, Apparently there was just the very first case of someone requiring my patch to enable BAR regions 4k. To enable people to use those devices with a released version, I'd

Re: Strange CPU usage pattern in SMP guest

2010-04-05 Thread Sebastian Hetze
On Tue, Mar 30, 2010 at 10:27:43AM +0200, Sebastian Hetze wrote: With this patch applied, the system runs without hrtimer messages since 5 days and the timer iterrupts look fine. Actually, when restarting the system with the hrtimer patch applied, we also changed the BIOS setting to disable

Re: [GSoC 2010][RESEND] Completing Nested VMX

2010-04-05 Thread Avi Kivity
On 04/05/2010 09:34 PM, Mohammed Gamal wrote: Hello All, I'm interested in adding nested VMX support to KVM in GSoC 2010 (among other things). I see that Orit Wasserman has done some work in this area, but it didn't get merged yet. The last patches were a few months ago and I have not seen any

Re: [PATCH 2/2] KVM: Trace emulated instructions

2010-04-05 Thread Avi Kivity
On 04/05/2010 09:44 PM, Marcelo Tosatti wrote: On Thu, Mar 25, 2010 at 05:02:56PM +0200, Avi Kivity wrote: Log emulated instructions in ftrace, especially if they failed. Why not log all emulated instructions? Seems useful to me. That was the intent, but it didn't pan out. I

Re: [RFC] vhost-blk implementation

2010-04-05 Thread Badari Pulavarty
On Mon, 2010-04-05 at 15:23 -0400, Christoph Hellwig wrote: On Wed, Mar 24, 2010 at 01:22:37PM -0700, Badari Pulavarty wrote: iovecs and buffers are user-space pointers (from the host kernel point of view). They are guest address. So, I don't need to do any set_fs tricks. From

[PATCH v2 0/6] Introduce bit-based phys_ram_dirty, and bit-based dirty page checker.

2010-04-05 Thread Yoshiaki Tamura
The dirty and non-dirty pages are checked one by one. When most of the memory is not dirty, checking the dirty and non-dirty pages by multiple page size should be much faster than checking them one by one. We introduced bit-based phys_ram_dirty for VGA, CODE, MIGRATION, MASTER, and

[PATCH v2 1/6] Modify DIRTY_FLAG value to use as indexes of bit-based phys_ram_dirty.

2010-04-05 Thread Yoshiaki Tamura
Signed-off-by: Yoshiaki Tamura tamura.yoshi...@lab.ntt.co.jp Signed-off-by: OHMURA Kei ohmura@lab.ntt.co.jp --- cpu-all.h | 10 -- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/cpu-all.h b/cpu-all.h index f8bfa66..c409fad 100644 --- a/cpu-all.h +++ b/cpu-all.h @@

[PATCH v2 4/6] Introduce cpu_physical_memory_get_dirty_range().

2010-04-05 Thread Yoshiaki Tamura
Introduces cpu_physical_memory_get_dirty_range(). It checks the first row and puts dirty addr in the array. If the first row is empty, it skips to the first non-dirty row or the end addr, and put the length in the first entry of the array. Signed-off-by: Yoshiaki Tamura

[PATCH v2 3/6] Modifies wrapper functions for byte-based phys_ram_dirty bitmap to bit-based phys_ram_dirty bitmap.

2010-04-05 Thread Yoshiaki Tamura
Signed-off-by: Yoshiaki Tamura tamura.yoshi...@lab.ntt.co.jp Signed-off-by: OHMURA Kei ohmura@lab.ntt.co.jp --- cpu-all.h | 81 ++-- 1 files changed, 67 insertions(+), 14 deletions(-) diff --git a/cpu-all.h b/cpu-all.h index

[PATCH v2 2/6] Introduce bit-based phys_ram_dirty for VGA, CODE, MIGRATION and MASTER.

2010-04-05 Thread Yoshiaki Tamura
Replaces byte-based phys_ram_dirty bitmap with three bit-based phys_ram_dirty bitmap. On allocation, it sets all bits in the bitmap. Signed-off-by: Yoshiaki Tamura tamura.yoshi...@lab.ntt.co.jp Signed-off-by: OHMURA Kei ohmura@lab.ntt.co.jp --- exec.c | 32 +++-

[PATCH v2 5/6] Use cpu_physical_memory_set_dirty_range() to update phys_ram_dirty.

2010-04-05 Thread Yoshiaki Tamura
Modifies kvm_physical_sync_dirty_bitmap to use cpu_physical_memory_set_dirty_range() to update the row of the bit-based phys_ram_dirty bitmap at once. Signed-off-by: OHMURA Kei ohmura@lab.ntt.co.jp Signed-off-by: Yoshiaki Tamura tamura.yoshi...@lab.ntt.co.jp --- bswap.h |2 ++

[PATCH v2 6/6] Use cpu_physical_memory_get_dirty_range() to check multiple dirty pages.

2010-04-05 Thread Yoshiaki Tamura
Modifies ram_save_block() and ram_save_remaining() to use cpu_physical_memory_get_dirty_range() to check multiple dirty and non-dirty pages at once. Signed-off-by: Yoshiaki Tamura tamura.yoshi...@lab.ntt.co.jp Signed-off-by: OHMURA Kei ohmura@lab.ntt.co.jp --- arch_init.c | 54

virsh dump blocking problem

2010-04-05 Thread Gui Jianfeng
Hi all, I'm not sure whether it's appropriate to post the problem here. I played with virsh under Fedora 12, and started a KVM fedora12 guest by virsh start command. The fedora12 guest is successfully started. Than I run the following command to dump the guest core: #virsh dump 1 mycoredump

Re: [RFC] vhost-blk implementation

2010-04-05 Thread Badari Pulavarty
On Mon, 2010-04-05 at 15:22 +0100, Stefan Hajnoczi wrote: On Mon, Mar 29, 2010 at 4:41 PM, Badari Pulavarty pbad...@us.ibm.com wrote: +static void handle_io_work(struct work_struct *work) +{ + struct vhost_blk_io *vbio; + struct vhost_virtqueue *vq; + struct vhost_blk

Question on skip_emulated_instructions()

2010-04-05 Thread Yoshiaki Tamura
Hi. When handle_io() is called, rip is currently proceeded *before* actually having I/O handled by qemu in userland. Upon implementing Kemari for KVM(http://www.mail-archive.com/kvm@vger.kernel.org/msg25141.html) mainly in userland qemu, we encountered a problem that synchronizing the content of

RE: [PATCH 1/3] A device for zero-copy based on KVM virtio-net.

2010-04-05 Thread Xin, Xiaohui
Michael, For the DOS issue, I'm not sure how much the limit get_user_pages() can pin is reasonable, should we compute the bindwidth to make it? There's a ulimit for locked memory. Can we use this, decreasing the value for rlimit array? We can do this when backend is enabled and re-increment

RE: [PATCH v1 2/3] Provides multiple submits and asynchronous notifications.

2010-04-05 Thread Xin, Xiaohui
Michael, For the write logging, do you have a function in hand that we can recompute the log? If that, I think I can use it to recompute the log info when the logging is suddenly enabled. For the outstanding requests, do you mean all the user buffers have submitted before the logging ioctl

KVM call agenda for Apr 6

2010-04-05 Thread Chris Wright
Please send in any agenda items you are interested in covering. thanks, -chris -- 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