Re: [RFC 0/9] vhost-scsi: Add support for host virtualized target

2012-07-24 Thread Zhi Yong Wu
ed, 430 insertions(+), 8 deletions(-) > create mode 100644 hw/vhost-scsi.c > create mode 100644 hw/vhost-scsi.h > > -- > 1.7.2.5 > > -- > You received this message because you are subscribed to the Google Groups > "Linux-iSCSI.org Target Development" group. >

Re: KVM call agenda for 2012-11-12

2012-11-13 Thread Zhi Yong Wu
t; in > the body of a message to majord...@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html -- Regards, Zhi Yong Wu -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majord...@vger.kernel.org M

Re: [Qemu-devel] [RFC]QEMU disk I/O limits

2011-05-31 Thread Zhi Yong Wu
On Tue, May 31, 2011 at 03:55:49PM -0400, Vivek Goyal wrote: >Date: Tue, 31 May 2011 15:55:49 -0400 >From: Vivek Goyal >To: Zhi Yong Wu >Cc: kw...@redhat.com, aligu...@us.ibm.com, stefa...@linux.vnet.ibm.com, > kvm@vger.kernel.org, guijianf...@cn.fujitsu.com, > qem

Re: [Qemu-devel] [RFC]QEMU disk I/O limits

2011-05-31 Thread Zhi Yong Wu
On Tue, May 31, 2011 at 03:55:49PM -0400, Vivek Goyal wrote: >Date: Tue, 31 May 2011 15:55:49 -0400 >From: Vivek Goyal >To: Zhi Yong Wu >Cc: kw...@redhat.com, aligu...@us.ibm.com, stefa...@linux.vnet.ibm.com, > kvm@vger.kernel.org, guijianf...@cn.fujitsu.com, > qem

Re: [Qemu-devel] [RFC]QEMU disk I/O limits

2011-06-01 Thread Zhi Yong Wu
On Wed, Jun 01, 2011 at 09:32:32AM -0400, Vivek Goyal wrote: >Date: Wed, 1 Jun 2011 09:32:32 -0400 >From: Vivek Goyal >To: Zhi Yong Wu >Cc: kw...@redhat.com, stefa...@linux.vnet.ibm.com, kvm@vger.kernel.org, > guijianf...@cn.fujitsu.com, qemu-de...@nongnu.org, w

Re: [Qemu-devel] [RFC]QEMU disk I/O limits

2011-06-01 Thread Zhi Yong Wu
On Thu, Jun 02, 2011 at 09:17:06AM +0300, Sasha Levin wrote: >Date: Thu, 02 Jun 2011 09:17:06 +0300 >From: Sasha Levin >To: Zhi Yong Wu >Cc: qemu-de...@nongnu.org, kvm@vger.kernel.org, kw...@redhat.com, > aligu...@us.ibm.com, herb...@gondor.apana.org.au, > guijianf

Re: [Qemu-devel] [RFC]QEMU disk I/O limits

2011-06-02 Thread Zhi Yong Wu
On Thu, Jun 02, 2011 at 10:15:02AM +0300, Sasha Levin wrote: >Date: Thu, 02 Jun 2011 10:15:02 +0300 >From: Sasha Levin >To: Zhi Yong Wu >Cc: kw...@redhat.com, aligu...@us.ibm.com, herb...@gondor.apana.org.au, > kvm@vger.kernel.org, guijianf...@cn.fujitsu.com, > qem

Re: [Qemu-devel] [RFC]QEMU disk I/O limits

2011-06-02 Thread Zhi Yong Wu
On Thu, Jun 2, 2011 at 5:33 PM, Michal Suchanek wrote: > On 1 June 2011 05:12, Zhi Yong Wu wrote: >> On Tue, May 31, 2011 at 03:55:49PM -0400, Vivek Goyal wrote: >>>Date: Tue, 31 May 2011 15:55:49 -0400 >>>From: Vivek Goyal >>>To: Zhi Yong Wu >>>Cc:

[PATCH v1 1/1] Submit the codes for QEMU disk I/O limits.

2011-07-22 Thread Zhi Yong Wu
Signed-off-by: Zhi Yong Wu --- Makefile.objs |2 +- block.c | 248 + block.h |1 - block/blk-queue.c | 99 + block/blk-queue.h | 73 block_int.h | 21

[PATCH v1 0/1] The draft of the codes for QEMU disk I/O limits

2011-07-22 Thread Zhi Yong Wu
(6) only write iops limit -drive iops_wr=xxxin ios/s (7) the combination of some limits. -drive bps=xxx,iops=xxx Known Limitations: (1) #1 can not coexist with #2, #3 (2) #4 can not coexist with #5, #6 Zhi Yong Wu (1): Submit the codes for QEMU disk I/O limits. Makefile.objs

[PATCH v1 0/1] The draft of the codes for QEMU disk I/O limits

2011-07-24 Thread Zhi Yong Wu
(6) only write iops limit -drive iops_wr=xxxin ios/s (7) the combination of some limits. -drive bps=xxx,iops=xxx Known Limitations: (1) #1 can not coexist with #2, #3 (2) #4 can not coexist with #5, #6 Zhi Yong Wu (1): Submit the codes for QEMU disk I/O limits. Makefile.objs

[PATCH v1 1/1] Submit the codes for QEMU disk I/O limits.

2011-07-24 Thread Zhi Yong Wu
Signed-off-by: Zhi Yong Wu --- Makefile.objs |2 +- block.c | 248 + block.h |1 - block/blk-queue.c | 99 + block/blk-queue.h | 73 block_int.h | 21

Re: [PATCH v1 1/1] Submit the codes for QEMU disk I/O limits.

