# Kbuild for top-level directory of the kernel

2011-04-17 Thread Zhi Yong Wu
# # 1) Generate bounds.h bounds-file := include/generated/bounds.h always := $(bounds-file) targets := $(bounds-file) kernel/bounds.s quiet_cmd_bounds = GEN $@ define cmd_bounds (set -e; \ echo #ifndef __LINUX_BOUNDS_H__; \ echo #define __LINUX_BOUNDS_H__; \

Re: KVM call agenda for 2012-11-12

2012-11-13 Thread Zhi Yong Wu
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

[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 zwu.ker...@gmail.com --- Makefile.objs |2 +- block.c | 248 + block.h |1 - block/blk-queue.c | 99 + block/blk-queue.h | 73 block_int.h

[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 zwu.ker...@gmail.com --- Makefile.objs |2 +- block.c | 248 + block.h |1 - block/blk-queue.c | 99 + block/blk-queue.h | 73 block_int.h

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 stefa...@gmail.com wrote: On Fri, Jul 22, 2011 at 10:20 AM, Zhi Yong Wu wu...@linux.vnet.ibm.com wrote: +static void bdrv_block_timer(void *opaque) +{ +    BlockDriverState *bs = opaque; +    BlockQueue *queue = bs-block_queue; +    uint64_t

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

2011-07-25 Thread Zhi Yong Wu
On Mon, Jul 25, 2011 at 1:40 PM, Stefan Hajnoczi stefa...@gmail.com wrote: On Mon, Jul 25, 2011 at 5:25 AM, Zhi Yong Wu zwu.ker...@gmail.com wrote: On Fri, Jul 22, 2011 at 6:54 PM, Stefan Hajnoczi stefa...@gmail.com wrote: On Fri, Jul 22, 2011 at 10:20 AM, Zhi Yong Wu wu...@linux.vnet.ibm.com

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 stefa...@gmail.com wrote: On Fri, Jul 22, 2011 at 10:20 AM, Zhi Yong Wu wu...@linux.vnet.ibm.com wrote: +static void bdrv_block_timer(void *opaque) +{ +    BlockDriverState *bs = opaque; +    BlockQueue *queue = bs-block_queue; +    uint64_t

[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 wu...@linux.vnet.ibm.com --- Makefile.objs |2 +- block.c | 288 +++-- block.h |1 - block/blk-queue.c | 116 + block/blk

[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 wu...@linux.vnet.ibm.com --- Makefile.objs |2 +- block.c | 288 +++-- block.h |1 - block/blk-queue.c | 116 + block/blk

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 mtosa...@redhat.com 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 wu...@linux.vnet.ibm.com ---  Makefile.objs     |    2 +-  block.c           |  288

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 stefa...@gmail.com wrote: On Wed, Jul 27, 2011 at 11:17 AM, Zhi Yong Wu zwu.ker...@gmail.com wrote: On Wed, Jul 27, 2011 at 3:26 AM, Marcelo Tosatti mtosa...@redhat.com wrote: On Tue, Jul 26, 2011 at 04:59:06PM +0800, Zhi Yong Wu wrote: Welcome

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 mtosa...@redhat.com 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); +    if (wait) { +        *wait = wait_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 stefa...@gmail.com wrote: On Wed, Jul 27, 2011 at 11:17 AM, Zhi Yong Wu zwu.ker...@gmail.com wrote: On Wed, Jul 27, 2011 at 3:26 AM, Marcelo Tosatti mtosa...@redhat.com wrote: On Tue, Jul 26, 2011 at 04:59:06PM +0800, Zhi Yong Wu wrote: Welcome

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 stefa...@gmail.com wrote: On Thu, Jul 28, 2011 at 9:20 AM, Stefan Hajnoczi stefa...@gmail.com wrote: On Thu, Jul 28, 2011 at 6:43 AM, Zhi Yong Wu zwu.ker...@gmail.com wrote: On Wed, Jul 27, 2011 at 8:58 PM, Stefan Hajnoczi stefa...@gmail.com

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

2011-07-28 Thread Zhi Yong Wu
such 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 wu...@linux.vnet.ibm.com --- 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

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

2011-07-28 Thread Zhi Yong Wu
than the limits. For these problems, if you have nice thought, pls let us know.:) Signed-off-by: Zhi Yong Wu wu...@linux.vnet.ibm.com --- block.c | 302 +-- block.h |1 - block_int.h | 29 ++ 3 files changed, 323

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 mtosa...@redhat.com 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 mtosa...@redhat.com 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-08-01 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 code

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

2011-08-01 Thread Zhi Yong Wu
Signed-off-by: Zhi Yong Wu wu...@linux.vnet.ibm.com --- 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

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

2011-08-01 Thread Zhi Yong Wu
Signed-off-by: Zhi Yong Wu wu...@linux.vnet.ibm.com --- 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

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

2011-08-01 Thread Zhi Yong Wu
bigger than the limits. For these problems, if you have nice thought, pls let us know.:) Signed-off-by: Zhi Yong Wu wu...@linux.vnet.ibm.com --- block.c | 302 +-- block.h |1 - block_int.h | 29 ++ 3 files changed, 323

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

2011-08-01 Thread Zhi Yong Wu
On Mon, Aug 1, 2011 at 3:09 AM, Ryan Harper ry...@us.ibm.com wrote: * Zhi Yong Wu wu...@linux.vnet.ibm.com [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

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

2011-08-03 Thread Zhi Yong Wu
-by: Zhi Yong Wu wu...@linux.vnet.ibm.com --- block.c | 155 ++ block.h |5 ++ block_int.h |2 + blockdev.c | 86 ++- blockdev.h |2 + hmp-commands.hx | 15 + qerror.c

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 stefa...@gmail.com wrote: On Thu, Aug 4, 2011 at 5:34 AM, Zhi Yong Wu wu...@linux.vnet.ibm.com wrote: @@ -1387,6 +1422,11 @@ void bdrv_set_io_limits(BlockDriverState *bs,  {     memset(bs-io_limits, 0, sizeof(BlockIOLimit));     bs-io_limits

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 ry...@us.ibm.com wrote: * Zhi Yong Wu wu...@linux.vnet.ibm.com [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

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 ry...@us.ibm.com wrote: * Zhi Yong Wu wu...@linux.vnet.ibm.com [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 ry...@us.ibm.com wrote: * Zhi Yong Wu wu...@linux.vnet.ibm.com [2011-08-01 01:30]: +static AIOPool block_queue_pool = { +    .aiocb_size         = sizeof(struct BlockDriverAIOCB), +    .cancel             = qemu_block_queue_cancel, +}; + +static

[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 algorithm

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

2011-08-08 Thread Zhi Yong Wu
Signed-off-by: Zhi Yong Wu wu...@linux.vnet.ibm.com --- Makefile.objs |2 +- blockdev.c | 39 +++ qemu-config.c | 24 qemu-option.c | 17 + qemu-option.h |1 + qemu-options.hx |1 + 6 files

[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 wu...@linux.vnet.ibm.com --- block/blk-queue.c | 141 + block/blk-queue.h | 73 +++ 2 files changed, 214 insertions(+), 0 deletions

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

2011-08-08 Thread Zhi Yong Wu
bigger than the limits. For these problems, if you have nice thought, pls let us know.:) Signed-off-by: Zhi Yong Wu wu...@linux.vnet.ibm.com --- block.c | 347 +-- block.h |6 +- block_int.h | 30 + 3 files changed, 372

[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 wu...@linux.vnet.ibm.com --- blockdev.c | 69 +++ blockdev.h |2 + hmp

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 linux...@us.ibm.com 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 wu...@linux.vnet.ibm.com ---  block/blk-queue.c |  141

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 linux...@us.ibm.com 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 senario

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 stefa...@gmail.com wrote: On Tue, Aug 9, 2011 at 5:17 AM, Zhi Yong Wu wu...@linux.vnet.ibm.com 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 stefa...@gmail.com wrote: On Tue, Aug 9, 2011 at 5:17 AM, Zhi Yong Wu wu...@linux.vnet.ibm.com wrote: Signed-off-by: Zhi Yong Wu wu...@linux.vnet.ibm.com ---  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 stefa...@gmail.com wrote: On Tue, Aug 9, 2011 at 5:17 AM, Zhi Yong Wu wu...@linux.vnet.ibm.com 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-10 Thread Zhi Yong Wu
On Tue, Aug 9, 2011 at 11:19 PM, Stefan Hajnoczi stefa...@gmail.com wrote: On Tue, Aug 9, 2011 at 5:17 AM, Zhi Yong Wu wu...@linux.vnet.ibm.com 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

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 stefa...@linux.vnet.ibm.com 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 stefa...@gmail.com wrote: On Tue, Aug 9, 2011 at 5:17 AM, Zhi Yong Wu wu...@linux.vnet.ibm.com

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 stefa...@linux.vnet.ibm.com 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 stefa...@gmail.com wrote: On Tue, Aug 9, 2011 at 5:17 AM, Zhi Yong Wu wu...@linux.vnet.ibm.com

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 stefa...@linux.vnet.ibm.com 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 stefa...@gmail.com wrote: On Tue, Aug 9, 2011 at 5:17 AM, Zhi Yong Wu wu...@linux.vnet.ibm.com

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 stefa...@linux.vnet.ibm.com 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 stefa...@gmail.com wrote: On Tue, Aug 9, 2011 at 5:17 AM, Zhi Yong Wu wu...@linux.vnet.ibm.com

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 stefa...@gmail.com wrote: On Wed, Aug 10, 2011 at 7:57 AM, Zhi Yong Wu zwu.ker...@gmail.com wrote: On Tue, Aug 9, 2011 at 11:19 PM, Stefan Hajnoczi stefa...@gmail.com wrote: On Tue, Aug 9, 2011 at 5:17 AM, Zhi Yong Wu wu...@linux.vnet.ibm.com

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 stefa...@gmail.com wrote: On Fri, Aug 12, 2011 at 6:00 AM, Zhi Yong Wu zwu.ker...@gmail.com wrote: On Wed, Aug 10, 2011 at 7:00 PM, Stefan Hajnoczi stefa...@gmail.com wrote: On Wed, Aug 10, 2011 at 7:57 AM, Zhi Yong Wu zwu.ker...@gmail.com wrote

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 linux...@us.ibm.com 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 senario

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

2011-08-12 Thread Zhi Yong Wu
On Fri, Aug 12, 2011 at 1:47 PM, Stefan Hajnoczi stefa...@gmail.com wrote: On Fri, Aug 12, 2011 at 6:35 AM, Zhi Yong Wu zwu.ker...@gmail.com wrote: On Tue, Aug 9, 2011 at 4:57 PM, Ram Pai linux...@us.ibm.com 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 stefa...@gmail.com wrote: On Tue, Aug 9, 2011 at 5:17 AM, Zhi Yong Wu wu...@linux.vnet.ibm.com 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 stefa...@gmail.com wrote: On Fri, Aug 12, 2011 at 9:10 AM, Zhi Yong Wu zwu.ker...@gmail.com wrote: On Tue, Aug 9, 2011 at 8:49 PM, Stefan Hajnoczi stefa...@gmail.com wrote: On Tue, Aug 9, 2011 at 5:17 AM, Zhi Yong Wu wu...@linux.vnet.ibm.com

[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 stefa...@gmail.com wrote: On Fri, Aug 19, 2011 at 10:58 AM, Zhi Yong Wu zwu.ker...@gmail.com 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

[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 block

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

2011-09-01 Thread Zhi Yong Wu
Signed-off-by: Zhi Yong Wu wu...@linux.vnet.ibm.com --- block.c |8 block_int.h | 21 + blockdev.c | 29 + qemu-config.c | 24 qemu-options.hx |1 + 5 files changed, 83 insertions

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

2011-09-01 Thread Zhi Yong Wu
Signed-off-by: Zhi Yong Wu wu...@linux.vnet.ibm.com --- 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

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

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

[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 wu...@linux.vnet.ibm.com --- block.c | 26 +++- block.h |1 - blockdev.c | 69

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

2011-09-06 Thread Zhi Yong Wu
, this VM will hang up. We are considering how to handle this senario. Changes since code V6: Mainly simply the block queue. Adjust codes based on stefan's comments. Zhi Yong Wu (4): block: add the command line support block: add the block queue support block: add block timer and throttling

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

2011-09-06 Thread Zhi Yong Wu
Signed-off-by: Zhi Yong Wu wu...@linux.vnet.ibm.com --- block.c |8 block_int.h | 30 ++ blockdev.c | 29 + blockdev.h |2 ++ qemu-config.c | 24 qemu-options.hx |1

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

2011-09-06 Thread Zhi Yong Wu
Signed-off-by: Zhi Yong Wu wu...@linux.vnet.ibm.com --- Makefile.objs |2 +- block/blk-queue.c | 184 + block/blk-queue.h | 59 + 3 files changed, 244 insertions(+), 1 deletions(-) create mode 100644 block/blk-queue.c

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

2011-09-06 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 wu...@linux.vnet.ibm.com --- block.c | 26 -- hmp-commands.hx | 15 +++ qerror.c|4

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

2011-09-06 Thread Zhi Yong Wu
bigger than the limits. For these problems, if you have nice thought, pls let us know.:) Signed-off-by: Zhi Yong Wu wu...@linux.vnet.ibm.com --- block.c| 297 ++-- block.h|6 +- blockdev.c | 69 ++ 3 files changed

Re: [PATCH 2/2] tools/virtio: virtio_test tool

2011-09-06 Thread Zhi Yong Wu
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

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

2011-09-07 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 wu...@linux.vnet.ibm.com --- block.c | 26 +++- blockdev.c | 69

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

2011-09-07 Thread Zhi Yong Wu
, this VM will hang up. We are considering how to handle this senario. Changes since code V7: fix the build per patch based on stefan's comments. Zhi Yong Wu (4): block: add the command line support block: add the block queue support block: add block timer and throttling algorithm qmp/hmp

[PATCH v8 2/4] block: add the command line support

2011-09-07 Thread Zhi Yong Wu
Signed-off-by: Zhi Yong Wu wu...@linux.vnet.ibm.com --- block.c | 59 +++ block.h |5 block_int.h |3 ++ blockdev.c | 29 +++ qemu-config.c | 24 ++ qemu

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

2011-09-07 Thread Zhi Yong Wu
bigger than the limits. For these problems, if you have nice thought, pls let us know.:) Signed-off-by: Zhi Yong Wu wu...@linux.vnet.ibm.com --- block.c | 246 --- block.h |1 - 2 files changed, 236 insertions(+), 11 deletions(-) diff

[PATCH v8 1/4] block: add the block queue support

2011-09-07 Thread Zhi Yong Wu
Signed-off-by: Zhi Yong Wu wu...@linux.vnet.ibm.com --- Makefile.objs |2 +- block/blk-queue.c | 184 + block/blk-queue.h | 59 + block_int.h | 27 4 files changed, 271 insertions(+), 1 deletions

[PATCH v8 1/4] block: add the block queue support

2011-09-08 Thread Zhi Yong Wu
Signed-off-by: Zhi Yong Wu wu...@linux.vnet.ibm.com --- Makefile.objs |2 +- block/blk-queue.c | 201 + block/blk-queue.h | 59 block_int.h | 27 +++ 4 files changed, 288 insertions(+), 1 deletions

[PATCH v8 2/4] block: add the command line support

2011-09-08 Thread Zhi Yong Wu
Signed-off-by: Zhi Yong Wu wu...@linux.vnet.ibm.com --- block.c | 59 +++ block.h |5 block_int.h |3 ++ blockdev.c | 29 +++ qemu-config.c | 24 ++ qemu

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

2011-09-08 Thread Zhi Yong Wu
bigger than the limits. For these problems, if you have nice thought, pls let us know.:) Signed-off-by: Zhi Yong Wu wu...@linux.vnet.ibm.com --- block.c | 259 --- block.h |1 - 2 files changed, 248 insertions(+), 12 deletions(-) diff

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

2011-09-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 wu...@linux.vnet.ibm.com --- block.c | 26 +++- blockdev.c | 69

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

2011-09-08 Thread Zhi Yong Wu
, this VM will hang up. We are considering how to handle this senario. Changes since code V7: fix the build per patch based on stefan's comments. Zhi Yong Wu (4): block: add the command line support block: add the block queue support block: add block timer and throttling algorithm qmp/hmp

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

2012-07-04 Thread Zhi Yong Wu
in vhost_scsi_free_cmd() ahead of tv_cmd descriptor free. Cc: Stefan Hajnoczi stefa...@linux.vnet.ibm.com Cc: Zhi Yong Wu wu...@cn.ibm.com Cc: Michael S. Tsirkin m...@redhat.com Signed-off-by: Nicholas Bellinger n...@linux-iscsi.org --- drivers/vhost/tcm_vhost.c |2 ++ 1 files changed, 2

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

2012-07-11 Thread Zhi Yong Wu
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 stefa...@linux.vnet.ibm.com Cc: Zhi Yong Wu wu...@linux.vnet.ibm.com Cc: Paolo

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 stefa...@linux.vnet.ibm.com Cc: Zhi Yong Wu wu...@linux.vnet.ibm.com Cc: Paolo Bonzini pbonz...@redhat.com Signed-off-by: Nicholas Bellinger n...@linux-iscsi.org

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 stefa...@linux.vnet.ibm.com Cc: Zhi Yong Wu wu...@linux.vnet.ibm.com Cc: Paolo Bonzini pbonz...@redhat.com Signed-off-by: Nicholas Bellinger n...@linux-iscsi.org

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 n...@linux-iscsi.org 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 up this patch in your

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

2012-07-24 Thread Zhi Yong Wu
-...@googlegroups.com. To unsubscribe from this group, send email to linux-iscsi-target-dev+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/linux-iscsi-target-dev?hl=en. -- Regards, Zhi Yong Wu -- To unsubscribe from this list: send the line unsubscribe

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

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 to majord

Re: VMXON region vs VMCS region?

2012-01-31 Thread Zhi Yong Wu
On Tue, Jan 31, 2012 at 8:29 PM, Orit Wasserman owass...@redhat.com 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: VMXON region is created per

Re: VMXON region vs VMCS region?

2012-02-07 Thread Zhi Yong Wu
On Tue, Jan 31, 2012 at 8:29 PM, Orit Wasserman owass...@redhat.com 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: VMXON region is created per

Re: VMXON region vs VMCS region?

2012-02-07 Thread Zhi Yong Wu
On Wed, Feb 8, 2012 at 1:52 AM, Orit Wasserman owass...@redhat.com wrote: On 02/07/2012 05:09 PM, Zhi Yong Wu wrote: On Tue, Jan 31, 2012 at 8:29 PM, Orit Wasserman owass...@redhat.com wrote: On 01/31/2012 05:35 AM, Zhi Yong Wu wrote: HI, Can anyone let me know know the difference  between

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

2011-09-19 Thread Zhi Yong Wu
On Wed, Sep 14, 2011 at 6:50 PM, Marcelo Tosatti mtosa...@redhat.com wrote: On Tue, Sep 13, 2011 at 11:09:46AM +0800, Zhi Yong Wu wrote: On Fri, Sep 9, 2011 at 10:44 PM, Marcelo Tosatti mtosa...@redhat.com wrote: On Thu, Sep 08, 2011 at 06:11:07PM +0800, Zhi Yong Wu wrote: Note:      1

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

2011-09-20 Thread Zhi Yong Wu
On Tue, Sep 20, 2011 at 8:34 PM, Marcelo Tosatti mtosa...@redhat.com wrote: On Mon, Sep 19, 2011 at 05:55:41PM +0800, Zhi Yong Wu wrote: On Wed, Sep 14, 2011 at 6:50 PM, Marcelo Tosatti mtosa...@redhat.com wrote: On Tue, Sep 13, 2011 at 11:09:46AM +0800, Zhi Yong Wu wrote: On Fri, Sep 9

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

2011-09-20 Thread Zhi Yong Wu
On Wed, Sep 21, 2011 at 11:14 AM, Zhi Yong Wu zwu.ker...@gmail.com wrote: On Tue, Sep 20, 2011 at 8:34 PM, Marcelo Tosatti mtosa...@redhat.com wrote: On Mon, Sep 19, 2011 at 05:55:41PM +0800, Zhi Yong Wu wrote: On Wed, Sep 14, 2011 at 6:50 PM, Marcelo Tosatti mtosa...@redhat.com wrote

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

2011-09-21 Thread Zhi Yong Wu
On Tue, Sep 20, 2011 at 8:34 PM, Marcelo Tosatti mtosa...@redhat.com wrote: On Mon, Sep 19, 2011 at 05:55:41PM +0800, Zhi Yong Wu wrote: On Wed, Sep 14, 2011 at 6:50 PM, Marcelo Tosatti mtosa...@redhat.com wrote: On Tue, Sep 13, 2011 at 11:09:46AM +0800, Zhi Yong Wu wrote: On Fri, Sep 9

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

2011-09-26 Thread Zhi Yong Wu
On Sat, Sep 24, 2011 at 12:19 AM, Kevin Wolf kw...@redhat.com wrote: Am 08.09.2011 12:11, schrieb Zhi Yong Wu: 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.) When dd command

Re: [Qemu-devel] [PATCH v8 1/4] block: add the block queue support

2011-09-26 Thread Zhi Yong Wu
On Fri, Sep 23, 2011 at 11:32 PM, Kevin Wolf kw...@redhat.com wrote: Am 08.09.2011 12:11, schrieb Zhi Yong Wu: Signed-off-by: Zhi Yong Wu wu...@linux.vnet.ibm.com ---  Makefile.objs     |    2 +-  block/blk-queue.c |  201 +  block/blk

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

2011-09-26 Thread Zhi Yong Wu
On Tue, Sep 20, 2011 at 8:34 PM, Marcelo Tosatti mtosa...@redhat.com wrote: On Mon, Sep 19, 2011 at 05:55:41PM +0800, Zhi Yong Wu wrote: On Wed, Sep 14, 2011 at 6:50 PM, Marcelo Tosatti mtosa...@redhat.com wrote: On Tue, Sep 13, 2011 at 11:09:46AM +0800, Zhi Yong Wu wrote: On Fri, Sep 9

[PATCH] virtio-9p: fix QEMU build break

2011-10-10 Thread Zhi Yong Wu
Signed-off-by: Zhi Yong Wu wu...@linux.vnet.ibm.com --- hw/9pfs/virtio-9p-handle.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/9pfs/virtio-9p-handle.c b/hw/9pfs/virtio-9p-handle.c index 5c8b5ed..5b3a867 100644 --- a/hw/9pfs/virtio-9p-handle.c +++ b/hw/9pfs/virtio-9p

Re: [PATCH] virtio-9p: fix QEMU build break

2011-10-11 Thread Zhi Yong Wu
On Tue, Oct 11, 2011 at 12:49 AM, Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com wrote: On Mon, 10 Oct 2011 22:05:21 +0530, Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com wrote: On Mon, 10 Oct 2011 18:30:28 +0800, Zhi Yong Wu wu...@linux.vnet.ibm.com wrote: qemu build break due

Re: [Qemu-devel] [PATCH v8 1/4] block: add the block queue support

2011-10-18 Thread Zhi Yong Wu
! :) Great, thanks Paolo -- 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

Re: [Qemu-devel] [PATCH v8 1/4] block: add the block queue support

2011-10-18 Thread Zhi Yong Wu
On Mon, Oct 17, 2011 at 6:17 PM, Kevin Wolf kw...@redhat.com wrote: Am 26.09.2011 10:01, schrieb Zhi Yong Wu: On Fri, Sep 23, 2011 at 11:32 PM, Kevin Wolf kw...@redhat.com wrote: Am 08.09.2011 12:11, schrieb Zhi Yong Wu: Signed-off-by: Zhi Yong Wu wu...@linux.vnet.ibm.com ---  Makefile.objs

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

2011-10-18 Thread Zhi Yong Wu
On Mon, Oct 17, 2011 at 6:19 PM, Kevin Wolf kw...@redhat.com wrote: Am 26.09.2011 08:15, schrieb Zhi Yong Wu: On Fri, Sep 23, 2011 at 11:54 PM, Kevin Wolf kw...@redhat.com wrote: +} + +static void bdrv_block_timer(void *opaque) +{ +    BlockDriverState *bs = opaque; +    BlockQueue *queue

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

2011-10-18 Thread Zhi Yong Wu
On Mon, Oct 17, 2011 at 11:54 PM, Stefan Hajnoczi stefa...@gmail.com wrote: On Mon, Oct 17, 2011 at 11:26 AM, Kevin Wolf kw...@redhat.com wrote: Am 26.09.2011 09:24, schrieb Zhi Yong Wu: On Sat, Sep 24, 2011 at 12:19 AM, Kevin Wolf kw...@redhat.com wrote: Am 08.09.2011 12:11, schrieb Zhi Yong

  1   2   >