# HG changeset patch
# User Muli Ben-Yehuda <[EMAIL PROTECTED]>
# Date 1170798768 -7200
# Node ID 3b02d537956d3df608c24be8cbba0f2985bf2705
# Parent f49e30e2c4db4306d7d50193cac9bc87826c1f70
dont exit on bad IO sizes or directions
Also slightly improve the debug messages while I was there
Signed-off-by: Muli Ben-Yehuda <[EMAIL PROTECTED]>
diff -r f49e30e2c4db -r 3b02d537956d user/kvmctl.c
--- a/user/kvmctl.c Tue Feb 06 23:46:43 2007 +0200
+++ b/user/kvmctl.c Tue Feb 06 23:52:48 2007 +0200
@@ -288,8 +288,8 @@ static int handle_io(kvm_context_t kvm,
break;
}
default:
- fprintf(stderr, "bad I/O size\n");
- exit(1);
+ fprintf(stderr, "bad I/O size %d\n",
run->io.size);
+ return -EMSGSIZE;
}
break;
}
@@ -308,13 +308,13 @@ static int handle_io(kvm_context_t kvm,
*(uint32_t *)value_addr);
break;
default:
- fprintf(stderr, "bad I/O size\n");
- exit(1);
+ fprintf(stderr, "bad I/O size %d\n",
run->io.size);
+ return -EMSGSIZE;
}
break;
default:
- fprintf(stderr, "bad I/O size\n");
- exit(1);
+ fprintf(stderr, "bad I/O direction %d\n",
run->io.direction);
+ return -EPROTO;
}
if (run->io.string) {
run->io.address += delta;
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
kvm-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/kvm-devel