2011-07-24 Thread Zhi Yong Wu
On Fri, Jul 22, 2011 at 6:54 PM, Stefan Hajnoczi wrote: > On Fri, Jul 22, 2011 at 10:20 AM, Zhi Yong Wu > wrote: >> +static void bdrv_block_timer(void *opaque) >> +{ >> +    BlockDriverState *bs = opaque; >> +    BlockQueue *queue = bs->block_q

Re: [PATCH v1 1/1] Submit the codes for QEMU disk I/O limits.

2011-07-24 Thread Zhi Yong Wu
On Mon, Jul 25, 2011 at 1:40 PM, Stefan Hajnoczi wrote: > On Mon, Jul 25, 2011 at 5:25 AM, Zhi Yong Wu wrote: >> On Fri, Jul 22, 2011 at 6:54 PM, Stefan Hajnoczi wrote: >>> On Fri, Jul 22, 2011 at 10:20 AM, Zhi Yong Wu >>> wrote: >>>> +st

Re: [PATCH v1 1/1] Submit the codes for QEMU disk I/O limits.

2011-07-25 Thread Zhi Yong Wu
On Fri, Jul 22, 2011 at 6:54 PM, Stefan Hajnoczi wrote: > On Fri, Jul 22, 2011 at 10:20 AM, Zhi Yong Wu > wrote: >> +static void bdrv_block_timer(void *opaque) >> +{ >> +    BlockDriverState *bs = opaque; >> +    BlockQueue *queue = bs->block_q

[PATCH 1/1] The codes V2 for QEMU disk I/O limits.

2011-07-26 Thread Zhi Yong Wu
Welcome to give me your comments, thanks. Signed-off-by: Zhi Yong Wu --- Makefile.objs |2 +- block.c | 288 +++-- block.h |1 - block/blk-queue.c | 116 + block/blk-queue.h | 70

[PATCH 0/1] The intro for QEMU disk I/O limits

2011-07-26 Thread Zhi Yong Wu
iops_rd=xxxin ios/s (6) only write iops limit -drive iops_wr=xxxin ios/s (7) the combination of some limits. -drive bps=xxx,iops=xxx Known Limitations: (1) #1 can not coexist with #2, #3 (2) #4 can not coexist with #5, #6 Zhi Yong Wu (1): v2: The codes V2 for QEMU disk I

[PATCH v2 0/1] The intro for QEMU disk I/O limits

2011-07-26 Thread Zhi Yong Wu
iops_rd=xxxin ios/s (6) only write iops limit -drive iops_wr=xxxin ios/s (7) the combination of some limits. -drive bps=xxx,iops=xxx Known Limitations: (1) #1 can not coexist with #2, #3 (2) #4 can not coexist with #5, #6 Zhi Yong Wu (1): v2: The codes V2 for QEMU disk I

[PATCH v2 1/1] The codes V2 for QEMU disk I/O limits.

2011-07-26 Thread Zhi Yong Wu
Welcome to give me your comments, thanks. Signed-off-by: Zhi Yong Wu --- Makefile.objs |2 +- block.c | 288 +++-- block.h |1 - block/blk-queue.c | 116 + block/blk-queue.h | 70

Re: [PATCH v2 1/1] The codes V2 for QEMU disk I/O limits.

2011-07-27 Thread Zhi Yong Wu
On Wed, Jul 27, 2011 at 3:26 AM, Marcelo Tosatti wrote: > On Tue, Jul 26, 2011 at 04:59:06PM +0800, Zhi Yong Wu wrote: >> Welcome to give me your comments, thanks. >> >> Signed-off-by: Zhi Yong Wu >> --- >>  Makefile.objs     |    

Re: [Qemu-devel] [PATCH v2 1/1] The codes V2 for QEMU disk I/O limits.

2011-07-27 Thread Zhi Yong Wu
On Wed, Jul 27, 2011 at 8:58 PM, Stefan Hajnoczi wrote: > On Wed, Jul 27, 2011 at 11:17 AM, Zhi Yong Wu wrote: >> On Wed, Jul 27, 2011 at 3:26 AM, Marcelo Tosatti wrote: >>> On Tue, Jul 26, 2011 at 04:59:06PM +0800, Zhi Yong Wu wrote: >>>> Welcome to

Re: [PATCH v2 1/1] The codes V2 for QEMU disk I/O limits.

2011-07-27 Thread Zhi Yong Wu
On Wed, Jul 27, 2011 at 11:49 PM, Marcelo Tosatti wrote: > On Wed, Jul 27, 2011 at 06:17:15PM +0800, Zhi Yong Wu wrote: >> >> +        wait_time = 1; >> >> +    } >> >> + >> >> +    wait_time = wait_time + (slice_time - elapsed_time); >

Re: [Qemu-devel] [PATCH v2 1/1] The codes V2 for QEMU disk I/O limits.

2011-07-27 Thread Zhi Yong Wu
On Wed, Jul 27, 2011 at 8:58 PM, Stefan Hajnoczi wrote: > On Wed, Jul 27, 2011 at 11:17 AM, Zhi Yong Wu wrote: >> On Wed, Jul 27, 2011 at 3:26 AM, Marcelo Tosatti wrote: >>> On Tue, Jul 26, 2011 at 04:59:06PM +0800, Zhi Yong Wu wrote: >>>> Welcome to

Re: [Qemu-devel] [PATCH v2 1/1] The codes V2 for QEMU disk I/O limits.

2011-07-28 Thread Zhi Yong Wu
On Thu, Jul 28, 2011 at 4:25 PM, Stefan Hajnoczi wrote: > On Thu, Jul 28, 2011 at 9:20 AM, Stefan Hajnoczi wrote: >> On Thu, Jul 28, 2011 at 6:43 AM, Zhi Yong Wu wrote: >>> On Wed, Jul 27, 2011 at 8:58 PM, Stefan Hajnoczi wrote: >>>> On Wed, Jul 27, 2011 a

[PATCH v3 0/2] The intro for QEMU disk I/O limits

2011-07-28 Thread Zhi Yong Wu
as 511 bytes/s, this VM will hang up. We are considering how to handle this senario. Zhi Yong Wu (2): v3: Added the code for extending slice time, and modified the method to compute wait time for the timer. The command line support for QEMU disk I/O limits The implement of block queue

[PATCH v3 1/2] The command line support for QEMU disk I/O limits

2011-07-28 Thread Zhi Yong Wu
Signed-off-by: Zhi Yong Wu --- Makefile.objs |2 +- blockdev.c | 22 ++ qemu-config.c | 24 qemu-option.c | 17 + qemu-option.h |1 + qemu-options.hx |1 + 6 files changed, 66 insertions(+), 1 deletions

[PATCH v3 2/2] The implement of block queue, block timer, and I/O throttling algorithm

2011-07-28 Thread Zhi Yong Wu
speed will slightly bigger than the limits. For these problems, if you have nice thought, pls let us know.:) Signed-off-by: Zhi Yong Wu --- block.c | 302 +-- block.h |1 - block_int.h | 29 ++ 3 files changed, 323 insert

