]> xenbits.xensource.com Git - xen.git/commitdiff
ioemu: drop reschedule of handle_buffered_io on I/O reqs
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 16 Apr 2008 09:07:49 +0000 (10:07 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 16 Apr 2008 09:07:49 +0000 (10:07 +0100)
Rescheduling the call to handle_buffered_io costs the system call to
qemu_get_clock(), which is very expensive considering the the latency
we would like to achieve for I/O reqs, so we should avoid it.

That means that handle_buffered_io may be called as often as every
0.1s, but that's not so costly.

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
tools/ioemu/target-i386-dm/helper2.c

index 46fe5433a1be6fc36d9de4d85a206077cd45add1..16623e90b3cc44b0866e633448fabe46ad280d63 100644 (file)
@@ -482,7 +482,7 @@ void cpu_handle_ioreq(void *opaque)
     CPUState *env = opaque;
     ioreq_t *req = cpu_get_ioreq();
 
-    handle_buffered_io(env);
+    __handle_buffered_iopage(env);
     if (req) {
         __handle_ioreq(env, req);