qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v2] vl.c: prohibit simultaneous use of -icount w


From: Anthony Liguori
Subject: Re: [Qemu-devel] [PATCH v2] vl.c: prohibit simultaneous use of -icount with kvm or xen
Date: Fri, 11 Nov 2011 13:45:59 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.21) Gecko/20110831 Lightning/1.0b2 Thunderbird/3.1.13

On 11/10/2011 05:38 AM, Max Filippov wrote:
With -icount, The vm_clock is updated with help from TCG (it counts
instructions at 2^ICOUNT ns/instructions). With KVM, the instruction
count is not available so KVM cannot provide this help.

Signed-off-by: Max Filippov<address@hidden>
Acked-by: Paolo Bonzini<address@hidden>

Applied.  Thanks.

Regards,

Anthony Liguori

---
v1 ->  v2 changes:
- cover both kvm and xen;
- add explanation text.
---
  vl.c |    5 +++++
  1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/vl.c b/vl.c
index f169aac..bb601e2 100644
--- a/vl.c
+++ b/vl.c
@@ -3226,6 +3226,11 @@ int main(int argc, char **argv, char **envp)
          fprintf(stderr, "could not initialize alarm timer\n");
          exit(1);
      }
+
+    if (icount_option&&  (kvm_enabled() || xen_enabled())) {
+        fprintf(stderr, "-icount is not allowed with kvm or xen\n");
+        exit(1);
+    }
      configure_icount(icount_option);

      if (net_init_clients()<  0) {




reply via email to

[Prev in Thread] Current Thread [Next in Thread]