Re: [PATCH v2 1/1] The codes V2 for QEMU disk I/O limits.

2011-07-28 Thread Zhi Yong Wu
On Thu, Jul 28, 2011 at 10:42 PM, Marcelo Tosatti wrote: > On Thu, Jul 28, 2011 at 12:24:48PM +0800, Zhi Yong Wu wrote: >> On Wed, Jul 27, 2011 at 11:49 PM, Marcelo Tosatti >> wrote: >> > On Wed, Jul 27, 2011 at 06:17:15PM +0800, Zhi Yong Wu wrote: >>

[PATCH v4 0/3] The intro for QEMU disk I/O limits

2011-07-31 Thread Zhi Yong Wu
/s, this VM will hang up. We are considering how to handle this senario. Zhi Yong Wu (3): v4: fix memory leaking based on ryan's feedback. The cmd support for QEMU block I/O throttling The support for block queue The support for queue timer and throttling algorithm v3: Added the

[PATCH v4 1/3] The cmd support for QEMU block I/O throttling

2011-07-31 Thread Zhi Yong Wu
Signed-off-by: Zhi Yong Wu --- Makefile.objs |2 +- blockdev.c | 22 ++ qemu-config.c | 24 qemu-option.c | 17 + qemu-option.h |1 + qemu-options.hx |1 + 6 files changed, 66 insertions(+), 1 deletions

[PATCH v4 2/3] The support for block queue

2011-07-31 Thread Zhi Yong Wu
Signed-off-by: Zhi Yong Wu --- block/blk-queue.c | 122 + block/blk-queue.h | 71 +++ 2 files changed, 193 insertions(+), 0 deletions(-) create mode 100644 block/blk-queue.c create mode 100644 block/blk-queue.h

[PATCH v4 3/3] The support for queue timer and throttling algorithm

2011-07-31 Thread Zhi Yong Wu
he result speed will slightly bigger than the limits. For these problems, if you have nice thought, pls let us know.:) Signed-off-by: Zhi Yong Wu --- block.c | 302 +-- block.h |1 - block_int.h | 29 ++ 3 files changed,

Re: [PATCH v3 0/2] The intro for QEMU disk I/O limits

2011-07-31 Thread Zhi Yong Wu
On Mon, Aug 1, 2011 at 3:09 AM, Ryan Harper wrote: > * Zhi Yong Wu [2011-07-28 05:53]: >> The main goal of the patch is to effectively cap the disk I/O speed or >> counts of one single VM.It is only one draft, so it unavoidably has some >> drawbacks, if you catch the

[PATCH v1] qmp/hmp: add block_set_io_throttle and enhance query_block

2011-08-03 Thread Zhi Yong Wu
-by: Zhi Yong Wu --- block.c | 155 ++ block.h |5 ++ block_int.h |2 + blockdev.c | 86 ++- blockdev.h |2 + hmp-commands.hx | 15 + qerror.c|8

Re: [Qemu-devel] [PATCH v1] qmp/hmp: add block_set_io_throttle and enhance query_block

2011-08-04 Thread Zhi Yong Wu
On Thu, Aug 4, 2011 at 9:07 PM, Stefan Hajnoczi wrote: > On Thu, Aug 4, 2011 at 5:34 AM, Zhi Yong Wu wrote: >> @@ -1387,6 +1422,11 @@ void bdrv_set_io_limits(BlockDriverState *bs, >>  { >>     memset(&bs->io_limits, 0, sizeof(BlockIOLimit)); >>     bs-&

Re: [Qemu-devel] [PATCH v4 0/3] The intro for QEMU disk I/O limits

2011-08-04 Thread Zhi Yong Wu
On Tue, Aug 2, 2011 at 4:06 AM, Ryan Harper wrote: > * Zhi Yong Wu [2011-08-01 01:30]: >> The main goal of the patch is to effectively cap the disk I/O speed or >> counts of one single VM.It is only one draft, so it unavoidably has some >> drawbacks, if you catch the

Re: [Qemu-devel] [PATCH v4 3/3] The support for queue timer and throttling algorithm

2011-08-04 Thread Zhi Yong Wu
On Tue, Aug 2, 2011 at 4:39 AM, Ryan Harper wrote: > * Zhi Yong Wu [2011-08-01 01:32]: >> Note: >>       1.) When bps/iops limits are specified to a small value such as 511 >> bytes/s, this VM will hang up. We are considering how to handle this senario. >>       2.)

Re: [Qemu-devel] [PATCH v4 2/3] The support for block queue

