Re: [PATCH RFC] kvm: enable irq injection from interrupt context

2010-09-17 Thread Gleb Natapov
On Fri, Sep 17, 2010 at 12:07:15AM +0200, Michael S. Tsirkin wrote: On Thu, Sep 16, 2010 at 05:43:26PM +0200, Gleb Natapov wrote: On Thu, Sep 16, 2010 at 05:24:11PM +0200, Michael S. Tsirkin wrote: On Thu, Sep 16, 2010 at 04:51:17PM +0200, Gleb Natapov wrote: What for? Device emulation

RE: [PATCH 2/2] kvm/e500v2: mapping guest TLB1 to host TLB0

2010-09-17 Thread Liu Yu-B13201
-Original Message- From: kvm-ppc-ow...@vger.kernel.org [mailto:kvm-ppc-ow...@vger.kernel.org] On Behalf Of Alexander Graf Sent: Thursday, September 16, 2010 7:44 PM To: Liu Yu-B13201 Cc: kvm@vger.kernel.org; kvm-...@vger.kernel.org Subject: Re: [PATCH 2/2] kvm/e500v2: mapping

Re: [KVM-autotest] virtio_console test v3.0

2010-09-17 Thread Amit Shah
On (Wed) Sep 15 2010 [17:41:28], Lukas Doktor wrote: New version of virtio_console test is more similar to upstream C virtio_console test so it will be easier to maintain. Also we moved the scripts/console_switch.py to more sensible scripts/virtio_guest.py There are still some

[v2 RFC PATCH 0/4] Implement multiqueue virtio-net

2010-09-17 Thread Krishna Kumar
Following patches implement transmit MQ in virtio-net. Also included is the user qemu changes. MQ is disabled by default unless qemu specifies it. 1. This feature was first implemented with a single vhost. Testing showed 3-8% performance gain for upto 8 netperf sessions (and sometimes 16),

[v2 RFC PATCH 1/4] Change virtqueue structure

2010-09-17 Thread Krishna Kumar
Move queue_index from virtio_pci_vq_info to virtqueue. This allows callback handlers to figure out the queue number for the vq that needs attention. Signed-off-by: Krishna Kumar krkum...@in.ibm.com --- drivers/virtio/virtio_pci.c | 10 +++--- include/linux/virtio.h |1 + 2 files

[v2 RFC PATCH 3/4] Changes for vhost

2010-09-17 Thread Krishna Kumar
Changes for mq vhost. vhost_net_open is changed to allocate a vhost_net and return. The remaining initializations are delayed till SET_OWNER. SET_OWNER is changed so that the argument is used to figure out how many txqs to use. Unmodified qemu's will pass NULL, so this is recognized and handled

[v2 RFC PATCH 2/4] Changes for virtio-net

2010-09-17 Thread Krishna Kumar
Implement mq virtio-net driver. Though struct virtio_net_config changes, it works with old qemu's since the last element is not accessed, unless qemu sets VIRTIO_NET_F_NUMTXQS. Signed-off-by: Krishna Kumar krkum...@in.ibm.com --- drivers/net/virtio_net.c | 213

[v2 RFC PATCH 4/4] qemu changes

2010-09-17 Thread Krishna Kumar
Changes in qemu to support mq TX. Signed-off-by: Krishna Kumar krkum...@in.ibm.com --- hw/vhost.c |8 ++- hw/vhost.h |2 hw/vhost_net.c | 16 +-- hw/vhost_net.h |2 hw/virtio-net.c | 97 ++ hw/virtio-net.h |2

Re: [PATCH 2/2] kvm/e500v2: mapping guest TLB1 to host TLB0

2010-09-17 Thread Alexander Graf
On 17.09.2010, at 10:47, Liu Yu-B13201 wrote: -Original Message- From: kvm-ppc-ow...@vger.kernel.org [mailto:kvm-ppc-ow...@vger.kernel.org] On Behalf Of Alexander Graf Sent: Thursday, September 16, 2010 7:44 PM To: Liu Yu-B13201 Cc: kvm@vger.kernel.org; kvm-...@vger.kernel.org

