From patchwork Fri Sep 18 11:41:29 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juan Quintela X-Patchwork-Id: 48510 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n8IBgDhn013921 for ; Fri, 18 Sep 2009 11:42:13 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756740AbZIRLmH (ORCPT ); Fri, 18 Sep 2009 07:42:07 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756661AbZIRLmH (ORCPT ); Fri, 18 Sep 2009 07:42:07 -0400 Received: from mx1.redhat.com ([209.132.183.28]:41523 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756734AbZIRLmE (ORCPT ); Fri, 18 Sep 2009 07:42:04 -0400 Received: from int-mx05.intmail.prod.int.phx2.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.18]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n8IBg7oN004940 for ; Fri, 18 Sep 2009 07:42:08 -0400 Received: from localhost.localdomain (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx05.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n8IBfa93017440; Fri, 18 Sep 2009 07:42:03 -0400 From: Juan Quintela To: kvm@vger.kernel.org Subject: [PATCH 18/24] Add kvm-cap-device-assignment command line flags Date: Fri, 18 Sep 2009 13:41:29 +0200 Message-Id: <85f963e519b2226be249a67b88b53b6383ebae34.1253272938.git.quintela@redhat.com> In-Reply-To: References: In-Reply-To: References: X-Scanned-By: MIMEDefang 2.67 on 10.5.11.18 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org Signed-off-by: Juan Quintela --- configure | 20 ++++++++++++++++++-- 1 files changed, 18 insertions(+), 2 deletions(-) diff --git a/configure b/configure index df45cd4..9598331 100755 --- a/configure +++ b/configure @@ -229,7 +229,7 @@ io_thread="no" mixemu="no" kvm_trace="no" kvm_cap_pit="" -kvm_cap_device_assignment="no" +kvm_cap_device_assignment="" kerneldir="" aix="no" blobs="yes" @@ -498,6 +498,10 @@ for opt do ;; --enable-kvm-cap-pit) kvm_cap_pit="yes" ;; + --disable-kvm-cap-device-assignment) kvm_cap_device_assignment="no" + ;; + --enable-kvm-cap-device-assignment) kvm_cap_device_assignment="yes" + ;; --enable-profiler) profiler="yes" ;; --enable-cocoa) @@ -706,6 +710,8 @@ echo " --disable-kvm disable KVM acceleration support" echo " --enable-kvm enable KVM acceleration support" echo " --disable-cap-kvm-pit disable KVM pit support" echo " --enable-cap-kvm-pit enable KVM pit support" +echo " --disable-cap-device-assigmment disable KVM device assignemnt" +echo " --enable-cap-device-assigmment enable KVM device assignemnt" echo " --disable-nptl disable usermode NPTL support" echo " --enable-nptl disable usermode NPTL support" echo " --enable-system enable all system emulation targets" @@ -1387,7 +1393,11 @@ fi ########################################## # test for KVM_CAP_DEVICE_ASSIGNMENT -if test "$kvm" != "no" ; then + +if test "$kvm_cap_device_assignment" != "no" ; then + if test "$kvm" = "no" -a "$kvm_cap_device_assignment" = "yes" ; then + feature_not_found "kvm_cap_device_assignment (kvm is not enabled)" + fi cat > $TMPC < #ifndef KVM_CAP_DEVICE_ASSIGNMENT @@ -1397,6 +1407,11 @@ int main(void) { return 0; } EOF if compile_prog $kvm_cflags "" ; then kvm_cap_device_assignment=yes + else + if test "$kvm_cap_device_assignment" = "yes" ; then + feature_not_found "kvm_cap_device_assigment" + fi + kvm_cap_device_assignment=no fi fi @@ -1867,6 +1882,7 @@ echo "Linux AIO support $linux_aio" echo "Install blobs $blobs" echo "KVM support $kvm" echo "KVM PIT support $kvm_cap_pit" +echo "KVM device assig. $kvm_cap_device_assignment" echo "KVM trace support $kvm_trace" echo "fdt support $fdt" echo "preadv support $preadv"