[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] Give an error when using -icount option with kvm ac
From: |
Cao,Bing Bu |
Subject: |
[Qemu-devel] [PATCH] Give an error when using -icount option with kvm accelerator |
Date: |
Fri, 11 Nov 2011 15:09:39 +0800 |
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: Cao,Bing Bu <address@hidden>
---
vl.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/vl.c b/vl.c
index f169aac..d2857a4 100644
--- a/vl.c
+++ b/vl.c
@@ -3226,8 +3226,12 @@ int main(int argc, char **argv, char **envp)
fprintf(stderr, "could not initialize alarm timer\n");
exit(1);
}
- configure_icount(icount_option);
-
+ if (!kvm_enabled()) {
+ configure_icount(icount_option);
+ } else {
+ fprintf(stderr, "-icount option only allowed without kvm
accelerator\n");
+ exit(1);
+ }
if (net_init_clients() < 0) {
exit(1);
}
--
1.7.1
- Re: [Qemu-devel] x86_64 linux kernel doesn't boot with -icount enabled, (continued)
- Re: [Qemu-devel] x86_64 linux kernel doesn't boot with -icount enabled, Max Filippov, 2011/11/08
- Re: [Qemu-devel] x86_64 linux kernel doesn't boot with -icount enabled, Cao,Bing Bu, 2011/11/09
- Re: [Qemu-devel] x86_64 linux kernel doesn't boot with -icount enabled, Cao,Bing Bu, 2011/11/09
- Re: [Qemu-devel] x86_64 linux kernel doesn't boot with -icount enabled, Max Filippov, 2011/11/09
- Re: [Qemu-devel] x86_64 linux kernel doesn't boot with -icount enabled, Cao,Bing Bu, 2011/11/09
- Re: [Qemu-devel] x86_64 linux kernel doesn't boot with -icount enabled, Max Filippov, 2011/11/10
- Re: [Qemu-devel] x86_64 linux kernel doesn't boot with -icount enabled, Paolo Bonzini, 2011/11/10
- Re: [Qemu-devel] x86_64 linux kernel doesn't boot with -icount enabled, Max Filippov, 2011/11/10
- Re: [Qemu-devel] x86_64 linux kernel doesn't boot with -icount enabled, Paolo Bonzini, 2011/11/10
- [Qemu-devel] [PATCH] Give an error when using -icount option with kvm accelerator,
Cao,Bing Bu <=
- Re: [Qemu-devel] [PATCH] Give an error when using -icount option with kvm accelerator, Cao,Bing Bu, 2011/11/14
- Re: [Qemu-devel] x86_64 linux kernel doesn't boot with -icount enabled, BenoƮt Canet, 2011/11/13