qemu-io-cmds.c (c1b94a0ed2332b08ea7799c003c3ee9996782a3c) qemu-io-cmds.c (b47ec2c4562117728be36ec2edfbdf9ef2868c6e)
1/*
2 * Command line utility to exercise the QEMU I/O path.
3 *
4 * Copyright (C) 2009 Red Hat, Inc.
5 * Copyright (c) 2003-2005 Silicon Graphics, Inc.
6 *
7 * This work is licensed under the terms of the GNU GPL, version 2 or later.
8 * See the COPYING file in the top-level directory.

--- 469 unchanged lines hidden (view full) ---

478 .count = count,
479 .total = total,
480 .done = false,
481 };
482
483 co = qemu_coroutine_create(co_write_zeroes_entry);
484 qemu_coroutine_enter(co, &data);
485 while (!data.done) {
1/*
2 * Command line utility to exercise the QEMU I/O path.
3 *
4 * Copyright (C) 2009 Red Hat, Inc.
5 * Copyright (c) 2003-2005 Silicon Graphics, Inc.
6 *
7 * This work is licensed under the terms of the GNU GPL, version 2 or later.
8 * See the COPYING file in the top-level directory.

--- 469 unchanged lines hidden (view full) ---

478 .count = count,
479 .total = total,
480 .done = false,
481 };
482
483 co = qemu_coroutine_create(co_write_zeroes_entry);
484 qemu_coroutine_enter(co, &data);
485 while (!data.done) {
486 qemu_aio_wait();
486 aio_poll(bdrv_get_aio_context(bs), true);
487 }
488 if (data.ret < 0) {
489 return data.ret;
490 } else {
491 return 1;
492 }
493}
494

--- 1527 unchanged lines hidden (view full) ---

2022 .cfunc = resume_f,
2023 .args = "tag",
2024 .oneline = "resumes the request tagged as tag",
2025};
2026
2027static int wait_break_f(BlockDriverState *bs, int argc, char **argv)
2028{
2029 while (!bdrv_debug_is_suspended(bs, argv[1])) {
487 }
488 if (data.ret < 0) {
489 return data.ret;
490 } else {
491 return 1;
492 }
493}
494

--- 1527 unchanged lines hidden (view full) ---

2022 .cfunc = resume_f,
2023 .args = "tag",
2024 .oneline = "resumes the request tagged as tag",
2025};
2026
2027static int wait_break_f(BlockDriverState *bs, int argc, char **argv)
2028{
2029 while (!bdrv_debug_is_suspended(bs, argv[1])) {
2030 qemu_aio_wait();
2030 aio_poll(bdrv_get_aio_context(bs), true);
2031 }
2032
2033 return 0;
2034}
2035
2036static const cmdinfo_t wait_break_cmd = {
2037 .name = "wait_break",
2038 .argmin = 1,

--- 173 unchanged lines hidden ---
2031 }
2032
2033 return 0;
2034}
2035
2036static const cmdinfo_t wait_break_cmd = {
2037 .name = "wait_break",
2038 .argmin = 1,

--- 173 unchanged lines hidden ---