Re: [Qemu-devel] add multiple times opening support to a virtserialport

2015-08-27 Thread Asias He
Hello Christoffer, On Fri, Aug 28, 2015 at 2:30 AM, Christoffer Dall wrote: > On Thu, Aug 27, 2015 at 10:23:38AM -0400, Christopher Covington wrote: >> On 07/24/2015 08:00 AM, Matt Ma wrote: >> > Hi all, >> > >> > Linaro has developed the foundation for the new Android Emulator code >> > base bas

Re: [Qemu-devel] vmw_pvscsi: QEMU stuck in SeaBIOS when pvscsi is enabled

2014-09-17 Thread Asias He
Hello Paolo, On Tue, Sep 16, 2014 at 10:33 PM, Paolo Bonzini wrote: > Il 16/09/2014 16:25, Igor Mammedov ha scritto: > > Current master cc35a44cf7b522b, > > > > QEMU is not able to boot an stuck in SeaBIOS (only SeaBIOS version was > printed) > > when started with "-device pvscsi" CLI option. >

Re: [Qemu-devel] [ANNOUNCE] Key Signing Party at KVM Forum 2013

2013-10-16 Thread Asias He
On Mon, Oct 14, 2013 at 7:14 PM, Stefan Hajnoczi wrote: > > On Wed, Jul 24, 2013 at 2:50 PM, Anthony Liguori > wrote: > > > > I will be hosting a key signing party at this year's KVM Forum. > > > > http://wiki.qemu.org/KeySigningParty2013 > > keyserver.cryptnet.net seems broken. I get connectio

[Qemu-devel] [PATCH v2] scsi: Allocate SCSITargetReq r->buf dynamically

2013-10-09 Thread Asias He
r->buf is hardcoded to 2056 which is (256 + 1) * 8, allowing 256 luns at most. If more than 256 luns are specified by user, we have buffer overflow in scsi_target_emulate_report_luns. To fix, we allocate the buffer dynamically. Signed-off-by: Asias He Tested-by: Michael Roth --- Changes in

[Qemu-devel] [PATCH] scsi: Allocate SCSITargetReq r->buf dynamically

2013-10-08 Thread Asias He
r->buf is hardcoded to 2056 which is (256 + 1) * 8, allowing 256 luns at most. If more than 256 luns are specified by user, we have buffer overflow in scsi_target_emulate_report_luns. To fix, we allocate the buffer dynamically. Signed-off-by: Asias He --- hw/scsi/scsi-bus.c |

Re: [Qemu-devel] [PATCH] block: Fix race in gluster_finish_aiocb

2013-08-23 Thread Asias He
On Thu, Aug 22, 2013 at 11:51:00AM +0200, Paolo Bonzini wrote: > Il 22/08/2013 11:50, Asias He ha scritto: > > On Wed, Aug 21, 2013 at 10:16:02AM +0200, Paolo Bonzini wrote: > >> Il 21/08/2013 04:02, Asias He ha scritto: > >>> In block/gluster.c, we have &g

Re: [Qemu-devel] [PATCH v2] block: Introduce bs->zero_beyond_eof

2013-08-22 Thread Asias He
On Thu, Aug 22, 2013 at 02:12:29PM +0200, Stefan Hajnoczi wrote: > On Thu, Aug 22, 2013 at 03:24:14PM +0800, Asias He wrote: > > In 4146b46c42e0989cb5842e04d88ab6ccb1713a48 (block: Produce zeros when > > protocols reading beyond end of file), we break qemu-iotests ./check >

Re: [Qemu-devel] [PATCH] block: Fix race in gluster_finish_aiocb

