From patchwork Tue Feb 6 20:30:35 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roman Kagan X-Patchwork-Id: 10204069 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 08D0960247 for ; Tue, 6 Feb 2018 20:44:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ED4AA2832D for ; Tue, 6 Feb 2018 20:44:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DD054288BB; Tue, 6 Feb 2018 20:44:54 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 161282832D for ; Tue, 6 Feb 2018 20:44:54 +0000 (UTC) Received: from localhost ([::1]:59633 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ejA6m-00069m-Tj for patchwork-qemu-devel@patchwork.kernel.org; Tue, 06 Feb 2018 15:44:52 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44904) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ej9uA-00018c-RN for qemu-devel@nongnu.org; Tue, 06 Feb 2018 15:31:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ej9u7-0003Hh-M1 for qemu-devel@nongnu.org; Tue, 06 Feb 2018 15:31:50 -0500 Received: from mail-eopbgr00098.outbound.protection.outlook.com ([40.107.0.98]:32000 helo=EUR02-AM5-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ej9u7-0003GM-F3 for qemu-devel@nongnu.org; Tue, 06 Feb 2018 15:31:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=virtuozzo.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=MvFeN++Nu21eWm216p6LWwyG5ws131JGov43NPI1mU0=; b=iifewaV+ukagxSCtX311T10AJeqEw9x18HXJueHxW9CUBWrhJ2l2k0Mt2uLamgZTOcAVKOZeaF4HYqsa6jssacTJIc9vAvtjfGhNyjF/KjEUZqq/bntjEMwk6LE171hvwCA5Hw7DsL1jZLGPANhOVc/f01UqG22IIKx01jS94nY= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=rkagan@virtuozzo.com; Received: from rkaganb.sw.ru (195.214.232.6) by VI1PR0801MB1983.eurprd08.prod.outlook.com (2603:10a6:800:8a::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.464.11; Tue, 6 Feb 2018 20:31:43 +0000 From: Roman Kagan To: qemu-devel@nongnu.org Date: Tue, 6 Feb 2018 23:30:35 +0300 Message-Id: <20180206203048.11096-22-rkagan@virtuozzo.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180206203048.11096-1-rkagan@virtuozzo.com> References: <20180206203048.11096-1-rkagan@virtuozzo.com> MIME-Version: 1.0 X-Originating-IP: [195.214.232.6] X-ClientProxiedBy: HE1PR0301CA0008.eurprd03.prod.outlook.com (2603:10a6:3:76::18) To VI1PR0801MB1983.eurprd08.prod.outlook.com (2603:10a6:800:8a::16) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e4832ebd-c7eb-4502-70e8-08d56da0a36d X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(5600026)(4604075)(2017052603307)(7153060)(7193020); SRVR:VI1PR0801MB1983; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0801MB1983; 3:6/4h1xmFBy12poZgiC8Zq0j71kJuMM8Zc3C31KnysSTFvlrR9EEkYWPyJs5VkH59pLWmMecfPcnRJECy4SUL5J4WrqzlN7iejKdnlW98YjaHSxNirT0WEzAYLNUZDLlpUtv3drQRfpYzrWhcfwl3O0PFc9fgaj6J3yk7YwJz/+/mZ4bNqZd/uHBvFVznTvmtdKAAxCBdkwA6U8Es2ejOy3JHnfcA06HM4Se8itUG+kzZluwDutY5yzc2KjXbglN1; 25:nh6er/jq3ShT0Op2WPG0HOvg4ZdMw76kTZQ8wxGfCw0pF4eq9CG+pLtYmTpf7IwLncycBUjZFSb7haDpLDH7yzuvmfQtgCY4Lfsq0TvH/HcAerrmGcN7igobBF9lbbE2iJArxw99u8EQmf/0F5kd+Yis2eZ0+vl9ep6KpvWxWFPda8ucFVnmFau8RzMrVH+5Wlrh6kv8lstGP/NXWZ/QsHFIyOwV/rDEqYR0Q0Z8YmbR9uVoCJpV0a2FZ/u2jIq872UL/buBmIyz8sNfIbURHrctlc+S3h3iN7SZF5xL0LWwkKOPoPe4e0JuhDBAlMz7KlBq4zljL5+iMq0PhyiwBg==; 31:pQ9QcFheazdhdIlLQ1WrjC3vhFnk/jeEuOzCh/rj8lo1BEDChpMlAyalQRMev75DO3Pss6D1kEI2sfn9AWUc3Ifor85nJtuetLgCAhRMVFxYQzrmi9pXEtWzSNERmrB1jE8Iif0bG2mnOGyzP6dvyMeQ7emdqsUcSg00M7Ef3hlYTNrLAO0k1bVDvMkfHLKmLVJ9SKU1Rbjj7latnD26gP6iVbzwnWqxr5B4nCS2akk= X-MS-TrafficTypeDiagnostic: VI1PR0801MB1983: X-Microsoft-Exchange-Diagnostics: 1; VI1PR0801MB1983; 20:ruO7x7kc/HsOyF97h+nrdTz9dIgTwujwt4boExj3VtvYjyY4HYjwvBE2L+chPY8q/LHpOjfIvGfXt4Et2Np8jNqhPvziNXpvQneRAwgEbHdnBuguhai0RbtplkKWKmiSzdEWj2zplN9N5gkJK6+hlv4oh64vR/TtNMv0SPJd4I0VDeQW9zuQvDkpyCs62ccaJDLb6e54dYoSnMvGmml984Vbd+CZFRcKXPlohJv95T3f2GfI0g5BihBHMTp97rnHY07QCLO+xDlltc8x4NhTa3zYyrlPQsyRrlCuOPvIuWBeqszo+DQnTaFOpLGwfFrrU7QtgojisMdK/lHGewnl4ZfA4ovVaMSYhEckIkGgQlKAiU2C6UbClkUiSfSwA1ZxJFK9g0wDVe9A+ndN2EjMKrt8wMV1WayVoxjP41b/O/I=; 4:10BBUIEDTAkdebQNKcOjzXbW44AZz5svxbfo5ffQ3Sv+F/eD18P86V3Gm8SfuEoki6itTQthdhNFJQRFAqKOTMg8D5QXsadofkospw/Hnw1GgakStiSU+eqlv0iivsbWpPeyiTYSkw2ky1W0YcU4EUqg9ffHZtdUzpbOD040r+qCWDbdjtUnOMFkACZQpgnGfvIOmnL2AauhnIBAFHOP9QpTRrYT4PaFnpYFCUDyCaUXysiSES/WwKQRhC0UgnCBLdLWI3bUOf4m/jmcWGILmw== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040501)(2401047)(5005006)(8121501046)(3002001)(93006095)(93001095)(3231101)(2400082)(944501161)(10201501046)(6041288)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123564045)(20161123562045)(20161123560045)(6072148)(201708071742011); SRVR:VI1PR0801MB1983; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0801MB1983; X-Forefront-PRVS: 0575F81B58 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(1496009)(396003)(366004)(376002)(39380400002)(39850400004)(346002)(189003)(199004)(16586007)(53936002)(305945005)(54906003)(7736002)(3846002)(316002)(105586002)(2361001)(106356001)(2351001)(6116002)(1076002)(50226002)(8936002)(81156014)(5660300001)(8676002)(81166006)(7416002)(2950100002)(6666003)(6916009)(76176011)(575784001)(86362001)(68736007)(66066001)(16526019)(47776003)(50466002)(4326008)(97736004)(26005)(6512007)(51416003)(2906002)(52116002)(386003)(6506007)(59450400001)(48376002)(55236004)(36756003)(53416004)(69596002)(6486002)(478600001)(186003)(25786009)(217873001); DIR:OUT; SFP:1102; SCL:1; SRVR:VI1PR0801MB1983; H:rkaganb.sw.ru; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: virtuozzo.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; VI1PR0801MB1983; 23:BRUCLXqXfMGZ5fGyDIF8pdantvnMNNfMbnErKpA?= =?us-ascii?Q?LLGsYyZe40gSXx6cJeRcEdV9lVXL7ZQHmHRyNOd5wRnTLNmS8dJD60zSW7ee?= =?us-ascii?Q?0k4YSvwK4J7jAXvgyCE+bUU3V8lPaDpAELF8au/3BJtmZXTEWq8nHsufwBFg?= =?us-ascii?Q?TXR6S43xO/9K/KSjuOZ2iFRj+ZV/RKk56cYxpl/KI45nvOQR95kkEA1YpPgI?= =?us-ascii?Q?Ipy1joqOqyphtw8uGC+0HKjN0Toz3KLL6tAKkI+E6lNsy1L4RcaNY2PkG/0V?= =?us-ascii?Q?7FiTk/SVG96DCSby6/K5DHHtNB1HCRAOxBRqW3UrMrPDAglb8pn7/ZWT80Ef?= =?us-ascii?Q?YIpFErli6HND+0CICRqtybhTLNfBpaBEOMsQ/rt/JbyfGhg2YTgal6PIPaWk?= =?us-ascii?Q?0qASxWJaxOlPUdWrqTBNKpSr/bsnfkZEq3mmW9VSapmQAPVruufoD7SrER/M?= =?us-ascii?Q?D/zvW6f/VAX/C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SPXRhbEiG8NwXTVdIi9+W7w+n049hPTBSq5S0Ir25Csdh/16mU55+upyBvyQlS/eXDOyXfhX9u0WSlEqr70szARD1Q5matT7XkGsPHO3rEk5YmyaP3YhaHSAJsflK7L9Zo3H21yNTUIFf/k1l3RIM9tZmu3jqZEd0= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Feb 2018 20:31:43.7471 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e4832ebd-c7eb-4502-70e8-08d56da0a36d X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0801MB1983 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy] X-Received-From: 40.107.0.98 Subject: [Qemu-devel] [RFC PATCH 21/34] vmbus: build configuration X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ben Warren , Konrad Rzeszutek Wilk , Krish Sadhukhan , "Marcos E. Matsunaga" , Jan Dakinevich , Vadim Rozenfeld , "Denis V. Lunev" , si-wei liu , Paolo Bonzini , Vitaly Kuznetsov , Cathy Avery Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Evgeny Yakovlev Add option to configure and makefiles to enable building vmbus support (default to "on" on Linux and "off" otherwise). Signed-off-by: Roman Kagan --- configure | 11 +++++++++++ hw/Makefile.objs | 1 + 2 files changed, 12 insertions(+) diff --git a/configure b/configure index 302fdc92ff..5a0ca5dc4a 100755 --- a/configure +++ b/configure @@ -436,6 +436,7 @@ jemalloc="no" replication="yes" vxhs="" libxml2="" +vmbus="no" supported_cpu="no" supported_os="no" @@ -804,6 +805,7 @@ Linux) vhost_net="yes" vhost_scsi="yes" vhost_vsock="yes" + vmbus="yes" QEMU_INCLUDES="-I\$(SRC_PATH)/linux-headers -I$(pwd)/linux-headers $QEMU_INCLUDES" supported_os="yes" ;; @@ -1341,6 +1343,10 @@ for opt do ;; --disable-git-update) git_update=no ;; + --disable-vmbus) vmbus="no" + ;; + --enable-vmbus) vmbus="yes" + ;; *) echo "ERROR: unknown option $opt" echo "Try '$0 --help' for more information" @@ -1592,6 +1598,7 @@ disabled with --disable-FEATURE, default is enabled if available: crypto-afalg Linux AF_ALG crypto backend driver vhost-user vhost-user support capstone capstone disassembler support + vmbus Hyper-V VMBus devices support NOTE: The object files are built at the place where configure is launched EOF @@ -5657,6 +5664,7 @@ echo "avx2 optimization $avx2_opt" echo "replication support $replication" echo "VxHS block device $vxhs" echo "capstone $capstone" +echo "vmbus support $vmbus" if test "$sdl_too_old" = "yes"; then echo "-> Your SDL version is too old - please upgrade to have SDL support" @@ -6347,6 +6355,9 @@ fi if test "$have_static_assert" = "yes" ; then echo "CONFIG_STATIC_ASSERT=y" >> $config_host_mak fi +if test "$vmbus" = "yes" ; then + echo "CONFIG_VMBUS=y" >> $config_host_mak +fi if test "$have_utmpx" = "yes" ; then echo "HAVE_UTMPX=y" >> $config_host_mak diff --git a/hw/Makefile.objs b/hw/Makefile.objs index cf4cb2010b..c12fc0cc22 100644 --- a/hw/Makefile.objs +++ b/hw/Makefile.objs @@ -34,6 +34,7 @@ devices-dirs-$(CONFIG_SOFTMMU) += watchdog/ devices-dirs-$(CONFIG_SOFTMMU) += xen/ devices-dirs-$(CONFIG_MEM_HOTPLUG) += mem/ devices-dirs-$(CONFIG_SOFTMMU) += smbios/ +devices-dirs-$(CONFIG_VMBUS) += vmbus/ devices-dirs-y += core/ common-obj-y += $(devices-dirs-y) obj-y += $(devices-dirs-y)