summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2009-09-18 13:41:30 +0200
committerMarcelo Tosatti <mtosatti@redhat.com>2009-09-18 16:41:03 -0300
commita64bf1c8096fc86c14f3fc095538d62f4b6cfcc9 (patch)
treecf4d9893a0af784bd7d1512369f98263a49546c7 /qemu-kvm-x86.c
parentAdd kvm-cap-device-assignment command line flags (diff)
downloadqemu-kvm-a64bf1c8096fc86c14f3fc095538d62f4b6cfcc9.tar.gz
qemu-kvm-a64bf1c8096fc86c14f3fc095538d62f4b6cfcc9.tar.bz2
qemu-kvm-a64bf1c8096fc86c14f3fc095538d62f4b6cfcc9.zip
Fix compilation without device assignment
Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'qemu-kvm-x86.c')
-rw-r--r--qemu-kvm-x86.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/qemu-kvm-x86.c b/qemu-kvm-x86.c
index 6e5bcc5c4..32561f0c9 100644
--- a/qemu-kvm-x86.c
+++ b/qemu-kvm-x86.c
@@ -1622,11 +1622,13 @@ void kvm_arch_update_guest_debug(CPUState *env, struct kvm_guest_debug *dbg)
}
#endif
+#ifdef CONFIG_KVM_DEVICE_ASSIGNMENT
void kvm_arch_do_ioperm(void *_data)
{
struct ioperm_data *data = _data;
ioperm(data->start_port, data->num, data->turn_on);
}
+#endif
/*
* Setup x86 specific IRQ routing