projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
21a0b6e
)
KVM: Fix compilation on non-x86
author
Alexander Graf
<agraf@suse.de>
Wed, 25 Jan 2012 17:28:05 +0000
(18:28 +0100)
committer
Alexander Graf
<agraf@suse.de>
Thu, 2 Feb 2012 01:47:46 +0000
(
02:47
+0100)
Commit 84b058d broke compilation for KVM on non-x86 targets, which
don't have KVM_CAP_IRQ_ROUTING defined.
Fix by not using the unavailable constant when it's not around.
Signed-off-by: Alexander Graf <agraf@suse.de>
kvm-all.c
patch
|
blob
|
history
diff --git
a/kvm-all.c
b/kvm-all.c
index
7d4e544
..
0b87658
100644
(file)
--- a/
kvm-all.c
+++ b/
kvm-all.c
@@
-1306,7
+1306,11
@@
int kvm_has_many_ioeventfds(void)
int kvm_has_gsi_routing(void)
{
+#ifdef KVM_CAP_IRQ_ROUTING
return kvm_check_extension(kvm_state, KVM_CAP_IRQ_ROUTING);
+#else
+ return false;
+#endif
}
int kvm_allows_irq0_override(void)