* [Qemu-devel] [PATCH] vl.c: prohibit simultaneous use of -icount and kvm
@ 2011-11-10 10:19 Max Filippov
0 siblings, 0 replies; only message in thread
From: Max Filippov @ 2011-11-10 10:19 UTC (permalink / raw)
To: qemu-devel; +Cc: Paolo Bonzini, Max Filippov
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
---
vl.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/vl.c b/vl.c
index f169aac..cac665e 100644
--- a/vl.c
+++ b/vl.c
@@ -3226,7 +3226,13 @@ int main(int argc, char **argv, char **envp)
fprintf(stderr, "could not initialize alarm timer\n");
exit(1);
}
- configure_icount(icount_option);
+
+ if (icount_option && kvm_enabled()) {
+ fprintf(stderr, "-icount is not allowed with kvm acceleration\n");
+ exit(1);
+ } else {
+ configure_icount(icount_option);
+ }
if (net_init_clients() < 0) {
exit(1);
--
1.7.2.5
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2011-11-10 10:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-10 10:19 [Qemu-devel] [PATCH] vl.c: prohibit simultaneous use of -icount and kvm Max Filippov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).