From patchwork Tue Jun 27 10:03:17 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oleksandr Grytsov X-Patchwork-Id: 9811275 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 070356020A 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 EEE34285BF for ; Tue, 27 Jun 2017 10:05:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E392628614; Tue, 27 Jun 2017 10:05:53 +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 BD101285BF for ; Tue, 27 Jun 2017 10:05:52 +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 1dPnLO-0007DZ-1W; Tue, 27 Jun 2017 10:03:38 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dPnLN-0007DH-Ku for xen-devel@lists.xenproject.org; Tue, 27 Jun 2017 10:03:37 +0000 Received: from [85.158.137.68] by server-4.bemta-3.messagelabs.com id AB/47-02185-87D22595; Tue, 27 Jun 2017 10:03:36 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrPIsWRWlGSWpSXmKPExsVyMfS6i26FblC kwd8ObovvWyYzOTB6HP5whSWAMYo1My8pvyKBNePH191MBQvFK1buvcbYwDhXuIuRi0NIYDqj xKPLHUwgDovASxaJuw+Xs4M4EgL9rBI3e18COZxATpLE4UWvoewyiS2Ne5hBbCEBeYmDLZfZI eypTBKtHVUgNpuAlsT92yvYQGwRASWJe6smA23g4GAWSJHY+dsJxBQWsJW4d9MHpIJFQFWi7e USFhCbV8BBYuXbpUwQm+Qkbp7rZAYp5xRwlLjyRB1ikYPE14aprBMYBRYwMqxi1ChOLSpLLdI 1MtRLKspMzyjJTczM0TU0MNbLTS0uTkxPzUlMKtZLzs/dxAgMqnoGBsYdjD17/Q4xSnIwKYny rpYIihTiS8pPqcxILM6ILyrNSS0+xKjBwSHw8+nfFkYplrz8vFQlCd4gHaA6waLU9NSKtMwcY NjDlEpw8CiJ8JYdD4wU4i0uSMwtzkyHSJ1iNOa4cmXdFyaOKQe2f2ESApskJc7rBTJJAKQ0oz QPbhAsHi8xykoJ8zIyMDAI8RSkFuVmlqDKv2IU52BUEuadqA00hSczrwRu3yugU5iATmGZFwB ySkkiQkqqgXHap1ulMd9qJ30+e3iWdF+k8W+nYKf1F148uZTbv3nvzZXvOQ+WmOV2qS12ey5d axOp9/PTge3W1jXPpukXxD5+772b9c/aYuNra+IfH9N4myv/Yd2/1It3VirW8l4o+r7R+ElG5 8RWewlhGad/XGxNz3mtZbO9DGNmeedK1tkd/PS68dQzsbNKLMUZiYZazEXFiQDdy9U4wgIAAA == X-Env-Sender: al1img@gmail.com X-Msg-Ref: server-16.tower-31.messagelabs.com!1498557815!99952181!1 X-Originating-IP: [209.85.215.68] 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 64873 invoked from network); 27 Jun 2017 10:03:36 -0000 Received: from mail-lf0-f68.google.com (HELO mail-lf0-f68.google.com) (209.85.215.68) by server-16.tower-31.messagelabs.com with AES128-GCM-SHA256 encrypted SMTP; 27 Jun 2017 10:03:36 -0000 Received: by mail-lf0-f68.google.com with SMTP id g21so2306324lfk.1 for ; Tue, 27 Jun 2017 03:03:36 -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=JPvIVqNJmNjqpcaGvBIDqVGKvsJRhcqDAC0Bcn6DljE=; b=XWyQQbFH5BAriUhUn123JIH9S8m+KUoXyam17wW1DhSPCHlqIdag3iNQfy8LxrBBia xxwHSjDkLkYPrHJOqKeElUFP47T7Cc58nV+c8trFnO4Rr0B2bAAKT5ruHW8ywiQkXoQv mpli/E1Viov4X8YzORtH2g5xEASRmV0GUW48JbcB08kM7TLMsijXX1fjd8QLTkjKRIM+ IADkty4i/QHjAdCYAKhUlfy10746/mPutt8mgv0t49DULFzuQG7R0NcWVHSHORdc5eg6 Oxg2Gcd+5BAOy0rQxb8qNsjyip7gpLh/7NXkUGkeFpwnS6pko18nh0mKSdyX3NLIBlWY IyFg== 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=JPvIVqNJmNjqpcaGvBIDqVGKvsJRhcqDAC0Bcn6DljE=; b=P40B4FtGaPcsCfdu1QsUHH5zVV8ydkf4XdW3KsxBH4Ud7jT+q0Z2zPsz+33LtOLNWf q2vtovz4nfVwIPCwZkcfwbl4v9wDw6477RAe3nqi6rbftJi7XghYgDOkqBqApX9DoUOX UIuhiDab+Jxj+r1qV2q2uEzlZXPkdrfinOVG3OSa+G3yfYz6GBr5cQvooVrKd6fIS1zQ NsRVA8lifneozan9ipToY7sQRRpyNu9PvgaS4BVnzbPiXhzulTVCw4to/fpyPhsnYtMK UF6/WQqcXR3CYq94F5jD4QndCGvdPe4kIUsR9N8z4barJm3Dvg3dHylxsHooDJsndH4e ajdQ== X-Gm-Message-State: AKS2vOxD90FZzt4AbxnsT44RLb8vaaNa9xjUj7QskuBDTRLKidTsJRLy tjh8hvgVTcIIbxMmQSs= X-Received: by 10.46.21.15 with SMTP id s15mr1291034ljd.2.1498557815240; Tue, 27 Jun 2017 03:03:35 -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.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 27 Jun 2017 03:03:34 -0700 (PDT) From: Oleksandr Grytsov To: xen-devel@lists.xenproject.org Date: Tue, 27 Jun 2017 13:03:17 +0300 Message-Id: <1498557807-10810-2-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 01/11] libxl: add vdispl structures to idl 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 Add libxl_device_vdispl and libxl_vdisplinfo to libxl_types.idl Add VDISPL to libxl__device_kind enumerator Signed-off-by: Oleksandr Grytsov --- tools/libxl/libxl_types.idl | 38 +++++++++++++++++++++++++++++++++++- tools/libxl/libxl_types_internal.idl | 1 + 2 files changed, 38 insertions(+), 1 deletion(-) diff --git a/tools/libxl/libxl_types.idl b/tools/libxl/libxl_types.idl index 2204425..25563cf 100644 --- a/tools/libxl/libxl_types.idl +++ b/tools/libxl/libxl_types.idl @@ -755,7 +755,21 @@ libxl_device_vtpm = Struct("device_vtpm", [ ("backend_domname", string), ("devid", libxl_devid), ("uuid", libxl_uuid), -]) + ]) + +libxl_connector_param = Struct("connector_param", [ + ("id", string), + ("width", uint32), + ("height", uint32) + ]) + +libxl_device_vdispl = Struct("device_vdispl", [ + ("backend_domid", libxl_domid), + ("backend_domname", string), + ("devid", libxl_devid), + ("be_alloc", bool), + ("connectors", Array(libxl_connector_param, "num_connectors")) + ]) libxl_device_p9 = Struct("device_p9", [ ("backend_domid", libxl_domid), @@ -791,6 +805,7 @@ libxl_domain_config = Struct("domain_config", [ ("vkbs", Array(libxl_device_vkb, "num_vkbs")), ("vtpms", Array(libxl_device_vtpm, "num_vtpms")), ("p9", Array(libxl_device_p9, "num_p9s")), + ("vdispls", Array(libxl_device_vdispl, "num_vdispls")), # a channel manifests as a console with a name, # see docs/misc/channels.txt ("channels", Array(libxl_device_channel, "num_channels")), @@ -887,6 +902,27 @@ libxl_physinfo = Struct("physinfo", [ ("cap_hvm_directio", bool), ], dir=DIR_OUT) +libxl_connectorinfo = Struct("connectorinfo", [ + ("id", string), + ("width", uint32), + ("height", uint32), + ("req_evtch", integer), + ("req_rref", integer), + ("evt_evtch", integer), + ("evt_rref", integer), + ], dir=DIR_OUT) + +libxl_vdisplinfo = Struct("vdisplinfo", [ + ("backend", string), + ("backend_id", uint32), + ("frontend", string), + ("frontend_id", uint32), + ("devid", libxl_devid), + ("state", integer), + ("be_alloc", bool), + ("connectors", Array(libxl_connectorinfo, "num_connectors")) + ], dir=DIR_OUT) + # NUMA node characteristics: size and free are how much memory it has, and how # much of it is free, respectively. dists is an array of distances from this # node to each other node. diff --git a/tools/libxl/libxl_types_internal.idl b/tools/libxl/libxl_types_internal.idl index 7dc4d0f..673a6d5 100644 --- a/tools/libxl/libxl_types_internal.idl +++ b/tools/libxl/libxl_types_internal.idl @@ -26,6 +26,7 @@ libxl__device_kind = Enumeration("device_kind", [ (9, "VUSB"), (10, "QUSB"), (11, "9PFS"), + (12, "VDISPL"), ]) libxl__console_backend = Enumeration("console_backend", [