Re: [Qemu-devel] lsi_scsi assertion

2010-09-17 Thread Bernhard Kohl
Am 16.09.2010 15:57, schrieb ext Peter Lieven: Hi, I found the following assertion in my log files after a system reset was executed kvm: lsi_scsi: error: ORDERED queue not implemented last message repeated 5 times kvm: lsi_scsi: error: Unimplemented message 0x0d kvm: lsi_scsi: error:

Re: [v2 RFC PATCH 2/4] Changes for virtio-net

2010-09-17 Thread Krishna Kumar2
Eric Dumazet eric.duma...@gmail.com wrote on 09/17/2010 03:55:54 PM: +/* Our representation of a send virtqueue */ +struct send_queue { + struct virtqueue *svq; + + /* TX: fragments + linear part + virtio header */ + struct scatterlist tx_sg[MAX_SKB_FRAGS + 2]; +}; You

Re: [Qemu-devel] lsi_scsi assertion

2010-09-17 Thread Peter Lieven
Am 17.09.2010 um 13:36 schrieb Bernhard Kohl: Am 16.09.2010 15:57, schrieb ext Peter Lieven: Hi, I found the following assertion in my log files after a system reset was executed kvm: lsi_scsi: error: ORDERED queue not implemented last message repeated 5 times kvm: lsi_scsi: error:

Re: [Qemu-devel] lsi_scsi assertion

2010-09-17 Thread Jan Kiszka
Am 17.09.2010 14:26, Peter Lieven wrote: Am 17.09.2010 um 13:36 schrieb Bernhard Kohl: Am 16.09.2010 15:57, schrieb ext Peter Lieven: Hi, I found the following assertion in my log files after a system reset was executed kvm: lsi_scsi: error: ORDERED queue not implemented last message

Re: [Qemu-devel] lsi_scsi assertion

2010-09-17 Thread Peter Lieven
Am 17.09.2010 um 14:30 schrieb Jan Kiszka: Am 17.09.2010 14:26, Peter Lieven wrote: Am 17.09.2010 um 13:36 schrieb Bernhard Kohl: Am 16.09.2010 15:57, schrieb ext Peter Lieven: Hi, I found the following assertion in my log files after a system reset was executed kvm: lsi_scsi:

RE: [PATCH 2/2] kvm/e500v2: mapping guest TLB1 to host TLB0

2010-09-17 Thread Liu Yu-B13201
-Original Message- From: Alexander Graf [mailto:ag...@suse.de] Sent: Friday, September 17, 2010 7:34 PM To: Liu Yu-B13201 Cc: kvm@vger.kernel.org; kvm-...@vger.kernel.org Subject: Re: [PATCH 2/2] kvm/e500v2: mapping guest TLB1 to host TLB0 On 17.09.2010, at 13:28, Liu

Re: [v2 RFC PATCH 2/4] Changes for virtio-net

