Avoid ioperm calls if device assignment is not enabled
commit3c8adba884aa149df390d14ec2700a2758e9a445
authorJes Sorensen <jes@sgi.com>
Thu, 13 Nov 2008 14:02:38 +0000 (13 15:02 +0100)
committerAvi Kivity <avi@redhat.com>
Thu, 13 Nov 2008 14:05:58 +0000 (13 16:05 +0200)
tree9217f3a737ea86b011da6030f0b94133959314d6
parent997a5e6bcc7c0ef66aa421e4f12756d4a413b54c
Avoid ioperm calls if device assignment is not enabled

Protect calls to kvm_arch_do_ioperm() introduced in
6cb7f4d86438f56a5c917ff6148c70bd237ee0e5 with
#ifdef USE_KVM_DEVICE_ASSIGNMENT similar to how the other calls to
this function are protected.

Signed-off-by: Jes Sorensen <jes@sgi.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
qemu-kvm.c