aboutsummaryrefslogtreecommitdiff
path: root/kvm-all.c
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2012-07-26 15:35:13 +0100
committerAvi Kivity <avi@redhat.com>2012-08-09 16:16:55 +0300
commit1d31f66bbc886af56d2def349012a358dc3ada06 (patch)
tree4645fd07fcadcb87d3ebd671df05638196afa24c /kvm-all.c
parent3889c3fab10b63e170ab5193d2ce6be99a704e93 (diff)
downloadqemu-1d31f66bbc886af56d2def349012a358dc3ada06.zip
qemu-1d31f66bbc886af56d2def349012a358dc3ada06.tar.gz
qemu-1d31f66bbc886af56d2def349012a358dc3ada06.tar.bz2
kvm: Move kvm_allows_irq0_override() to target-i386, fix return type
kvm_allows_irq0_override() is a totally x86 specific concept: move it to the target-specific source file where it belongs. This means we need a new header file for the prototype: kvm_i386.h, in line with the existing kvm_ppc.h. While we are moving it, fix the return type to be 'bool' rather than 'int'. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'kvm-all.c')
-rw-r--r--kvm-all.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/kvm-all.c b/kvm-all.c
index 002e751..f420dfa 100644
--- a/kvm-all.c
+++ b/kvm-all.c
@@ -1701,11 +1701,6 @@ int kvm_has_gsi_routing(void)
#endif
}
-int kvm_allows_irq0_override(void)
-{
- return !kvm_irqchip_in_kernel() || kvm_has_gsi_routing();
-}
-
void *kvm_vmalloc(ram_addr_t size)
{
#ifdef TARGET_S390X