2010-09-17 Thread Krishna Kumar2
Krishna Kumar2/India/i...@ibmin Sent by: netdev-ow...@vger.kernel.org + struct virtnet_info { struct virtio_device *vdev; - struct virtqueue *rvq, *svq, *cvq; + int numtxqs; /* Number of tx queues */ + struct send_queue *sq; + struct virtqueue *rvq;

Re: [PATCH] device-assignment: register a reset function

2010-09-17 Thread Bernhard Kohl
Am 16.09.2010 17:48, schrieb ext Alex Williamson: +static void reset_assigned_device(void *opaque) +{ +PCIDevice *d = (PCIDevice *)opaque; +uint32_t conf; + +/* reset the bus master bit to avoid further DMA transfers */ +conf = assigned_dev_pci_read_config(d, 0x04,

Re: [PATCH] virtio-blk: put request that was created to retrieve the device id

2010-09-17 Thread Ryan Harper
* Christoph Hellwig h...@infradead.org [2010-09-09 16:18]: On Thu, Sep 09, 2010 at 05:00:42PM -0400, Mike Snitzer wrote: diff --git a/drivers/block/virtio_blk.c b/drivers/block/virtio_blk.c index 1260628..831e75c 100644 --- a/drivers/block/virtio_blk.c +++ b/drivers/block/virtio_blk.c

[PATCH] device-assignment: register a reset function

2010-09-17 Thread Bernhard Kohl
This is necessary because during reboot of a VM the assigned devices continue DMA transfers which causes memory corruption. Signed-off-by: Thomas Ostler thomas.ost...@nsn.com Signed-off-by: Bernhard Kohl bernhard.k...@nsn.com --- hw/device-assignment.c | 14 ++ 1 files changed, 14

Re: [PATCH] device-assignment: register a reset function

2010-09-17 Thread Alex Williamson
On Fri, 2010-09-17 at 17:27 +0200, Bernhard Kohl wrote: This is necessary because during reboot of a VM the assigned devices continue DMA transfers which causes memory corruption. Signed-off-by: Thomas Ostler thomas.ost...@nsn.com Signed-off-by: Bernhard Kohl bernhard.k...@nsn.com ---

Virtio with Debian GNU/Linux Etch

2010-09-17 Thread Daniel Bareiro
Hi all! I have some installations with Debian GNU/Linux Etch I'm migrating to KVM. I just installed a kernel 2.6.26 from backports to use Virtio. But when I try to boot the operating system, it can not find the vd* device to mount the root filesystem. I made sure to change the /etc/fstab using

[RFC PATCH] virtio: Map virtqueue rings instead of referencing guest phys addrs

2010-09-17 Thread Alex Williamson
Nearly any operation on virtqueues require multiple reads/writes to virtqueue ring descriptors using guest physical addresses (ld*/st*_phys). These are expensive and result in phys_page_find_alloc() and qemu_get_ram_ptr() showing up at the top of profiles run under virtio net/block workloads. We

Re: [Qemu-devel] [RFC PATCH] virtio: Map virtqueue rings instead of referencing guest phys addrs

2010-09-17 Thread Anthony Liguori
On 09/17/2010 12:30 PM, Alex Williamson wrote: Nearly any operation on virtqueues require multiple reads/writes to virtqueue ring descriptors using guest physical addresses (ld*/st*_phys). These are expensive and result in phys_page_find_alloc() and qemu_get_ram_ptr() showing up at the top of

More than 2 serial ports

2010-09-17 Thread Massimo Santoro
Hello. We found out we can't start a VM with KVM if more than two serial ports are assigned The bug is reported here: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=574051 But there it was closed months ago in KVM 0.12.4. Is a patch going to be included in the mainstream anytime soon?

Re: [PATCH v4 0/6] Nonatomic interrupt injection

2010-09-17 Thread Marcelo Tosatti
On Thu, Sep 16, 2010 at 03:35:19PM +0200, Avi Kivity wrote: On 08/30/2010 02:36 PM, Avi Kivity wrote: This patchset changes interrupt injection to be done from normal process context instead of interrupts disabled context. This is useful for real mode interrupt injection on Intel without the

Re: Virtio with Debian GNU/Linux Etch

2010-09-17 Thread Stefan Hajnoczi
On Fri, Sep 17, 2010 at 5:56 PM, Daniel Bareiro daniel-lis...@gmx.net wrote: I have some installations with Debian GNU/Linux Etch I'm migrating to KVM. I just installed a kernel 2.6.26 from backports to use Virtio. But when I try to boot the operating system, it can not find the vd* device to

[PATCH] kvm-kmod

2010-09-17 Thread Zachary Amsden
Working on an older Fedora, I hit the need for this.. Add missing MSR definition Signed-off-by: Zachary Amsden zams...@redhat.com diff --git a/x86/external-module-compat.h b/x86/external-module-compat.h index cc51b0f..8cb936d 100644 --- a/x86/external-module-compat.h +++

Re: [KVM timekeeping 10/35] Fix deep C-state TSC desynchronization

2010-09-17 Thread Zachary Amsden
On 09/15/2010 08:27 AM, Jan Kiszka wrote: Am 15.09.2010 14:32, Glauber Costa wrote: On Wed, Sep 15, 2010 at 10:09:33AM +0200, Jan Kiszka wrote: In any case, I'll proceed with the forcing of unstable TSC and HPET clocksource and see what happens. I tried that before, but it

Re: [KVM timekeeping 10/35] Fix deep C-state TSC desynchronization

2010-09-17 Thread Zachary Amsden
On 09/17/2010 12:09 PM, Zachary Amsden wrote: On 09/15/2010 08:27 AM, Jan Kiszka wrote: Am 15.09.2010 14:32, Glauber Costa wrote: On Wed, Sep 15, 2010 at 10:09:33AM +0200, Jan Kiszka wrote: In any case, I'll proceed with the forcing of unstable TSC and HPET clocksource and see what happens.

[PATCH] KVM: x86: mmu: fix counting of rmap entries in rmap_add()

2010-09-17 Thread Hillf Danton
It seems that rmap entries are under counted. Signed-off-by: Hillf Danton dhi...@gmail.com --- --- o/linux-2.6.36-rc1/arch/x86/kvm/mmu.c 2010-08-16 08:41:38.0 +0800 +++ m/linux-2.6.36-rc1/arch/x86/kvm/mmu.c 2010-09-18 07:51:44.0 +0800 @@ -591,6 +591,7 @@ static int

Re: [PATCH 2/2] kvm/e500v2: mapping guest TLB1 to host TLB0

2010-09-17 Thread Alexander Graf
On 17.09.2010, at 10:47, Liu Yu-B13201 wrote: -Original Message- From: kvm-ppc-ow...@vger.kernel.org [mailto:kvm-ppc-ow...@vger.kernel.org] On Behalf Of Alexander Graf Sent: Thursday, September 16, 2010 7:44 PM To: Liu Yu-B13201 Cc: k...@vger.kernel.org;

Re: [PATCH 2/2] kvm/e500v2: mapping guest TLB1 to host TLB0

2010-09-17 Thread Alexander Graf
On 17.09.2010, at 13:28, Liu Yu-B13201 wrote: -Original Message- From: Alexander Graf [mailto:ag...@suse.de] Sent: Friday, September 17, 2010 6:20 PM To: Liu Yu-B13201 Cc: k...@vger.kernel.org; kvm-ppc@vger.kernel.org Subject: Re: [PATCH 2/2] kvm/e500v2: mapping guest TLB1 to

RE: [PATCH 2/2] kvm/e500v2: mapping guest TLB1 to host TLB0

2010-09-17 Thread Liu Yu-B13201
-Original Message- From: Alexander Graf [mailto:ag...@suse.de] Sent: Friday, September 17, 2010 7:34 PM To: Liu Yu-B13201 Cc: k...@vger.kernel.org; kvm-ppc@vger.kernel.org Subject: Re: [PATCH 2/2] kvm/e500v2: mapping guest TLB1 to host TLB0 On 17.09.2010, at 13:28, Liu

Re: [PATCH 2/2] kvm/e500v2: mapping guest TLB1 to host TLB0

2010-09-17 Thread Alexander Graf
On 17.09.2010, at 14:33, Liu Yu-B13201 wrote: -Original Message- From: Alexander Graf [mailto:ag...@suse.de] Sent: Friday, September 17, 2010 7:34 PM To: Liu Yu-B13201 Cc: k...@vger.kernel.org; kvm-ppc@vger.kernel.org Subject: Re: [PATCH 2/2] kvm/e500v2: mapping guest TLB1 to