2013-08-22 Thread Asias He
On Wed, Aug 21, 2013 at 10:16:02AM +0200, Paolo Bonzini wrote: > Il 21/08/2013 04:02, Asias He ha scritto: > > In block/gluster.c, we have > > > > gluster_finish_aiocb > > { > >if (retval != sizeof(acb)) { > > qemu_mutex_lock_iothread

Re: [Qemu-devel] [PATCH] block: Introduce bs->zero_beyond_eof

2013-08-22 Thread Asias He
On Wed, Aug 21, 2013 at 05:44:08PM +0200, Stefan Hajnoczi wrote: > On Wed, Aug 21, 2013 at 04:26:04PM +0800, Asias He wrote: > > @@ -868,6 +868,7 @@ int bdrv_file_open(BlockDriverState **pbs, const char > > *filename, > > QDECREF(options); > > > >

[Qemu-devel] [PATCH v2] block: Introduce bs->zero_beyond_eof

2013-08-22 Thread Asias He
We introduce the bs->zero_beyond_eof to allow qcow2_load_vmstate() to disable ->zero_beyond_eof temporarily in addition to enable ->growable. Suggested-by: Stefan Hajnoczi Signed-off-by: Asias He --- Changes in v2: Set bs->zero_beyond_eof in bdrv_open_common block.c

[Qemu-devel] [PATCH] block: Introduce bs->zero_beyond_eof

2013-08-21 Thread Asias He
We introduce the bs->zero_beyond_eof to allow qcow2_load_vmstate() to disable ->zero_beyond_eof temporarily in addition to enable ->growable. Suggested-by: Stefan Hajnoczi Signed-off-by: Asias He --- block.c | 5 - block/qcow2.c | 3 +++ include/block/blo

[Qemu-devel] [PATCH] block: Fix race in gluster_finish_aiocb

2013-08-20 Thread Asias He
are a nop operation and gluster_finish_aiocb is in the gluster thread context. To fix, we introduce our own mutex for qemu tools. Signed-off-by: Asias He --- stubs/iothread-lock.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/stubs/iothread-lock.c b/stubs/iothread-lock.c index

Re: [Qemu-devel] [PATCH] block: Produce zeros when protocols reading beyond end of file

2013-08-18 Thread Asias He
On Fri, Aug 16, 2013 at 10:41:36AM +0200, Stefan Hajnoczi wrote: > On Mon, Aug 5, 2013 at 10:11 AM, Asias He wrote: > > From: MORITA Kazutaka > > > > While Asias is debugging an issue creating qcow2 images on top of > > non-file protocols. It boils down to this exampl

Re: [Qemu-devel] [PATCH v2] block: Produce zeros when protocols reading beyond end of file

2013-08-05 Thread Asias He
On Tue, Aug 06, 2013 at 10:02:22AM +0800, Fam Zheng wrote: > On Tue, 08/06 09:53, Asias He wrote: > > From: MORITA Kazutaka > > > > While Asias is debugging an issue creating qcow2 images on top of > > non-file protocols. It boils down to this example using NBD: >

[Qemu-devel] [PATCH v2] block: Produce zeros when protocols reading beyond end of file

2013-08-05 Thread Asias He
ls is not guaranteed to work even when file creation is supported by the protocol. Signed-off-by: MORITA Kazutaka Signed-off-by: Asias He --- block.c | 30 +- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/block.c b/block.c index 01b66d8..f3cd9fb 100644 ---

[Qemu-devel] [PATCH] block: Produce zeros when protocols reading beyond end of file

2013-08-05 Thread Asias He
ls is not guaranteed to work even when file creation is supported by the protocol. Signed-off-by: MORITA Kazutaka Signed-off-by: Asias He --- block.c | 30 +- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/block.c b/block.c index 01b66d8..deaf0a0 100644 ---

Re: [Qemu-devel] [PATCH 6/9] vhost-scsi: new device supporting the tcm_vhost Linux kernel module

2013-07-09 Thread Asias He
port driver. > In any case, I will try reproducing this problem on my system. Thanks, let me know if you have issue to setup the vhost-scsi environment. In the other mail of this thread, I wrote a howto to setup up vhost-scsi in RHEL6. > Best, > Vadim. > > - Original Messa

Re: [Qemu-devel] [PATCH 6/9] vhost-scsi: new device supporting the tcm_vhost Linux kernel module

2013-07-04 Thread Asias He
6] Calling __copy_from_user: vq->iov[0].iov_base: 7f8f2e6c53ac, len: 51 [ 3123.853697] target=0, tpg= (null) [ 3123.853698] send bad target head=0, out=1 [ 3123.853700] vhost_get_vq_desc: head: 128, out: 1 in: 2 > Thanks, > Baiqing. > > -Original Message- > > From: As

Re: [Qemu-devel] [PATCH 6/9] vhost-scsi: new device supporting the tcm_vhost Linux kernel module

2013-07-04 Thread Asias He
y plan about these? Thanks for testing. I will take a look. > > Thanks, > Baiqing. > > -Original Message- > > From: Asias He [mailto:as...@redhat.com] > > Sent: Wednesday, July 03, 2013 4:09 PM > > To: Libaiqing > > Cc: Paolo Bonzini; Wenchao Xia; q

Re: [Qemu-devel] [PATCH 6/9] vhost-scsi: new device supporting the tcm_vhost Linux kernel module

2013-07-03 Thread Asias He
On Wed, Jul 03, 2013 at 11:23:26AM +0800, Asias He wrote: > On Fri, Jun 21, 2013 at 10:16:48AM +, Libaiqing wrote: > > Hi Asias, > > > > > -Original Message----- > > > From: Asias He [mailto:as...@redhat.com] > > > Sent: Thursday, June 20, 2013 5

Re: [Qemu-devel] [PATCH 6/9] vhost-scsi: new device supporting the tcm_vhost Linux kernel module

2013-07-02 Thread Asias He
On Fri, Jun 21, 2013 at 10:16:48AM +, Libaiqing wrote: > Hi Asias, > > > -Original Message- > > From: Asias He [mailto:as...@redhat.com] > > Sent: Thursday, June 20, 2013 5:39 PM > > To: Libaiqing > > Cc: Paolo Bonzini; Wenchao Xia; qemu-devel@

Re: [Qemu-devel] [PATCH 6/9] vhost-scsi: new device supporting the tcm_vhost Linux kernel module

2013-07-02 Thread Asias He
On Wed, Jul 03, 2013 at 03:08:34AM +, Libaiqing wrote: > Hi asias, >I'm testing vhost-blk,for comparimg the performance with virtio-blk. >I got the kernel patch from this mail: https://lkml.org/lkml/2012/12/1/174 You can find the latest vhost-blk kernel bits here: git://github.com/a

Re: [Qemu-devel] [PATCH 6/9] vhost-scsi: new device supporting the tcm_vhost Linux kernel module

2013-06-20 Thread Asias He
; [TPGs: 1] > o- tpg1 > ... > [naa.5001405a70ac3421] > o- acls > .. > [ACLs: 0] > o- luns > ..

Re: [Qemu-devel] [PATCH 6/9] vhost-scsi: new device supporting the tcm_vhost Linux kernel module

2013-06-19 Thread Asias He
On Wed, Jun 19, 2013 at 12:55:10PM +, Libaiqing wrote: > Hi paolo, > The vhost-scsi device can be used as boot device? > I tested with your config + 3.10 rc6 + seabios 1.7.2.2,but failed. > Could you give me some advise to debug this problem ? I can provide more > information if need. B

Re: [Qemu-devel] [PATCH 6/9] vhost-scsi: new device supporting the tcm_vhost Linux kernel module

2013-05-29 Thread Asias He
On Wed, May 29, 2013 at 08:10:44AM -0700, Badari Pulavarty wrote: > On 05/29/2013 02:05 AM, Wenchao Xia wrote: > >于 2013-5-28 17:00, Wenchao Xia 写道: > >>于 2013-5-28 16:33, Asias He 写道: > >>>On Tue, May 28, 2013 at 10:01:14AM +0200, Paolo Bonzini wrote: > >&g

Re: [Qemu-devel] [PATCH 6/9] vhost-scsi: new device supporting the tcm_vhost Linux kernel module

2013-05-29 Thread Asias He
On Wed, May 29, 2013 at 05:05:31PM +0800, Wenchao Xia wrote: > 于 2013-5-28 17:00, Wenchao Xia 写道: > >于 2013-5-28 16:33, Asias He 写道: > >>On Tue, May 28, 2013 at 10:01:14AM +0200, Paolo Bonzini wrote: > >>>Il 28/05/2013 09:13, Wenchao Xia ha scritto: &g

Re: [Qemu-devel] [PATCH 6/9] vhost-scsi: new device supporting the tcm_vhost Linux kernel module

2013-05-28 Thread Asias He
On Tue, May 28, 2013 at 10:01:14AM +0200, Paolo Bonzini wrote: > Il 28/05/2013 09:13, Wenchao Xia ha scritto: > >> > From: Nicholas Bellinger > >> > > >> > The WWPN specified in configfs is passed to "-device vhost-scsi-pci". > >> > The tgpt field of the SET_ENDPOINT ioctl is obsolete now, so it

Re: [Qemu-devel] qemu seabios issue with vhost-scsi

2013-05-23 Thread Asias He
On Thu, May 23, 2013 at 01:31:12PM -0400, Paolo Bonzini wrote: > > > - Messaggio originale - > > Da: "Stefan Hajnoczi" > > A: "Paolo Bonzini" > > Cc: "Badari Pulavarty" , "Asias He" , > > "Nicholas A. Bellin

Re: [Qemu-devel] qemu seabios issue with vhost-scsi

2013-05-23 Thread Asias He
. Reproduced the SIGSEGV and verified that replacing the bios.bin with the one from seabios.git makes the guest boot. > This is the fix in SeaBIOS: > > commit 5a7730db57ab0715223421e65b54fb50d6fefe5c > Author: Asias He > Date: Fri Mar 15 09:45:15 2013 +0800 >

Re: [Qemu-devel] qemu seabios issue with vhost-scsi

2013-05-22 Thread Asias He
On Wed, May 22, 2013 at 05:36:08PM -0700, Badari wrote: > Hi, > > While testing vhost-scsi in the current qemu git, ran into an earlier issue > with seabios. I had to disable scsi support in seabios to get it working. > > I was hoping this issue got resolved when vhost-scsi support got > merged i

Re: [Qemu-devel] Bug in SeaBIOS virtio-ring handling bug with vhost-scsi-pci

2013-04-08 Thread Asias He
On Mon, Apr 08, 2013 at 09:09:54PM -0700, Nicholas A. Bellinger wrote: > Ping. > > Any ideas on this one..? It seems like this bug would be effecting > non vhost-scsi-pci code as well.. Nicholas, where is the latest v3 code. Can you push it to your tree. > --nab > > On Thu, 2013-04-04 at 19:5

Re: [Qemu-devel] [PATCH-v2 0/2] Add support for vhost-scsi-pci

2013-03-28 Thread Asias He
On Thu, Mar 28, 2013 at 11:48:59PM -0700, Nicholas A. Bellinger wrote: > On Fri, 2013-03-29 at 14:39 +0800, Asias He wrote: > > On Fri, Mar 29, 2013 at 01:08:14AM +, Nicholas A. Bellinger wrote: > > > From: Nicholas Bellinger > > > > > > Hi QEMU folks, >

Re: [Qemu-devel] [PATCH-v2 0/2] Add support for vhost-scsi-pci

2013-03-28 Thread Asias He
On Fri, Mar 29, 2013 at 01:08:14AM +, Nicholas A. Bellinger wrote: > From: Nicholas Bellinger > > Hi QEMU folks, > > The following is the patch-v2 series to support vhost-scsi-pci within > the upstream QEMU tree. > > This includes the refactoring of existing virtio-scsi code from Paolo > to

Re: [Qemu-devel] [PATCH] virtio-blk: Set default serial id

2013-03-20 Thread Asias He
On Wed, Mar 20, 2013 at 08:52:57AM +0100, Stefan Hajnoczi wrote: > On Wed, Mar 20, 2013 at 01:56:08PM +0800, Asias He wrote: > > If user does not specify a serial id, e.g. > > > >-device virtio-blk-pci,serial="serial_id" > > or > >-drive seria

[Qemu-devel] [PATCH] virtio-blk: Set default serial id

2013-03-19 Thread Asias He
If user does not specify a serial id, e.g. -device virtio-blk-pci,serial="serial_id" or -drive serial="serial_id" no serial id will be assigned. Add a default serial id in this case to help identifying the disk in guest. Signed-off-by: Asias He --- hw/virtio-blk.c

Re: [Qemu-devel] [PATCH V3 WIP 3/3] disable vhost_verify_ring_mappings check

2013-03-19 Thread Asias He
On Tue, Mar 19, 2013 at 09:40:57AM +0100, Stefan Hajnoczi wrote: > On Tue, Mar 19, 2013 at 08:34:45AM +0800, Asias He wrote: > > --- > > hw/vhost.c | 2 ++ > > 1 file changed, 2 insertions(+) > > > > diff --git a/hw/vhost.c b/hw/vhost.c > > index 4d6ae

[Qemu-devel] [PATCH V3 WIP 1/3] virtio-scsi: create VirtIOSCSICommon

2013-03-18 Thread Asias He
From: Paolo Bonzini Signed-off-by: Paolo Bonzini --- hw/virtio-scsi.c | 199 +-- hw/virtio-scsi.h | 127 include/qemu/osdep.h | 4 ++ 3 files changed, 180 insertions(+), 150 deletions(-) diff --git a/hw/

[Qemu-devel] [PATCH V3 WIP 2/3] vhost-scsi: new device supporting the tcm_vhost Linux kernel module

2013-03-18 Thread Asias He
e8476d,event_idx=off ... Signed-off-by: Paolo Bonzini Signed-off-by: Nicholas Bellinger Signed-off-by: Asias He --- configure | 15 ++- hw/Makefile.objs | 5 +- hw/s390x/s390-virtio-bus.c | 35 +++ hw/vhost-scsi.c

[Qemu-devel] [PATCH V3 WIP 3/3] disable vhost_verify_ring_mappings check

2013-03-18 Thread Asias He
--- hw/vhost.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/vhost.c b/hw/vhost.c index 4d6aee3..0c52ec4 100644 --- a/hw/vhost.c +++ b/hw/vhost.c @@ -421,10 +421,12 @@ static void vhost_set_memory(MemoryListener *listener, return; } +#if 0 if (dev->started) {

Re: [Qemu-devel] [PATCH 0/2] Fix booting tcm_vhost + seabios

2013-03-18 Thread Asias He
On Mon, Mar 18, 2013 at 02:26:14PM -0700, Nicholas A. Bellinger wrote: > On Fri, 2013-03-15 at 09:45 +0800, Asias He wrote: > > Asias He (2): > > virtio-scsi: Set _DRIVER_OK flag before scsi target scanning > > virtio-scsi: Pack struct virtio_scsi_{req_cmd,resp_cmd} > &

[Qemu-devel] [PATCH V3 WIP 0/3] vhost-scsi: new device supporting the tcm_vhost Linux kernel module

2013-03-18 Thread Asias He
This is on top of Paolo and Nick's work. Current status: Basically, tcm_vhost + seabios works now. We still have one more issue, vhost_verify_ring_mappings fails. The hotplug also works with the latest tcm_vhost.ko hotplug patch. Asias He (1): disable vhost_verify_ring_mappings check

[Qemu-devel] [PATCH 2/2] virtio-scsi: Pack struct virtio_scsi_{req_cmd, resp_cmd}

2013-03-14 Thread Asias He
Device needs the exact size of these data structure. Prevent padding. This fixes guest hang when booting seabios + tcm_vhost. Signed-off-by: Asias He --- src/virtio-scsi.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/virtio-scsi.h b/src/virtio-scsi.h index

[Qemu-devel] [PATCH 1/2] virtio-scsi: Set _DRIVER_OK flag before scsi target scanning

2013-03-14 Thread Asias He
Before we start scsi target scanning, we need to set the VIRTIO_CONFIG_S_DRIVER_OK flag so the device can do setup properly. This fix a bug when booting tcm_vhost with seabios. Signed-off-by: Asias He Acked-by: Paolo Bonzini --- src/virtio-scsi.c | 5 +++-- 1 file changed, 3 insertions(+), 2

[Qemu-devel] [PATCH 0/2] Fix booting tcm_vhost + seabios

2013-03-14 Thread Asias He
Asias He (2): virtio-scsi: Set _DRIVER_OK flag before scsi target scanning virtio-scsi: Pack struct virtio_scsi_{req_cmd,resp_cmd} src/virtio-scsi.c | 5 +++-- src/virtio-scsi.h | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) -- 1.8.1.4

Re: [Qemu-devel] [PATCH V2 WIP 0/2] vhost-scsi: new device supporting the tcm_vhost Linux kernel module

2013-03-14 Thread Asias He
On Thu, Mar 14, 2013 at 11:00:24AM +0100, Paolo Bonzini wrote: > > >> --- 8 ---> seabios patch: > >> diff --git a/src/virtio-scsi.c b/src/virtio-scsi.c > >> index 879ddfb..4de1255 100644 > >> --- a/src/virtio-scsi.c > >> +++ b/src/virtio-scsi.c > >> @@ -147,6 +147,9 @@ init

Re: [Qemu-devel] [PATCH V2 WIP 0/2] vhost-scsi: new device supporting the tcm_vhost Linux kernel module

2013-03-14 Thread Asias He
On Thu, Mar 14, 2013 at 11:46:43AM +0200, Michael S. Tsirkin wrote: > On Thu, Mar 14, 2013 at 05:25:42PM +0800, Asias He wrote: > > On Thu, Mar 14, 2013 at 12:25:14PM +0800, Asias He wrote: > > > On Tue, Mar 12, 2013 at 02:29:40PM +0800, Asias He wrote: > > > > This

Re: [Qemu-devel] [PATCH V2 WIP 0/2] vhost-scsi: new device supporting the tcm_vhost Linux kernel module

2013-03-14 Thread Asias He
On Thu, Mar 14, 2013 at 12:25:14PM +0800, Asias He wrote: > On Tue, Mar 12, 2013 at 02:29:40PM +0800, Asias He wrote: > > This is on top of Paolo and Nick's work. > > > > Current status: > > Works now (guest boots fine, no hang any more) with seabios's virt

Re: [Qemu-devel] [PATCH V2 WIP 0/2] vhost-scsi: new device supporting the tcm_vhost Linux kernel module

2013-03-13 Thread Asias He
On Tue, Mar 12, 2013 at 02:29:40PM +0800, Asias He wrote: > This is on top of Paolo and Nick's work. > > Current status: > Works now (guest boots fine, no hang any more) with seabios's virtio-scsi > disabled. > Rebased to latest qemu.org/master > Change detai

Re: [Qemu-devel] [PATCH V2 WIP 2/2] vhost-scsi: new device supporting the tcm_vhost Linux kernel module

2013-03-12 Thread Asias He
On Tue, Mar 12, 2013 at 09:20:24AM +0100, Stefan Hajnoczi wrote: > On Tue, Mar 12, 2013 at 02:29:42PM +0800, Asias He wrote: > > diff --git a/hw/virtio-pci.c b/hw/virtio-pci.c > > index 39c1966..4a97ca1 100644 > > --- a/hw/virtio-pci.c > > +++ b/hw/virtio-pci.c > &

[Qemu-devel] [PATCH V2 WIP 2/2] vhost-scsi: new device supporting the tcm_vhost Linux kernel module

2013-03-11 Thread Asias He
bios.git make menuconfig, disable virtio-scsi support in seabios make cp out/bios.bin /usr/share/qemu/bios.bin qemu -device vhost-scsi-pci,wwpn=naa.6001405bd4e8476d,event_idx=off ... Signed-off-by: Paolo Bonzini Signed-off-by: Nicholas Bellinger Signed-off-by: Asias He ---

[Qemu-devel] [PATCH V2 WIP 1/2] virtio-scsi: create VirtIOSCSICommon

2013-03-11 Thread Asias He
From: Paolo Bonzini Signed-off-by: Paolo Bonzini --- hw/virtio-scsi.c | 199 +-- hw/virtio-scsi.h | 127 include/qemu/osdep.h | 4 ++ 3 files changed, 180 insertions(+), 150 deletions(-) diff --git a/hw/

[Qemu-devel] [PATCH V2 WIP 0/2] vhost-scsi: new device supporting the tcm_vhost Linux kernel module

2013-03-11 Thread Asias He
This is on top of Paolo and Nick's work. Current status: Works now (guest boots fine, no hang any more) with seabios's virtio-scsi disabled. Rebased to latest qemu.org/master Change details are in commit log. TODO: Make seabios happy. Paolo Bonzini (2): virtio-scsi: create VirtIOSCSICommon

Re: [Qemu-devel] [PATCH WIP 0/4] vhost-scsi: new device supporting the tcm_vhost Linux kernel module

2013-02-05 Thread Asias He
On 02/03/2013 08:38 PM, Michael S. Tsirkin wrote: > On Fri, Feb 01, 2013 at 11:46:28AM +0800, Asias He wrote: >> On 01/31/2013 07:12 PM, Michael S. Tsirkin wrote: >>> On Wed, Jan 30, 2013 at 05:41:22PM +0100, Paolo Bonzini wrote: >>>> Ok, so here is my attempt at a vh

Re: [Qemu-devel] [PATCH WIP 0/4] vhost-scsi: new device supporting the tcm_vhost Linux kernel module

2013-01-31 Thread Asias He
On 01/31/2013 07:12 PM, Michael S. Tsirkin wrote: > On Wed, Jan 30, 2013 at 05:41:22PM +0100, Paolo Bonzini wrote: >> Ok, so here is my attempt at a vhost-scsi device. I'm creating an >> entirely separate device, with the common parts of virtio-scsi and >> vhost-scsi (actually little more than the

Re: [Qemu-devel] [PATCH 3/3] virtio-pci: don't poll masked vectors

2012-12-19 Thread Asias He
On 12/18/2012 08:39 PM, Michael S. Tsirkin wrote: > At the moment, when irqfd is in use but a vector is masked, > qemu will poll it and handle vector masks in userspace. > Since almost no one ever looks at the pending bits, > it is better to defer this until pending bits > are actually read. > Impl

Re: [Qemu-devel] [PATCH 0/3] virtio: don't poll masked vectors with irqfd

2012-12-19 Thread Asias He
On 12/18/2012 08:39 PM, Michael S. Tsirkin wrote: > At the moment when vector is masked virtio will poll it > in userspace, even if it is handled by irqfd. > This is done in order to update pending bits, but > it's not really required until someone reads the pending bits. > On the other hand this r

Re: [Qemu-devel] [PATCH] kvm: do not flush after deleting gsi

2012-12-13 Thread Asias He
Hello Jan, On 12/13/2012 11:34 PM, Jan Kiszka wrote: > On 2012-12-13 05:55, Asias He wrote: >> Hello Michael, >> >> On 12/12/2012 06:48 PM, Michael S. Tsirkin wrote: >>> Deleting a GSI isn't necessary: it is enough >>> to stop using it. Delay flush u

Re: [Qemu-devel] [PATCH] kvm: do not flush after deleting gsi

2012-12-12 Thread Asias He
Hello Michael, On 12/12/2012 06:48 PM, Michael S. Tsirkin wrote: > Deleting a GSI isn't necessary: it is enough > to stop using it. Delay flush until an entry is used. > > Signed-off-by: Michael S. Tsirkin > --- > kvm-all.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/kvm-all.c b/

Re: [Qemu-devel] [PATCH 0/7] virtio: virtio-blk data plane

2012-11-20 Thread Asias He
On 11/21/2012 02:44 PM, Stefan Hajnoczi wrote: > On Wed, Nov 21, 2012 at 7:42 AM, Asias He wrote: >> On 11/21/2012 01:39 PM, Asias He wrote: >>> On 11/20/2012 08:25 PM, Stefan Hajnoczi wrote: >>>> On Tue, Nov 20, 2012 at 1:21 PM, Stefan Hajnoczi >>>>

Re: [Qemu-devel] [PATCH 0/7] virtio: virtio-blk data plane

2012-11-20 Thread Asias He
On 11/21/2012 01:39 PM, Asias He wrote: > On 11/20/2012 08:25 PM, Stefan Hajnoczi wrote: >> On Tue, Nov 20, 2012 at 1:21 PM, Stefan Hajnoczi wrote: >>> On Tue, Nov 20, 2012 at 10:02 AM, Asias He wrote: >>>> Hello Stefan, >>>> >>>> On 11/15/2

Re: [Qemu-devel] [PATCH 0/7] virtio: virtio-blk data plane

2012-11-20 Thread Asias He
On 11/20/2012 08:25 PM, Stefan Hajnoczi wrote: > On Tue, Nov 20, 2012 at 1:21 PM, Stefan Hajnoczi wrote: >> On Tue, Nov 20, 2012 at 10:02 AM, Asias He wrote: >>> Hello Stefan, >>> >>> On 11/15/2012 11:18 PM, Stefan Hajnoczi wrote: >>>> This series

Re: [Qemu-devel] [PATCH 0/7] virtio: virtio-blk data plane

2012-11-20 Thread Asias He
On 11/20/2012 08:21 PM, Stefan Hajnoczi wrote: > On Tue, Nov 20, 2012 at 10:02 AM, Asias He wrote: >> Hello Stefan, >> >> On 11/15/2012 11:18 PM, Stefan Hajnoczi wrote: >>> This series adds the -device virtio-blk-pci,x-data-plane=on property that >>> enab

Re: [Qemu-devel] [PATCH 0/7] virtio: virtio-blk data plane

2012-11-20 Thread Asias He
On 11/20/2012 11:03 PM, Khoa Huynh wrote: > Asias He wrote on 11/20/2012 03:02:07 AM: > >> From: Asias He >> To: Stefan Hajnoczi , >> Cc: qemu-devel@nongnu.org, Anthony Liguori/Austin/IBM@IBMUS, Paolo >> Bonzini , Kevin Wolf , >> "Michael S. Tsirkin"

Re: [Qemu-devel] [PATCH 0/7] virtio: virtio-blk data plane

2012-11-20 Thread Asias He
Hello Stefan, On 11/15/2012 11:18 PM, Stefan Hajnoczi wrote: > This series adds the -device virtio-blk-pci,x-data-plane=on property that > enables a high performance I/O codepath. A dedicated thread is used to > process > virtio-blk requests outside the global mutex and without going through the

Re: [Qemu-devel] [PATCH 0/5] vhost-scsi: Add support for host virtualized target

2012-09-10 Thread Asias He
Hello Nicholas, On 09/07/2012 02:48 PM, Nicholas A. Bellinger wrote: > From: Nicholas Bellinger > > Hello Anthony & Co, > > This is the fourth installment to add host virtualized target support for > the mainline tcm_vhost fabric driver using Linux v3.6-rc into QEMU 1.3.0-rc. > > The series is

Re: [Qemu-devel] IO performance test on the tcm-vhost scsi

2012-06-14 Thread Asias He
On 06/14/2012 08:07 PM, Stefan Hajnoczi wrote: On Thu, Jun 14, 2012 at 05:45:22PM +0800, Cong Meng wrote: On Thu, 2012-06-14 at 09:30 +0100, Stefan Hajnoczi wrote: On Wed, Jun 13, 2012 at 11:13 AM, mengcong wrote: seq-readseq-write rand-read rand-write