From patchwork Tue Jun 27 10:03:23 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oleksandr Grytsov X-Patchwork-Id: 9811279 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 E3EBF6020A for ; Tue, 27 Jun 2017 10:05:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D6C2828111 for ; Tue, 27 Jun 2017 10:05:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CB9812860C; Tue, 27 Jun 2017 10:05: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=-3.6 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RCVD_IN_SORBS_SPAM, 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 7F96828111 for ; Tue, 27 Jun 2017 10:05:54 +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 1dPnLV-0007JO-Et; Tue, 27 Jun 2017 10:03:45 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dPnLU-0007Hs-7a for xen-devel@lists.xenproject.org; Tue, 27 Jun 2017 10:03:44 +0000 Received: from [85.158.139.211] by server-17.bemta-5.messagelabs.com id 60/A5-19466-F7D22595; Tue, 27 Jun 2017 10:03:43 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrPIsWRWlGSWpSXmKPExsVyMfS6s26dblC kwZUOc4vvWyYzOTB6HP5whSWAMYo1My8pvyKBNePMvZyCb5wVh5fNYWlgXMbexcjFISQwnVHi zfKVTCAOi8BLFomb09axgTgSAv2sEkfPzARyOIGcJIltSz4yQ9gVEovnzGUBsYUE5CUOtlyGG jWVSeL35kdgRWwCWhL3b68AaxYRUJK4t2oy0AoODmaBFImdv51ATGGBMInN38xBKlgEVCU+7r 7CCGLzCjhILFk1lxVilZzEzXOdzCDlnAKOEleeqENsdZD42jCVdQKjwAJGhlWMGsWpRWWpRbr GBnpJRZnpGSW5iZk5uoYGpnq5qcXFiempOYlJxXrJ+bmbGIFBVc/AwLiDccIqv0OMkhxMSqK8 qyWCIoX4kvJTKjMSizPii0pzUosPMWpwcAj8fPq3hVGKJS8/L1VJgjdIB6hOsCg1PbUiLTMHG PYwpRIcPEoivGXHAyOFeIsLEnOLM9MhUqcYjTmuXFn3hYljyoHtX5iEwCZJifN6gUwSACnNKM 2DGwSLx0uMslLCvIwMDAxCPAWpRbmZJajyrxjFORiVhHknagNN4cnMK4Hb9wroFCagU1jmBYC cUpKIkJJqYOR44XVa4PijaQYn8wVvLe2Jm3X2elXG4xynLao3+mvX/hA4ulmfQ1Aw/19W7908 7m9vk5RSLte+k/7bxS/Kr2uUo2iZ95VxRuq7krUrq34sOakj+/VnQco144O1YQYGNd07M7nXq 5+QX131u3Tj9ri+GRGXP+m29JludlWO35gee0vfrvzpcyWW4oxEQy3mouJEAGlbMubCAgAA X-Env-Sender: al1img@gmail.com X-Msg-Ref: server-6.tower-206.messagelabs.com!1498557822!105054678!1 X-Originating-IP: [209.85.215.67] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 9.4.19; banners=-,-,- X-VirusChecked: Checked Received: (qmail 54110 invoked from network); 27 Jun 2017 10:03:42 -0000 Received: from mail-lf0-f67.google.com (HELO mail-lf0-f67.google.com) (209.85.215.67) by server-6.tower-206.messagelabs.com with AES128-GCM-SHA256 encrypted SMTP; 27 Jun 2017 10:03:42 -0000 Received: by mail-lf0-f67.google.com with SMTP id t72so2312656lff.0 for ; Tue, 27 Jun 2017 03:03:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=bHVP4aRjtavYYqwxYvHuDLAuIpmXMY3m7x7cqhJ1gbE=; b=nEUQg2xwskPLvBp2HjaHXQrlhPTTDQMiFgC4UHcA11KLw5FkRG30jo5NHxg83on2xP Bs1NrEbEMCSlolKSR+zfyUsWhowfVdbb7KxtndSZK3WR7paMEA8MxAx9ODFOtG+WkUnj jxiYx9swpEPL0TmRqQGWSF/A0DuhfOTvQAPi1osGix1LuaFGBAxYqtx8/CNnZ1FKft7e wd3ifwC8vWPqrfLyMGP7lNoumwZIccwgIYsgI1Gu+ZTx80TgjuHhtHmxJHALrHQm9wSt 5pjPgrMG4AI+NkwEkfvB6jzoOFG+dTI8BEKQaxOXMeTdviTFbBYNX+3pDpP1LXdU0dK9 h8Vg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=bHVP4aRjtavYYqwxYvHuDLAuIpmXMY3m7x7cqhJ1gbE=; b=rwAta0KNwui7/j9sksStWIlhAueHJbP2Nzk3U9KTpp3KNMXl9u7xFFIe9GzRZqKu+E SjJJpTBo/YQRomMjyoAk0Evi226oPxKZ4OTNnn+TgV7KTU5U3iBWdKZshQHbiHthpJmd WNeBwO0nScymCXICldz/AGmpQzOuvM7IAS/5q65i2/i+FXv7/xIt7VUP6wT8NoJc9Euo A6/LZB3NSs84rtgK122W9vtJwDFWOdpm2yKxnrF4jrfkGF6obas4mcv7K/xywt0BtIIQ tf0+JYh7vsdUFrUgqToPeQgwTNbxHL1YtEe6/F0Zx8X2fu3dQ8K9n6pdF4pzcN8NkDe9 MlFw== X-Gm-Message-State: AKS2vOyWiiYm+Z0tXzWlNzRQdsiZtfHZnkOTnuRKQUTya2eSk9sHo3hG z4jA37dtDdzJo/8/OUE= X-Received: by 10.46.77.197 with SMTP id c66mr1266773ljd.71.1498557822041; Tue, 27 Jun 2017 03:03:42 -0700 (PDT) Received: from al1-pc.kyiv.epam.com (ll-74.141.223.85.sovam.net.ua. [85.223.141.74]) by smtp.gmail.com with ESMTPSA id r82sm751763lfr.57.2017.06.27.03.03.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 27 Jun 2017 03:03:41 -0700 (PDT) From: Oleksandr Grytsov To: xen-devel@lists.xenproject.org Date: Tue, 27 Jun 2017 13:03:23 +0300 Message-Id: <1498557807-10810-8-git-send-email-al1img@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1498557807-10810-1-git-send-email-al1img@gmail.com> References: <1498557807-10810-1-git-send-email-al1img@gmail.com> Cc: wei.liu2@citrix.com, ian.jackson@eu.citrix.com, Oleksandr Grytsov Subject: [Xen-devel] [PATCH v3 07/11] libxl: implement device_from_vdispl and update_config_vdispl 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: , MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Oleksandr Grytsov Signed-off-by: Oleksandr Grytsov --- tools/libxl/libxl_vdispl.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tools/libxl/libxl_vdispl.c b/tools/libxl/libxl_vdispl.c index 1a6c8b7..ab90cb1 100644 --- a/tools/libxl/libxl_vdispl.c +++ b/tools/libxl/libxl_vdispl.c @@ -33,6 +33,13 @@ static int libxl__device_from_vdispl(libxl__gc *gc, uint32_t domid, libxl_device_vdispl *vdispl, libxl__device *device) { + device->backend_devid = vdispl->devid; + device->backend_domid = vdispl->backend_domid; + device->backend_kind = LIBXL__DEVICE_KIND_VDISPL; + device->devid = vdispl->devid; + device->domid = domid; + device->kind = LIBXL__DEVICE_KIND_VDISPL; + return 0; } @@ -49,7 +56,8 @@ static void libxl__update_config_vdispl(libxl__gc *gc, libxl_device_vdispl *dst, libxl_device_vdispl *src) { - + dst->devid = src->devid; + dst->be_alloc = src->be_alloc; } static int libxl_device_vdispl_compare(libxl_device_vdispl *d1,