2011-08-04 Thread Zhi Yong Wu
On Tue, Aug 2, 2011 at 4:21 AM, Ryan Harper wrote: > * Zhi Yong Wu [2011-08-01 01:30]: > >> +static AIOPool block_queue_pool = { >> +    .aiocb_size         = sizeof(struct BlockDriverAIOCB), >> +    .cancel             = qemu_block_queue_cancel, >

Re: [PATCH] vhost-net: add module alias (v2)

2012-01-11 Thread Zhi Yong Wu
   255                     Reserved for MISC_DYNAMIC_MINOR > > > > ___ > Virtualization mailing list > virtualizat...@lists.linux-foundation.org > https://lists.linuxfoundation.org/mailman/listinfo/virtualization -- Regards, Zhi Yong Wu -- 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

VMXON region vs VMCS region?

2012-01-30 Thread Zhi Yong Wu
HI, Can anyone let me know know the difference between VMXON region and VMCS region? relationship? It will be appreciated if you can make some comments. -- Regards, Zhi Yong Wu -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message

Re: VMXON region vs VMCS region?

2012-01-31 Thread Zhi Yong Wu
On Tue, Jan 31, 2012 at 8:29 PM, Orit Wasserman wrote: > On 01/31/2012 05:35 AM, Zhi Yong Wu wrote: >> HI, >> >> Can anyone let me know know the difference  between VMXON region and >> VMCS region? relationship? >> > > There is no relationship between them

Re: Adding an IPMI BMC device to KVM

2012-05-07 Thread Zhi Yong Wu
> > Thanks, > > -corey > -- > 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 -- Regards, Zhi Yong Wu -- 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

Re: [PATCH v2 13/15] net: Remove obsolete vlan info

2012-05-23 Thread Zhi Yong Wu
On Wed, May 23, 2012 at 11:41 PM, Jan Kiszka wrote: > On 2012-05-23 12:14, zwu.ker...@gmail.com wrote: >> From: Zhi Yong Wu >> >> Signed-off-by: Zhi Yong Wu >> --- >>  net.c |    1 - >>  1 files changed, 0 insertions(+), 1 deletions(-) >> >> d

Re: [PATCH v2 15/15] net: invoke qemu_can_send_packet only before net queue sending function

2012-05-23 Thread Zhi Yong Wu
On Thu, May 24, 2012 at 12:00 AM, Paolo Bonzini wrote: > Il 23/05/2012 17:14, zwu.ker...@gmail.com ha scritto: >> From: Zhi Yong Wu >> >> Signed-off-by: Zhi Yong Wu >> --- >>  net/queue.c      |    4 ++-- >>  net/slirp.c      |    7 --- >&g

Re: [PATCH v2 15/15] net: invoke qemu_can_send_packet only before net queue sending function

2012-05-24 Thread Zhi Yong Wu
On Thu, May 24, 2012 at 6:07 PM, Paolo Bonzini wrote: > Il 24/05/2012 06:05, Zhi Yong Wu ha scritto: >> On Thu, May 24, 2012 at 12:00 AM, Paolo Bonzini wrote: >>> Il 23/05/2012 17:14, zwu.ker...@gmail.com ha scritto: >>>> From: Zhi Yong Wu >&g

Re: [PATCH v2 13/15] net: Remove obsolete vlan info

2012-05-24 Thread Zhi Yong Wu
On Thu, May 24, 2012 at 8:09 PM, Jan Kiszka wrote: > On 2012-05-23 23:42, Zhi Yong Wu wrote: >> On Wed, May 23, 2012 at 11:41 PM, Jan Kiszka wrote: >>> On 2012-05-23 12:14, zwu.ker...@gmail.com wrote: >>>> From: Zhi Yong Wu >>>> >>>> S

Re: [PATCH v2 13/15] net: Remove obsolete vlan info

2012-05-24 Thread Zhi Yong Wu
On Thu, May 24, 2012 at 8:09 PM, Jan Kiszka wrote: > On 2012-05-23 23:42, Zhi Yong Wu wrote: >> On Wed, May 23, 2012 at 11:41 PM, Jan Kiszka wrote: >>> On 2012-05-23 12:14, zwu.ker...@gmail.com wrote: >>>> From: Zhi Yong Wu >>>> >>>> S

Re: [PATCH v2 13/15] net: Remove obsolete vlan info

2012-05-24 Thread Zhi Yong Wu
On Thu, May 24, 2012 at 8:09 PM, Jan Kiszka wrote: > On 2012-05-23 23:42, Zhi Yong Wu wrote: >> On Wed, May 23, 2012 at 11:41 PM, Jan Kiszka wrote: >>> On 2012-05-23 12:14, zwu.ker...@gmail.com wrote: >>>> From: Zhi Yong Wu >>>> >>>> S

Re: [PATCH v2 13/15] net: Remove obsolete vlan info

2012-05-24 Thread Zhi Yong Wu
On Thu, May 24, 2012 at 9:30 PM, Jan Kiszka wrote: > On 2012-05-24 09:27, Zhi Yong Wu wrote: >> On Thu, May 24, 2012 at 8:09 PM, Jan Kiszka wrote: >>> On 2012-05-23 23:42, Zhi Yong Wu wrote: >>>> On Wed, May 23, 2012 at 11:41 PM, Jan Kiszka >>>>

Re: [PATCH v2 13/15] net: Remove obsolete vlan info

2012-05-24 Thread Zhi Yong Wu
On Thu, May 24, 2012 at 9:33 PM, Jan Kiszka wrote: > On 2012-05-24 09:34, Zhi Yong Wu wrote: >> On Thu, May 24, 2012 at 8:09 PM, Jan Kiszka wrote: >>> On 2012-05-23 23:42, Zhi Yong Wu wrote: >>>> On Wed, May 23, 2012 at 11:41 PM, Jan Kiszka >>>>

Re: [PATCH v2 13/15] net: Remove obsolete vlan info

2012-05-24 Thread Zhi Yong Wu
ce Center Embedded Linux -- Regards, Zhi Yong Wu -- 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

Re: [PATCH v2 13/15] net: Remove obsolete vlan info

2012-05-24 Thread Zhi Yong Wu
On Thu, May 24, 2012 at 10:31 PM, Jan Kiszka wrote: > On 2012-05-24 11:27, Zhi Yong Wu wrote: >> On Thu, May 24, 2012 at 10:25 PM, Jan Kiszka wrote: >>> Something mangled your reply and made it unreadable. Please retry. >> Sorry. let it look like below. Do you

Re: [PATCH v2 13/15] net: Remove obsolete vlan info

2012-05-24 Thread Zhi Yong Wu
On Thu, May 24, 2012 at 10:43 PM, Jan Kiszka wrote: > On 2012-05-24 11:38, Zhi Yong Wu wrote: >> On Thu, May 24, 2012 at 10:31 PM, Jan Kiszka wrote: >>> On 2012-05-24 11:27, Zhi Yong Wu wrote: >>>> On Thu, May 24, 2012 at 10:25 PM, Jan Kiszka >>>> wro

Re: [PATCH v2 13/15] net: Remove obsolete vlan info

2012-05-24 Thread Zhi Yong Wu
On Thu, May 24, 2012 at 10:43 PM, Jan Kiszka wrote: > On 2012-05-24 11:38, Zhi Yong Wu wrote: >> On Thu, May 24, 2012 at 10:31 PM, Jan Kiszka wrote: >>> On 2012-05-24 11:27, Zhi Yong Wu wrote: >>>> On Thu, May 24, 2012 at 10:25 PM, Jan Kiszka >>>> wro

Re: [Qemu-devel] [PATCH v3 00/16] net: hub-based networking

2012-05-24 Thread Zhi Yong Wu
On Fri, May 25, 2012 at 4:53 AM, Luiz Capitulino wrote: > On Fri, 25 May 2012 01:59:06 +0800 > zwu.ker...@gmail.com wrote: > >> From: Zhi Yong Wu >> >> The patchset implements network hub stead of vlan. The main work was done by >> stefan, and i rebased it

Re: [PATCH v3 13/16] net: Make the monitor output more reasonable hub info

2012-05-24 Thread Zhi Yong Wu
On Fri, May 25, 2012 at 4:34 AM, Jan Kiszka wrote: > On 2012-05-24 14:59, zwu.ker...@gmail.com wrote: >> From: Zhi Yong Wu >> >> Signed-off-by: Zhi Yong Wu >> --- >>  net.c     |    7 ++- >>  net/hub.c |    2 +- >>  2 files changed, 7 insertions(

Re: [PATCH v3 16/16] hub: add the support for hub own flow control

2012-05-25 Thread Zhi Yong Wu
On Fri, May 25, 2012 at 3:04 PM, Paolo Bonzini wrote: > Il 24/05/2012 19:59, zwu.ker...@gmail.com ha scritto: >> From: Zhi Yong Wu >> >> Signed-off-by: Zhi Yong Wu >> --- >>  net/hub.c   |   35 --- >>  net/hub.h   |    

Re: [PATCH v3 16/16] hub: add the support for hub own flow control

2012-05-25 Thread Zhi Yong Wu
On Fri, May 25, 2012 at 3:04 PM, Paolo Bonzini wrote: > Il 24/05/2012 19:59, zwu.ker...@gmail.com ha scritto: >> From: Zhi Yong Wu >> >> Signed-off-by: Zhi Yong Wu >> --- >>  net/hub.c   |   35 --- >>  net/hub.h   |    

Re: [PATCH v3 16/16] hub: add the support for hub own flow control

2012-05-25 Thread Zhi Yong Wu
On Fri, May 25, 2012 at 3:04 PM, Paolo Bonzini wrote: > Il 24/05/2012 19:59, zwu.ker...@gmail.com ha scritto: >> From: Zhi Yong Wu >> >> Signed-off-by: Zhi Yong Wu >> --- >>  net/hub.c   |   35 --- >>  net/hub.h   |    

Re: [PATCH v3 16/16] hub: add the support for hub own flow control

2012-05-25 Thread Zhi Yong Wu
On Fri, May 25, 2012 at 6:08 PM, Paolo Bonzini wrote: > Il 25/05/2012 09:48, Zhi Yong Wu ha scritto: >>>>  static ssize_t net_hub_receive(NetHub *hub, NetHubPort *source_port, >>>>                                 const uint8_t *buf, size_t len) >>

Re: [PATCH v4 16/16] hub: add the support for hub own flow control

2012-05-25 Thread Zhi Yong Wu
On Fri, May 25, 2012 at 7:05 PM, Paolo Bonzini wrote: > Il 25/05/2012 12:52, zwu.ker...@gmail.com ha scritto: >> From: Zhi Yong Wu >> >> Only when all other hub port's *peer* .can_receive() all return 1, the >> source hub port .can_receive() return 1.

Re: [PATCH v3 13/16] net: Make the monitor output more reasonable hub info

2012-05-25 Thread Zhi Yong Wu
On Fri, May 25, 2012 at 4:34 AM, Jan Kiszka wrote: > On 2012-05-24 14:59, zwu.ker...@gmail.com wrote: >> From: Zhi Yong Wu >> >> Signed-off-by: Zhi Yong Wu >> --- >>  net.c     |    7 ++- >>  net/hub.c |    2 +- >>  2 files changed, 7 insertions(

Re: [PATCH v3 13/16] net: Make the monitor output more reasonable hub info

2012-05-25 Thread Zhi Yong Wu
On Fri, May 25, 2012 at 9:49 PM, Jan Kiszka wrote: > On 2012-05-25 09:00, Zhi Yong Wu wrote: >> On Fri, May 25, 2012 at 4:34 AM, Jan Kiszka wrote: >>> On 2012-05-24 14:59, zwu.ker...@gmail.com wrote: >>>> From: Zhi Yong Wu >>>> >>>> Signe

Re: [PATCH v4 13/16] net: Make "info network" output more readable info

2012-05-25 Thread Zhi Yong Wu
On Fri, May 25, 2012 at 10:17 PM, Jan Kiszka wrote: > On 2012-05-25 11:02, zwu.ker...@gmail.com wrote: >> From: Zhi Yong Wu >> >> Reviewed-by:   Jan Kiszka   > > Please don't put reviewed-by tags here before the reviewer had a chance > to look at the co

Re: [PATCH v4 13/16] net: Make "info network" output more readable info

2012-05-25 Thread Zhi Yong Wu
On Fri, May 25, 2012 at 10:40 PM, Jan Kiszka wrote: > On 2012-05-25 11:25, Zhi Yong Wu wrote: >>>> diff --git a/net/hub.c b/net/hub.c >>>> index 122de69..8c77d03 100644 >>>> --- a/net/hub.c >>>> +++ b/net/hub.c >>>> @@ -184,6

Re: [PATCH v4 13/16] net: Make "info network" output more readable info

2012-05-25 Thread Zhi Yong Wu
On Fri, May 25, 2012 at 10:50 PM, Jan Kiszka wrote: > On 2012-05-25 11:44, Zhi Yong Wu wrote: >> On Fri, May 25, 2012 at 10:40 PM, Jan Kiszka wrote: >>> On 2012-05-25 11:25, Zhi Yong Wu wrote: >>>>>> diff --git a/net/hub.c b/net/hub.c >>>>>>

Re: [PATCH v4 16/16] hub: add the support for hub own flow control

2012-05-26 Thread Zhi Yong Wu
point we've given it our best shot: > we already checked that port peers can receive.  If they error out now > there's not much we can do.  The packet is dropped for that particular > peer but at least we tried to deliver it when they claimed to be ready. Yeah, i think tha

Re: [PATCH] tcm_vhost: Fix tv_cmd completion -> release SGL memory leak

2012-07-04 Thread Zhi Yong Wu
t; tv_cmd->tvc_sgl in vhost_scsi_free_cmd() ahead of tv_cmd descriptor free. > > Cc: Stefan Hajnoczi > Cc: Zhi Yong Wu > Cc: Michael S. Tsirkin > Signed-off-by: Nicholas Bellinger > --- > drivers/vhost/tcm_vhost.c |2 ++ > 1 files changed, 2 insertions(+), 0 deletions(-) >

Re: [PATCH] hw/virtio-scsi: Set max_target=0 during vhost-scsi operation

2012-07-11 Thread Zhi Yong Wu
ts to scan target IDs up to > VIRTIO_SCSI_MAX_TARGET when connected via virtio-scsi-raw. > > It's currently cut against Zhi's qemu vhost-scsi tree here: > >https://github.com/wuzhy/qemu/tree/vhost-scsi > > Cc: Stefan Hajnoczi > Cc: Zhi Yong Wu > Cc: Paolo Bonzini >

Re: [PATCH] hw/virtio-scsi: Set max_target=0 during vhost-scsi operation

2012-07-11 Thread Zhi Yong Wu
> > It's currently cut against Zhi's qemu vhost-scsi tree here: > >https://github.com/wuzhy/qemu/tree/vhost-scsi > > Cc: Stefan Hajnoczi > Cc: Zhi Yong Wu > Cc: Paolo Bonzini > Signed-off-by: Nicholas Bellinger > --- > hw/virtio-scsi.c |6 +

Re: [PATCH] hw/virtio-scsi: Set max_target=0 during vhost-scsi operation

2012-07-12 Thread Zhi Yong Wu
> > It's currently cut against Zhi's qemu vhost-scsi tree here: > >https://github.com/wuzhy/qemu/tree/vhost-scsi > > Cc: Stefan Hajnoczi > Cc: Zhi Yong Wu > Cc: Paolo Bonzini > Signed-off-by: Nicholas Bellinger > --- > hw/virtio-scsi.c |6 +

Re: [PATCH] hw/virtio-scsi: Set max_target=0 during vhost-scsi operation

2012-07-15 Thread Zhi Yong Wu
HI, nab, On Fri, Jul 13, 2012 at 6:08 AM, Nicholas A. Bellinger wrote: > Hi Zhi, > > On Thu, 2012-07-12 at 14:59 +0800, Zhi Yong Wu wrote: >> thanks, it is applied to my vhost_scsi git tree >> git://github.com/wuzhy/qemu.git vhost-scsi >> > > Thanks for picking

[PATCH v5 0/4] The intro of QEMU block I/O throttling

2011-08-08 Thread Zhi Yong Wu
/s, this VM will hang up. We are considering how to handle this senario. Zhi Yong Wu (4): v5: add qmp/hmp support. Adjust the codes based on stefan's comments block: add the command line support block: add the block queue support block: add block timer and block throttling algo

[PATCH v5 1/4] block: add the command line support

2011-08-08 Thread Zhi Yong Wu
Signed-off-by: Zhi Yong Wu --- Makefile.objs |2 +- blockdev.c | 39 +++ qemu-config.c | 24 qemu-option.c | 17 + qemu-option.h |1 + qemu-options.hx |1 + 6 files changed, 83 insertions

[PATCH v5 2/4] block: add the block queue support

2011-08-08 Thread Zhi Yong Wu
The patch introduce one block queue for QEMU block layer. Signed-off-by: Zhi Yong Wu --- block/blk-queue.c | 141 + block/blk-queue.h | 73 +++ 2 files changed, 214 insertions(+), 0 deletions(-) create mode 100644

[PATCH v5 3/4] block: add block timer and block throttling algorithm

2011-08-08 Thread Zhi Yong Wu
he result speed will slightly bigger than the limits. For these problems, if you have nice thought, pls let us know.:) Signed-off-by: Zhi Yong Wu --- block.c | 347 +-- block.h |6 +- block_int.h | 30 + 3 files changed, 3

[PATCH v5 4/4] qmp/hmp: add block_set_io_throttle

2011-08-08 Thread Zhi Yong Wu
The patch introduce one new command block_set_io_throttle; For its usage syntax, if you have better idea, pls let me know. Signed-off-by: Zhi Yong Wu --- blockdev.c | 69 +++ blockdev.h |2 + hmp-commands.hx | 15

Re: [Qemu-devel] [PATCH v5 2/4] block: add the block queue support

2011-08-09 Thread Zhi Yong Wu
On Tue, Aug 9, 2011 at 4:46 PM, Ram Pai wrote: > On Tue, Aug 09, 2011 at 12:17:50PM +0800, Zhi Yong Wu wrote: >> The patch introduce one block queue for QEMU block layer. >> >> Signed-off-by: Zhi Yong Wu >> --- &

Re: [Qemu-devel] [PATCH v5 3/4] block: add block timer and block throttling algorithm

2011-08-09 Thread Zhi Yong Wu
On Tue, Aug 9, 2011 at 4:57 PM, Ram Pai wrote: > On Tue, Aug 09, 2011 at 12:17:51PM +0800, Zhi Yong Wu wrote: >> Note: >>       1.) When bps/iops limits are specified to a small value such as 511 >> bytes/s, this VM will hang up. We are considering how to handle this senar

Re: [PATCH v5 0/4] The intro of QEMU block I/O throttling

2011-08-09 Thread Zhi Yong Wu
On Tue, Aug 9, 2011 at 8:08 PM, Stefan Hajnoczi wrote: > On Tue, Aug 9, 2011 at 5:17 AM, Zhi Yong Wu wrote: >>  Makefile.objs     |    2 +- >>  block.c           |  347 >> +++-- >>  block.h           |    6 +- &

Re: [Qemu-devel] [PATCH v5 1/4] block: add the command line support

2011-08-09 Thread Zhi Yong Wu
On Tue, Aug 9, 2011 at 8:25 PM, Stefan Hajnoczi wrote: > On Tue, Aug 9, 2011 at 5:17 AM, Zhi Yong Wu wrote: >> Signed-off-by: Zhi Yong Wu >> --- >>  Makefile.objs   |    2 +- >>  blockdev.c      |   39 +++

Re: [PATCH v5 2/4] block: add the block queue support

2011-08-09 Thread Zhi Yong Wu
On Tue, Aug 9, 2011 at 8:49 PM, Stefan Hajnoczi wrote: > On Tue, Aug 9, 2011 at 5:17 AM, Zhi Yong Wu wrote: >> +/* The APIs for block request queue on qemu block layer. >> + */ >> + >> +static void qemu_block_queue_cancel(BlockDriverAIOCB *acb) >>

Re: [PATCH v5 3/4] block: add block timer and block throttling algorithm

2011-08-09 Thread Zhi Yong Wu
On Tue, Aug 9, 2011 at 11:19 PM, Stefan Hajnoczi wrote: > On Tue, Aug 9, 2011 at 5:17 AM, Zhi Yong Wu wrote: >> Note: >>      1.) When bps/iops limits are specified to a small value such as 511 >> bytes/s, this VM will hang up. We are considering how to handle this s

