From patchwork Tue Oct 17 16:46:30 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupinder Thakur X-Patchwork-Id: 10012491 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 7C6B460211 for ; Tue, 17 Oct 2017 16:48:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 705A22899B for ; Tue, 17 Oct 2017 16:48:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 63DB62899D; Tue, 17 Oct 2017 16:48: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=-2.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, RCVD_IN_SORBS_WEB, 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 CD3252899B for ; Tue, 17 Oct 2017 16:48:53 +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 1e4V0y-0001l1-5I; Tue, 17 Oct 2017 16:46:48 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e4V0w-0001kc-6K for xen-devel@lists.xenproject.org; Tue, 17 Oct 2017 16:46:46 +0000 Received: from [193.109.254.147] by server-8.bemta-6.messagelabs.com id 2E/7A-13910-5F336E95; Tue, 17 Oct 2017 16:46:45 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrOIsWRWlGSWpSXmKPExsXiVRusp/vF+Fm kwZID5hbft0xmcmD0OPzhCksAYxRrZl5SfkUCa8byLVuZCn4IVHy8+ZmpgXEfbxcjF4eQwDRG iZaHV1hBHBaBecwSr7pXMIM4EgL9rBKrm2YDOZxATp7Eqv717F2MHEB2msSPNlOIcI3EqsUH2 UFsIQEtiaOnZrNCTG1hkrjXtJgZpJ5NwERiVocESI2IgJLEvVWTmUBqmAXmM0o0TeplA0kIC1 hLfD56ngXEZhFQlTjfvogRxOYV8JJ4c2kLC8QyOYmb5zrB7uEU8JZ4/mYSE8h8IaCaWbv1JjA KLmBkWMWoUZxaVJZapGtkqpdUlJmeUZKbmJmja2hgppebWlycmJ6ak5hUrJecn7uJERhwDECw g3HVgsBDjJIcTEqivM6GTyKF+JLyUyozEosz4otKc1KLDzHKcHAoSfDeMHoWKSRYlJqeWpGWm QMMfZi0BAePkghvOkiat7ggMbc4Mx0idYrRkuPYpst/mDj27bkFJDtu3v3DJMSSl5+XKiXOWw 3SIADSkFGaBzcOFp+XGGWlhHkZgQ4U4ilILcrNLEGVf8UozsGoJMybBzKFJzOvBG7rK6CDmIA OWuf0BOSgkkSElFQD42I1pg0HG2df4XmzafoJOxX/tY41PYxyf242vNR+IFf9dOPRtuDVCi8K Xfpqb2ZNdo/TPXySef8ekY5txVMVKqexT7nY12Oy030qy4krKoEzsi2iLEOFXv2T86+esZFDP rm1N+rOwvci7nvfa+86nJZ9xOBwcedpRtaKu9dXWxzu7t7W9UDjmBJLcUaioRZzUXEiAO5sTl /KAgAA X-Env-Sender: bhupinder.thakur@linaro.org X-Msg-Ref: server-7.tower-27.messagelabs.com!1508258803!107513135!1 X-Originating-IP: [74.125.83.46] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 9.4.45; banners=-,-,- X-VirusChecked: Checked Received: (qmail 34801 invoked from network); 17 Oct 2017 16:46:44 -0000 Received: from mail-pg0-f46.google.com (HELO mail-pg0-f46.google.com) (74.125.83.46) by server-7.tower-27.messagelabs.com with AES128-GCM-SHA256 encrypted SMTP; 17 Oct 2017 16:46:44 -0000 Received: by mail-pg0-f46.google.com with SMTP id p9so1860658pgc.8 for ; Tue, 17 Oct 2017 09:46:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=MnE5NtRGyMe5SOO6kiK8KYzQLBRqzQf1r23lPEo8Z4c=; b=Pkef47dkit3L3tfovbsDFWS1h62vG2lLKknb+xHF9AgATLkVb9AR+Bm7FhDWuoEiIi iQov/ud1lKGJCedxDYyzvS1Frm6kDJxYZ4iYz+JSTfgKtnyhUvkLDJc6QN0r/0OZlzd3 lsX7KzWZUHyE3J8LuO2V7pqDJ5rfRj4Xlb/Os= 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=MnE5NtRGyMe5SOO6kiK8KYzQLBRqzQf1r23lPEo8Z4c=; b=HvZx6qI03O+Qb2R1DatWRmz1UaIPfx+5QKTrazduRTXR7uUnmjLYUoI+7XGIzlFS2t YSlfetQqwEJBW1kdLwoxT9A8+eiQuy5Xybdzd5wt/24UuGO9y8wI258IMDOCGJX3Nbh8 XTSi1Lam1Z0LSRi4Vt3RMz7d4EbSh2G+a2ZNLv0c+oRdOk2KDbFubbxKlVHiWCOguITE r5RuSyZClRm5igAWsZf0YRelrCxUs5IiiguZ6PZq6HchxjNXbw+Vzd/biwHHuqNP+e6j hxaS0U3P1Pmz9Z8IEYtDBfR4B2pF0Bv2RH+OZwZvw0nbez+6xudsw6FiDM+I2ev0pBPy ApfQ== X-Gm-Message-State: AMCzsaVkBtum4iQHCU3PrrYzQmKfy9RjBAD0DhQv1jWmEvvUZGHnaae5 p583GQ32JGXkKCHk7AIPhiPoh/IZMv8= X-Google-Smtp-Source: AOwi7QCfShiYNeJM1OQgqpk5FhBKv33verkbq31PZSMoWaA2zFCbVlOA1NFH0QmVr4PS+ZO9IYWa8A== X-Received: by 10.159.216.140 with SMTP id s12mr12886542plp.318.1508258803279; Tue, 17 Oct 2017 09:46:43 -0700 (PDT) Received: from blr-ubuntu-linaro.wlan.qualcomm.com ([103.5.19.18]) by smtp.gmail.com with ESMTPSA id b3sm17926225pgr.81.2017.10.17.09.46.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 17 Oct 2017 09:46:42 -0700 (PDT) From: Bhupinder Thakur To: xen-devel@lists.xenproject.org Date: Tue, 17 Oct 2017 22:16:30 +0530 Message-Id: <1508258793-5690-2-git-send-email-bhupinder.thakur@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1508258793-5690-1-git-send-email-bhupinder.thakur@linaro.org> References: <1508258793-5690-1-git-send-email-bhupinder.thakur@linaro.org> Cc: Wei Liu , Julien Grall , Stefano Stabellini , Ian Jackson Subject: [Xen-devel] libxl: Change the type of console_mfn to xen_pfn_t 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 Signed-off-by: Bhupinder Thakur --- CC: Ian Jackson CC: Wei Liu CC: Stefano Stabellini CC: Julien Grall tools/libxl/libxl_console.c | 2 +- tools/libxl/libxl_dom.c | 2 +- tools/libxl/libxl_internal.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/libxl/libxl_console.c b/tools/libxl/libxl_console.c index 6bfc0e5..f2ca689 100644 --- a/tools/libxl/libxl_console.c +++ b/tools/libxl/libxl_console.c @@ -329,7 +329,7 @@ int libxl__device_console_add(libxl__gc *gc, uint32_t domid, flexarray_append(ro_front, "port"); flexarray_append(ro_front, GCSPRINTF("%"PRIu32, state->console_port)); flexarray_append(ro_front, "ring-ref"); - flexarray_append(ro_front, GCSPRINTF("%lu", state->console_mfn)); + flexarray_append(ro_front, GCSPRINTF("%"PRIu_xen_pfn, state->console_mfn)); } else { flexarray_append(front, "state"); flexarray_append(front, GCSPRINTF("%d", XenbusStateInitialising)); diff --git a/tools/libxl/libxl_dom.c b/tools/libxl/libxl_dom.c index ef834e6..a58e74f 100644 --- a/tools/libxl/libxl_dom.c +++ b/tools/libxl/libxl_dom.c @@ -869,7 +869,7 @@ out: static int hvm_build_set_params(xc_interface *handle, uint32_t domid, libxl_domain_build_info *info, int store_evtchn, unsigned long *store_mfn, - int console_evtchn, unsigned long *console_mfn, + int console_evtchn, xen_pfn_t *console_mfn, domid_t store_domid, domid_t console_domid) { struct hvm_info_table *va_hvm; diff --git a/tools/libxl/libxl_internal.h b/tools/libxl/libxl_internal.h index 45e6df6..f52aeb3 100644 --- a/tools/libxl/libxl_internal.h +++ b/tools/libxl/libxl_internal.h @@ -1128,7 +1128,7 @@ typedef struct { uint32_t console_port; uint32_t console_domid; - unsigned long console_mfn; + xen_pfn_t console_mfn; char *console_tty; char *saved_state;