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: 116144 Delivered-To: patch@linaro.org Received: by 10.80.163.170 with SMTP id s39csp1438385edb; Tue, 17 Oct 2017 09:48:36 -0700 (PDT) X-Received: by 10.36.108.81 with SMTP id w78mr6829115itb.140.1508258916531; Tue, 17 Oct 2017 09:48:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1508258916; cv=none; d=google.com; s=arc-20160816; b=yHFq+IjljHaidl+IKD1QRYgpXA68cqeHRyG/l+Ri+5tlGJWc+EerXGY33enQWSP2ws tu7xJ4DYfuvONxB7N4eyWgRqm3W9KPz5xXu9vYvyPqMU7zWHeskDXiOID0e+igeHoN/G Ei9KI416bZ5pm8FvNWzRC8XCfcl5c6DJl8u04U80cPz3z53jzAVthK3cqQmCkHblVJX4 vnmS+KAi8jixJsAinBpmRJIO3fAPTGc3GUkwmdIAg/m6EZ/vLEjMwOrv/xkub8W/i79d 5dRFSkEmd0qQi/s19w+7T6sZ4vDhsBjGU5jgwuVnWAlPA0qEoTOM76LIVpq6FqkCgs2e FXiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-unsubscribe:list-id :precedence:subject:cc:references:in-reply-to:message-id:date:to :from:dkim-signature:arc-authentication-results; bh=xZpY0QtrcD740RVI+RK70hE8SvWThPXpORbezJcucFo=; b=g1ztYP5G/6PWSreRqggExxdI9beToqDMBP9FBFD987lm8rmgM1loYV92/k8n9LY2J9 LoABAEw300e2xwFzaJK9v0RjV7HTocPWYUddu87GlM00Sx448ZxLGxiPFvK7ikfZiNDr acbVp9k9NqmoXeMXCuYXtp6beSGeJOOPVUg96V08vvAF0pOn8F1QPYHVJ4H41reu3ePA 9sNYkHOVIO+LmBtMM+nE5gpsuhfoOmz4hcpXEt+hvD4SttCudiRrwm+WgepmaWbYHbbF rV6GqxkDa7i8j5USsYVKXcCblz5IZ0ibBdNL5hw0wshsa8LZ7sY0/kjFlBeV383sXl7o XGFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Pkef47dk; spf=neutral (google.com: 192.237.175.120 is neither permitted nor denied by best guess record for domain of xen-devel-bounces@lists.xen.org) smtp.mailfrom=xen-devel-bounces@lists.xen.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org. [192.237.175.120]) by mx.google.com with ESMTPS id v12si7455484itb.163.2017.10.17.09.48.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Oct 2017 09:48:36 -0700 (PDT) Received-SPF: neutral (google.com: 192.237.175.120 is neither permitted nor denied by best guess record for domain of xen-devel-bounces@lists.xen.org) client-ip=192.237.175.120; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Pkef47dk; spf=neutral (google.com: 192.237.175.120 is neither permitted nor denied by best guess record for domain of xen-devel-bounces@lists.xen.org) smtp.mailfrom=xen-devel-bounces@lists.xen.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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" 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;