Re: [Qemu-devel] [PATCH v5 1/4] block: add the command line support

2011-08-10 Thread Zhi Yong Wu
On Wed, Aug 10, 2011 at 5:27 PM, Stefan Hajnoczi wrote: > On Wed, Aug 10, 2011 at 01:20:22PM +0800, Zhi Yong Wu wrote: >> On Tue, Aug 9, 2011 at 8:25 PM, Stefan Hajnoczi wrote: >> > On Tue, Aug 9, 2011 at 5:17 AM, Zhi Yong Wu >> > wrote: >&

Re: [PATCH v5 2/4] block: add the block queue support

2011-08-10 Thread Zhi Yong Wu
On Wed, Aug 10, 2011 at 5:37 PM, Stefan Hajnoczi wrote: > On Wed, Aug 10, 2011 at 01:54:33PM +0800, Zhi Yong Wu wrote: >> On Tue, Aug 9, 2011 at 8:49 PM, Stefan Hajnoczi wrote: >> > On Tue, Aug 9, 2011 at 5:17 AM, Zhi Yong Wu >> > wrote: >> >> +Blo

Re: [PATCH v5 2/4] block: add the block queue support

2011-08-10 Thread Zhi Yong Wu
On Wed, Aug 10, 2011 at 5:37 PM, Stefan Hajnoczi wrote: > On Wed, Aug 10, 2011 at 01:54:33PM +0800, Zhi Yong Wu wrote: >> On Tue, Aug 9, 2011 at 8:49 PM, Stefan Hajnoczi wrote: >> > On Tue, Aug 9, 2011 at 5:17 AM, Zhi Yong Wu >> > wrote: >> >> +Blo

