Skip to contentSkip to conversation

vl.c: prohibit simultaneous use of -icount and kvm

PATCH Superseded Max Filippov 1 participant 1 message Nov 10, 2011

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 vl.c: prohibit simultaneous use of -icount and kvm

---
 vl.c |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)
vl.c +7 -1
index f169aac..cac665e 100644
@@ -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);
Signature · 1 line
1.7.2.5