OSDN Git Service
(root)
/
qmiga
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d35bf2
)
Only allow -cpu host when KVM is enabled
author
Anthony Liguori
<aliguori@us.ibm.com>
Fri, 17 Jul 2009 03:20:22 +0000
(22:20 -0500)
committer
Anthony Liguori
<aliguori@us.ibm.com>
Fri, 17 Jul 2009 03:20:22 +0000
(22:20 -0500)
-cpu host is not at all useful when using tcg.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
target-i386/helper.c
patch
|
blob
|
history
diff --git
a/target-i386/helper.c
b/target-i386/helper.c
index
5f33533
..
dd89885
100644
(file)
--- a/
target-i386/helper.c
+++ b/
target-i386/helper.c
@@
-358,11
+358,10
@@
static int cpu_x86_find_by_name(x86_def_t *x86_cpu_def, const char *cpu_model)
break;
}
}
- if (!def) {
- if (strcmp(name, "host") != 0) {
- goto error;
- }
+ if (kvm_enabled() && strcmp(name, "host") == 0) {
cpu_x86_fill_host(x86_cpu_def);
+ } else if (!def) {
+ goto error;
} else {
memcpy(x86_cpu_def, def, sizeof(*def));
}