Re: [PATCH v5 2/4] block: add the block queue support

2011-08-11 Thread Zhi Yong Wu
On Wed, Aug 10, 2011 at 5:37 PM, Stefan Hajnoczi wrote: > On Wed, Aug 10, 2011 at 01:54:33PM +0800, Zhi Yong Wu wrote: >> On Tue, Aug 9, 2011 at 8:49 PM, Stefan Hajnoczi wrote: >> > On Tue, Aug 9, 2011 at 5:17 AM, Zhi Yong Wu >> > wrote: >> >> +Blo

Re: [PATCH v5 3/4] block: add block timer and block throttling algorithm

2011-08-11 Thread Zhi Yong Wu
On Wed, Aug 10, 2011 at 7:00 PM, Stefan Hajnoczi wrote: > On Wed, Aug 10, 2011 at 7:57 AM, Zhi Yong Wu wrote: >> On Tue, Aug 9, 2011 at 11:19 PM, Stefan Hajnoczi wrote: >>> On Tue, Aug 9, 2011 at 5:17 AM, Zhi Yong Wu >>> wrote: >>>> Note: >>>&g

Re: [PATCH v5 3/4] block: add block timer and block throttling algorithm

2011-08-11 Thread Zhi Yong Wu
On Fri, Aug 12, 2011 at 1:06 PM, Stefan Hajnoczi wrote: > On Fri, Aug 12, 2011 at 6:00 AM, Zhi Yong Wu wrote: >> On Wed, Aug 10, 2011 at 7:00 PM, Stefan Hajnoczi wrote: >>> On Wed, Aug 10, 2011 at 7:57 AM, Zhi Yong Wu wrote: >>>> On Tue, Aug 9, 2011 at 11:19 PM

