Home
last modified time | relevance | path

Searched full:timeout (Results 1 – 25 of 276) sorted by relevance

12345678910>>...12

/qemu/python/qemu/qmp/
H A Dlegacy.py100 self, future: Awaitable[_T], timeout: Optional[float] = None
103 asyncio.wait_for(future, timeout=timeout)
158 def accept(self, timeout: Optional[float] = 15.0) -> QMPMessage:
162 :param timeout:
163 timeout in seconds (nonnegative float number, or None).
164 If None, there is no timeout, and this may block forever.
172 self._sync(self._qmp.accept(), timeout)
230 When a timeout is requested and the timeout period elapses.
242 timeout = None
244 timeout = wait
[all …]
/qemu/python/qemu/machine/
H A Dmachine.py146 @param qmp_timer: (optional) default QMP socket timeout
543 :raise subprocess.Timeout: When timeout is exceeds 60 seconds
549 self._subp.wait(timeout=60)
551 def _soft_shutdown(self, timeout: Optional[int]) -> None:
556 :param timeout: Timeout in seconds for graceful shutdown.
560 :raise subprocess.TimeoutExpired: When timeout is exceeded waiting for
593 "Waiting (timeout=%s) for QEMU process (pid=%s) to terminate",
594 timeout, self._subp.pid
596 self._subp.wait(timeout=timeout)
598 def _do_shutdown(self, timeout: Optional[int]) -> None:
[all …]
H A Dconsole_socket.py74 except socket.timeout:
75 # The socket is expected to timeout since we set a
76 # short timeout to allow the thread to exit when
82 # Configure socket to not block and timeout.
125 raise socket.timeout
137 since when draining we control the timeout.
/qemu/hw/timer/
H A Dimx_gpt.c172 uint32_t timeout) in imx_gpt_find_limit() argument
174 if ((count < reg) && (timeout > reg)) { in imx_gpt_find_limit()
175 timeout = reg; in imx_gpt_find_limit()
178 return timeout; in imx_gpt_find_limit()
184 uint32_t timeout = GPT_TIMER_MAX; in imx_gpt_compute_next_timeout() local
212 /* now, find the next timeout related to count */ in imx_gpt_compute_next_timeout()
215 timeout = imx_gpt_find_limit(count, s->ocr1, timeout); in imx_gpt_compute_next_timeout()
218 timeout = imx_gpt_find_limit(count, s->ocr2, timeout); in imx_gpt_compute_next_timeout()
221 timeout = imx_gpt_find_limit(count, s->ocr3, timeout); in imx_gpt_compute_next_timeout()
227 if ((s->ir & GPT_IR_OF1IE) && (timeout == s->ocr1)) { in imx_gpt_compute_next_timeout()
[all …]
/qemu/util/
H A Daio-posix.c447 int64_t *timeout) in run_poll_handlers_once() argument
463 *timeout = 0; in run_poll_handlers_once()
536 int64_t max_ns, int64_t *timeout) in run_poll_handlers() argument
543 trace_run_poll_handlers_begin(ctx, max_ns, *timeout); in run_poll_handlers()
558 start_time, timeout); in run_poll_handlers()
560 max_ns = qemu_soonest_timeout(*timeout, max_ns); in run_poll_handlers()
566 *timeout = 0; in run_poll_handlers()
570 /* If time has passed with no successful polling, adjust *timeout to in run_poll_handlers()
573 if (*timeout != -1) { in run_poll_handlers()
574 *timeout -= MIN(*timeout, elapsed_time); in run_poll_handlers()
[all …]
H A Dasync.c254 static int64_t aio_compute_bh_timeout(BHList *head, int timeout) in aio_compute_bh_timeout() argument
263 timeout = 10000000; in aio_compute_bh_timeout()
272 return timeout; in aio_compute_bh_timeout()
280 int timeout = -1; in aio_compute_timeout() local
282 timeout = aio_compute_bh_timeout(&ctx->bh_list, timeout); in aio_compute_timeout()
283 if (timeout == 0) { in aio_compute_timeout()
288 timeout = aio_compute_bh_timeout(&s->bh_list, timeout); in aio_compute_timeout()
289 if (timeout == 0) { in aio_compute_timeout()
298 return qemu_soonest_timeout(timeout, deadline); in aio_compute_timeout()
303 aio_ctx_prepare(GSource *source, gint *timeout) in aio_ctx_prepare() argument
[all …]
H A Dfdmon-epoll.c58 int64_t timeout) in fdmon_epoll_wait() argument
68 if (timeout > 0) { in fdmon_epoll_wait()
69 ret = qemu_poll_ns(&pfd, 1, timeout); in fdmon_epoll_wait()
71 timeout = 0; in fdmon_epoll_wait()
74 if (timeout <= 0 || ret > 0) { in fdmon_epoll_wait()
77 timeout); in fdmon_epoll_wait()
H A Dmain-loop.c255 int timeout = 0; in glib_pollfds_fill() local
268 n = g_main_context_query(context, max_priority, &timeout, pfds, in glib_pollfds_fill()
272 if (timeout < 0) { in glib_pollfds_fill()
275 timeout_ns = (int64_t)timeout * (int64_t)SCALE_MS; in glib_pollfds_fill()
293 static int os_host_main_loop_wait(int64_t timeout) in os_host_main_loop_wait() argument
300 glib_pollfds_fill(&timeout); in os_host_main_loop_wait()
305 ret = qemu_poll_ns((GPollFD *)gpollfds->data, gpollfds->len, timeout); in os_host_main_loop_wait()
459 static int os_host_main_loop_wait(int64_t timeout)
492 timeout = 0;
515 poll_timeout_ns = qemu_soonest_timeout(poll_timeout_ns, timeout);
[all …]
/qemu/hw/watchdog/
H A Dsbsa_gwdt.c101 uint64_t timeout = 0; in sbsa_gwdt_update_timer() local
110 timeout = s->woru; in sbsa_gwdt_update_timer()
111 timeout <<= 32; in sbsa_gwdt_update_timer()
112 timeout |= s->worl; in sbsa_gwdt_update_timer()
113 timeout = muldiv64(timeout, NANOSECONDS_PER_SECOND, s->freq); in sbsa_gwdt_update_timer()
114 timeout += qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL); in sbsa_gwdt_update_timer()
118 /* store the current timeout value into compare registers */ in sbsa_gwdt_update_timer()
119 s->wcvu = timeout >> 32; in sbsa_gwdt_update_timer()
120 s->wcvl = timeout; in sbsa_gwdt_update_timer()
122 timer_mod(s->timer, timeout); in sbsa_gwdt_update_timer()
H A Dwdt_i6300esb.c56 #define ESB_WDT_REBOOT (0x01 << 5) /* Enable reboot on timeout */
58 #define ESB_WDT_INTTYPE (0x11 << 0) /* Interrupt type on timer1 timeout */
61 #define ESB_WDT_RELOAD (0x01 << 8) /* prevent timeout */
114 int64_t timeout; in OBJECT_DECLARE_SIMPLE_TYPE() local
122 timeout = d->timer1_preload; in OBJECT_DECLARE_SIMPLE_TYPE()
124 timeout = d->timer2_preload; in OBJECT_DECLARE_SIMPLE_TYPE()
127 timeout <<= 15; in OBJECT_DECLARE_SIMPLE_TYPE()
129 timeout <<= 5; in OBJECT_DECLARE_SIMPLE_TYPE()
131 /* Get the timeout in nanoseconds. */ in OBJECT_DECLARE_SIMPLE_TYPE()
133 timeout = timeout * 30; /* on a PCI bus, 1 tick is 30 ns*/ in OBJECT_DECLARE_SIMPLE_TYPE()
[all …]
/qemu/pc-bios/s390-ccw/
H A Dmenu.c35 static uint64_t timeout; variable
81 if (timeout) { in read_prompt()
82 time = get_clock() + timeout * TOD_CLOCK_MILLISECOND; in read_prompt()
85 timeout = 0; in read_prompt()
154 } else if (timeout > 0) { in boot_menu_prompt()
156 (int)(timeout / 1000)); in boot_menu_prompt()
205 /* zipl stores timeout as seconds */ in menu_get_zipl_boot_index()
206 timeout = zipl_timeout * 1000; in menu_get_zipl_boot_index()
256 timeout = boot_menu_timeout; in menu_set_parms()
/qemu/scripts/ci/
H A Dgitlab-pipeline-status83 def wait_on_pipeline_success(timeout, interval, argument
86 Waits for the pipeline to finish within the given timeout
90 if time.time() >= (start + timeout):
91 msg = ("Timeout (-t/--timeout) of %i seconds reached, "
93 msg %= timeout
125 parser.add_argument('-t', '--timeout', type=int, default=7200,
169 args.timeout,
/qemu/include/hw/xen/interface/
H A Dsched.h75 * optional timeout may be specified.
99 * after timeout, returns watchdog id.
100 * With id != 0 and timeout == 0, destroy domain watchdog timer.
101 * With id != 0 and timeout != 0, poke watchdog timer and set new timeout.
127 uint64_t timeout; member
141 uint32_t timeout; /* timeout */ member
/qemu/
H A D.patchew.yml37 Test '{{ test }}' timeout, log:
123 timeout: 3600
130 timeout: 3600
137 timeout: 600
145 timeout: 3600
152 timeout: 3600
181 timeout: 3600
210 timeout: 3600
228 timeout: 3600
235 timeout: 3600
/qemu/include/hw/watchdog/
H A Dwdt_imx2.h35 #define IMX2_WDT_WCR_WT (0xFF << 8) /* Watchdog Timeout Field */
39 #define IMX2_WDT_WCR_WDT BIT(3) /* WDOG Timeout Assertion */
52 #define IMX2_WDT_WRSR_TOUT BIT(1) /* Reset due to Timeout */
58 #define IMX2_WDT_WICR_WICT 0xff /* Interrupt Timeout */
59 #define IMX2_WDT_WICR_WICT_DEF 0x04 /* Default interrupt timeout (2s) */
/qemu/tests/qemu-iotests/
H A Dcommon.qemu44 # Override QEMU_COMM_TIMEOUT for a timeout different than the
85 timeout=yes
127 timeout=
143 if [ -n "${timeout}" ]; then
144 echo "Timeout waiting for ${success_match} on handle ${h}"
148 exit 1 # Timeout or wrong match mean the test failed
162 # until either timeout, or a response. If it is not set, or <=0,
175 # like a timeout.
214 echo "Timeout waiting for command ${1} response on handle ${h}"
215 exit 1 #Timeout means the test failed
[all …]
/qemu/docs/system/
H A Ddevice-url-syntax.rst.inc19 timeout to detect stalled requests and force a reestablishment of the
20 session. The timeout is specified in seconds. The default is 0 which
21 means no timeout. Libiscsi 1.15.0 or greater is required for this
176 ``timeout``
177 Set the timeout in seconds of the CURL connection. This timeout is
180 default timeout of 5 seconds is used.
204 of 64k and a timeout of 10 seconds.
208 …me=datastore1",, "file.sslverify":"off",, "file.readahead":"64k",, "file.timeout":10}' /tmp/test.q…
/qemu/scripts/oss-fuzz/
H A Dminimize_qtest_trace.py16 TIMEOUT = 5 variable
57 rc = subprocess.Popen("timeout -s 9 {timeout}s {qemu_path} {qemu_args} 2>&1\
58 < {trace_path}".format(timeout=TIMEOUT,
69 outs, _ = rc.communicate(timeout=5)
277 global TIMEOUT
285 TIMEOUT = (end-start)*5
286 print("Setting the timeout for {} seconds".format(TIMEOUT))
/qemu/target/hppa/
H A Dsys_helper.c33 uint64_t timeout; in HELPER() local
40 timeout = deposit64(current, 0, 34, (uint64_t)val << 2); in HELPER()
43 if (timeout < current + 1000) { in HELPER()
44 timeout += 1ULL << 34; in HELPER()
47 cpu->env.cr[CR_IT] = timeout; in HELPER()
48 timer_mod(cpu->alarm_timer, timeout); in HELPER()
/qemu/tests/fp/
H A Dmeson.build10 # By default tests run with the usual 30s timeout; particularly
122 timeout: slow_fp_tests.get(k, 30),
130 timeout: slow_fp_tests.get(k, 30),
139 timeout: slow_fp_tests.get('mulAdd', 30),
156 timeout: slow_fp_tests.get('log2', 30),
/qemu/tests/vm/
H A Dbasevm.py89 # This is the timeout on the wait for console bytes.
196 # Intentionally bump up the default timeout under TCG,
198 timeout = self.socket_timeout
200 timeout *= 8
201 self.console_init(timeout=timeout)
322 def console_init(self, timeout = None): argument
323 if timeout == None:
324 timeout = self.socket_timeout
326 vm.console_socket.settimeout(timeout)
354 except socket.timeout:
[all …]
/qemu/tests/qemu-iotests/tests/
H A Dnbd-reconnect-on-open35 f'driver=nbd,open-timeout={open_timeout},'
40 log(f'Check fail to connect with {open_timeout} seconds of timeout')
67 # check it and at the same time check that with open-timeout=0 client fails
71 # Check that we will fail after non-zero timeout if server is still unavailable
/qemu/io/
H A Dchannel-watch.c59 gint *timeout) in qio_channel_fd_source_prepare() argument
61 *timeout = -1; in qio_channel_fd_source_prepare()
102 gint *timeout) in qio_channel_socket_source_prepare() argument
104 *timeout = -1; in qio_channel_socket_source_prepare()
188 gint *timeout) in qio_channel_fd_pair_source_prepare() argument
190 *timeout = -1; in qio_channel_fd_pair_source_prepare()
/qemu/hw/s390x/
H A Dsclpquiesce.c24 uint16_t timeout; member
61 * system_powerdown does not have a timeout. Fortunately the in read_event_data()
62 * timeout value is currently ignored by Linux, anyway in read_event_data()
64 sq->timeout = cpu_to_be16(0); in read_event_data()
/qemu/block/
H A Discsi-opts.c57 .name = "timeout",
59 .help = "Request timeout in seconds (default 0 = no timeout)",

12345678910>>...12