From patchwork Fri Jul 28 16:42:13 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Marek_Marczykowski-G=C3=B3recki?= X-Patchwork-Id: 9869129 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 CB59660382 for ; Fri, 28 Jul 2017 16:44:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D7550288C6 for ; Fri, 28 Jul 2017 16:44:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C6DF5288D4; Fri, 28 Jul 2017 16:44:50 +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=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id ACADC288C6 for ; Fri, 28 Jul 2017 16:44:49 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1db8LN-0000HP-O1; Fri, 28 Jul 2017 16:42:29 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1db8LM-0000HE-S7 for xen-devel@lists.xen.org; Fri, 28 Jul 2017 16:42:29 +0000 Received: from [85.158.143.35] by server-8.bemta-6.messagelabs.com id B6/4D-09901-4796B795; Fri, 28 Jul 2017 16:42:28 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrEIsWRWlGSWpSXmKPExsXilM8iqVucWR1 pcH6LlsWSj4tZHBg9ju7+zRTAGMWamZeUX5HAmnFnhUXBBK6KpuPvWRsYV3J0MXJxCAmsYpQ4 MeMcaxcjJ5CTLTGn/wkrSIJF4CeLxIfz78ASEgKeEit/fWOEsJ0ljs2ZyQrRfQio+/AmFpAEm 0CoRPv2GWANIgLSEtc+X2YEKWIWmMsoMWPDR7YuRg4OYQE/iYN7MkBqWARUJf4fbGUCCfMK+E ucORQDMV9OYt+rBrBdvAKCEidnPmEBKWEWUJdYP08IJMwvoCSxbf1lsBJmAXmJ5q2zmScwCs5 C0jELoWMWkqoFjMyrGDWKU4vKUot0Dc30kooy0zNKchMzc3QNDcz0clOLixPTU3MSk4r1kvNz NzECQ5YBCHYw3t8YcIhRkoNJSZT3pll1pBBfUn5KZUZicUZ8UWlOavEhRhkODiUJ3sQMoJxgU Wp6akVaZg4wemDSEhw8SiK8miBp3uKCxNzizHSI1ClGY447fRu+MHG8mvD/G5MQS15+XqqUOO /jdKBSAZDSjNI8uEGwqL7EKCslzMsIdJoQT0FqUW5mCar8K0ZxDkYlYd6rIFN4MvNK4Pa9Ajq FCeiUiU2VIKeUJCKkpBoYewIrvGMmd296dGB6ak/TqUsi28zOOqqlrJcy3j1P4mijulC8Ik8m k/3RXbUMoqe/X3pywlyEm7nuWwZ/Xsyve33LezjLz8X1/7/c9JJt3ucnwpPKlGVElB58Vn5Zf 31mz/kZ+gyRKX9E2/5G26yebazly/Y3ctHmx6cUX+otaX7mzVdpd+y6EktxRqKhFnNRcSIAtq qO8uUCAAA= X-Env-Sender: marmarek@invisiblethingslab.com X-Msg-Ref: server-3.tower-21.messagelabs.com!1501260146!71999270!1 X-Originating-IP: [66.111.4.25] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTExLjQuMjUgPT4gNDQ5ODE=\n X-StarScan-Received: X-StarScan-Version: 9.4.25; banners=-,-,- X-VirusChecked: Checked Received: (qmail 45484 invoked from network); 28 Jul 2017 16:42:27 -0000 Received: from out1-smtp.messagingengine.com (HELO out1-smtp.messagingengine.com) (66.111.4.25) by server-3.tower-21.messagelabs.com with DHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 28 Jul 2017 16:42:27 -0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id B9DC020DC7; Fri, 28 Jul 2017 12:42:26 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute7.internal (MEProxy); Fri, 28 Jul 2017 12:42:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=fm1; bh=Bj5BcPgc6xrBlCFBf4 zYz3h9R4koB6nYnNogjZNFPi0=; b=ZvOmZ/RHdb19OtC0+EPU7dAoq7BTo1/DRs k3cC7boABowxO1jqTo/ObKRERYT/JEgNf0CHjKFD6fd52oL8FCjdagFloYynYU74 oHmPb+vE0Omf9Xk6TqVM+6Ccke8bgqGEB8VRg9kcO1uQiwblImJvk1uuYFg773HE kFJXkGMbf0tsbouF6Zt/JTpVE1xSELxHEB907/yJFomrTRjq0TXfv5QE99D4+bC2 jBEyDiLZdyU+M9Zw4q1DJV6FZRe7dWWY0ZjUvz3RdApc5q8lYsahIlBlIqAfZmQ+ 8H+bJwS/TVrLrXpxPDoRAzZEw5aKCoiApP87j5s1HEQBOzzLEI3Q== X-ME-Sender: X-Sasl-enc: 2ZplQS2UETudVF1WcLkQO7jQNEguyUh9HssOR/8wiv6b 1501260146 Received: from devel-3rdparty.localdomain (89-70-103-23.dynamic.chello.pl [89.70.103.23]) by mail.messagingengine.com (Postfix) with ESMTPA id C30DA7E5DF; Fri, 28 Jul 2017 12:42:25 -0400 (EDT) From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= To: xen-devel@lists.xen.org Date: Fri, 28 Jul 2017 18:42:13 +0200 Message-Id: <1501260134-11837-1-git-send-email-marmarek@invisiblethingslab.com> X-Mailer: git-send-email 2.7.5 MIME-Version: 1.0 Organization: Invisible Things Lab Cc: Wei Liu , Ian Jackson , =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Subject: [Xen-devel] [PATCH v2 1/2] libxl: use xen-blkback for 'vbd' disk types by default X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP This will allow later to make HVM domain without qemu in dom0 (in addition to the one in stubdomain). Signed-off-by: Marek Marczykowski-Górecki --- This is extracted from v1 of "libxl: do not start dom0 qemu for stubdomain when not needed". Signed-off-by: Marek Marczykowski-Górecki --- tools/libxl/libxl_disk.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/libxl/libxl_disk.c b/tools/libxl/libxl_disk.c index 63de75c..7842d9b 100644 --- a/tools/libxl/libxl_disk.c +++ b/tools/libxl/libxl_disk.c @@ -56,10 +56,12 @@ static void disk_eject_xswatch_callback(libxl__egc *egc, libxl__ev_xswatch *w, "/local/domain/%d/backend/%" TOSTRING(BACKEND_STRING_SIZE) "[a-z]/%*d/%*d", &disk->backend_domid, backend_type); - if (!strcmp(backend_type, "tap") || !strcmp(backend_type, "vbd")) { + if (!strcmp(backend_type, "tap")) { disk->backend = LIBXL_DISK_BACKEND_TAP; } else if (!strcmp(backend_type, "qdisk")) { disk->backend = LIBXL_DISK_BACKEND_QDISK; + } else if (!strcmp(backend_type, "vbd")) { + disk->backend = LIBXL_DISK_BACKEND_PHY; } else { disk->backend = LIBXL_DISK_BACKEND_UNKNOWN; }