Re: [Qemu-devel] [PATCH v5 3/4] block: add block timer and block throttling algorithm

2011-08-11 Thread Zhi Yong Wu
On Tue, Aug 9, 2011 at 4:57 PM, Ram Pai wrote: > On Tue, Aug 09, 2011 at 12:17:51PM +0800, Zhi Yong Wu wrote: >> Note: >>       1.) When bps/iops limits are specified to a small value such as 511 >> bytes/s, this VM will hang up. We are considering how to handle this senar

Re: [Qemu-devel] [PATCH v5 3/4] block: add block timer and block throttling algorithm

2011-08-11 Thread Zhi Yong Wu
On Fri, Aug 12, 2011 at 1:47 PM, Stefan Hajnoczi wrote: > On Fri, Aug 12, 2011 at 6:35 AM, Zhi Yong Wu wrote: >> On Tue, Aug 9, 2011 at 4:57 PM, Ram Pai wrote: >>> On Tue, Aug 09, 2011 at 12:17:51PM +0800, Zhi Yong Wu wrote: >>>> Note: >>>>       1

Re: [PATCH v5 2/4] block: add the block queue support

2011-08-12 Thread Zhi Yong Wu
On Tue, Aug 9, 2011 at 8:49 PM, Stefan Hajnoczi wrote: > On Tue, Aug 9, 2011 at 5:17 AM, Zhi Yong Wu wrote: >> +/* The APIs for block request queue on qemu block layer. >> + */ >> + >> +static void qemu_block_queue_cancel(BlockDriverAIOCB *acb) >>

