aboutsummaryrefslogtreecommitdiff
path: root/kvm-stub.c
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2011-10-15 14:08:26 +0200
committerJan Kiszka <jan.kiszka@siemens.com>2012-01-19 12:14:42 +0100
commit9b5b76d44930dc9266bb6d30862704cb3c86d2ca (patch)
treecf2c3fef0b9925485ce7e58579ec19367e74a8c4 /kvm-stub.c
parent84b058d7df1e75543ef7422d97b039cd413f68f1 (diff)
downloadqemu-9b5b76d44930dc9266bb6d30862704cb3c86d2ca.zip
qemu-9b5b76d44930dc9266bb6d30862704cb3c86d2ca.tar.gz
qemu-9b5b76d44930dc9266bb6d30862704cb3c86d2ca.tar.bz2
kvm: x86: Establish IRQ0 override control
KVM is forced to disable the IRQ0 override when we run with in-kernel irqchip but without IRQ routing support of the kernel. Set the fwcfg value correspondingly. This aligns us with qemu-kvm. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Diffstat (limited to 'kvm-stub.c')
-rw-r--r--kvm-stub.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/kvm-stub.c b/kvm-stub.c
index 06064b9..6c2b06b 100644
--- a/kvm-stub.c
+++ b/kvm-stub.c
@@ -78,6 +78,11 @@ int kvm_has_many_ioeventfds(void)
return 0;
}
+int kvm_allows_irq0_override(void)
+{
+ return 1;
+}
+
void kvm_setup_guest_memory(void *start, size_t size)
{
}