vl.c: prohibit simultaneous use of -icount and kvm
PATCH 1/1 vl.c: prohibit simultaneous use of -icount and kvm
Signed-off-by Max Filippov <[email protected]>
--- vl.c | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-)
vl.c +7 -1
@@ -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