Re: [PATCH v5 2/4] block: add the block queue support

2011-08-12 Thread Zhi Yong Wu
On Fri, Aug 12, 2011 at 4:42 PM, Stefan Hajnoczi wrote: > On Fri, Aug 12, 2011 at 9:10 AM, Zhi Yong Wu wrote: >> On Tue, Aug 9, 2011 at 8:49 PM, Stefan Hajnoczi wrote: >>> On Tue, Aug 9, 2011 at 5:17 AM, Zhi Yong Wu >>> wrote: >>>> +/* The APIs for

[Help]: How to setup a VM based on kernel source code.

2011-08-19 Thread Zhi Yong Wu
this experience, pls give me one hand. thanks. -- Regards, Zhi Yong Wu -- 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

Re: [Help]: How to setup a VM based on kernel source code.

2011-08-20 Thread Zhi Yong Wu
On Fri, Aug 19, 2011 at 9:14 PM, Stefan Hajnoczi wrote: > On Fri, Aug 19, 2011 at 10:58 AM, Zhi Yong Wu wrote: >> I have met one scenario; currently i want to set up a VM based on >> latest kernel tree; but i  only have latest kernel source code and >> compiled it on one

[PATCH v6 0/4] The intro of QEMU block I/O throttling

2011-09-01 Thread Zhi Yong Wu
, this VM will hang up. We are considering how to handle this senario. Changes since code V5: Mainly fix the aio callback issue for block queue. Adjust codes based on Ram Pai's comments. Zhi Yong Wu (4): block: add the command line support block: add the block queue support block: add

[PATCH v6 1/4] block: add the command line support

2011-09-01 Thread Zhi Yong Wu
Signed-off-by: Zhi Yong Wu --- block.c |8 block_int.h | 21 + blockdev.c | 29 + qemu-config.c | 24 qemu-options.hx |1 + 5 files changed, 83 insertions(+), 0 deletions(-) diff

[PATCH v6 2/4] block: add the block queue support

2011-09-01 Thread Zhi Yong Wu
Signed-off-by: Zhi Yong Wu --- Makefile.objs |2 +- block/blk-queue.c | 226 + block/blk-queue.h | 63 +++ 3 files changed, 290 insertions(+), 1 deletions(-) create mode 100644 block/blk-queue.c create mode 100644 block

[PATCH v6 3/4] block: add block timer and block throttling algorithm

2011-09-01 Thread Zhi Yong Wu
speed will slightly bigger than the limits. For these problems, if you have nice thought, pls let us know.:) Signed-off-by: Zhi Yong Wu --- block.c | 290 +-- block.h |5 + block_int.h |9 ++ 3 files changed, 296 insert

[PATCH v6 4/4] qmp/hmp: add block_set_io_throttle

2011-09-01 Thread Zhi Yong Wu
The patch introduce one new command block_set_io_throttle; For its usage syntax, if you have better idea, pls let me know. Signed-off-by: Zhi Yong Wu --- block.c | 26 +++- block.h |1 - blockdev.c | 69

  1   2   >