From xen-api-bounces@lists.xen.org Thu Jan 19 19:59:12 2017
Return-path: <xen-api-bounces@lists.xen.org>
Envelope-to: archives@lists.xen.org
Delivery-date: Thu, 19 Jan 2017 19:59:12 +0000
Received: from localhost ([127.0.0.1] helo=lists.xenproject.org)
	by lists.xenproject.org with esmtp (Exim 4.84_2)
	(envelope-from <xen-api-bounces@lists.xen.org>)
	id 1cUIrD-0001pB-1b; Thu, 19 Jan 2017 19:58:51 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
 by lists.xenproject.org with esmtp (Exim 4.84_2)
 (envelope-from <michrozis@gmail.com>) id 1cUIrB-0001p5-U7
 for xen-api@lists.xen.org; Thu, 19 Jan 2017 19:58:50 +0000
Received: from [85.158.139.211] by server-13.bemta-5.messagelabs.com id
 26/38-18129-97A11885; Thu, 19 Jan 2017 19:58:49 +0000
X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrJIsWRWlGSWpSXmKPExsVyMfTqZt0KqcY
 Igys3ZCyOz9rH4sDocXT3b6YAxijWzLyk/IoE1oz3J3pZCtazVsw4Yt/AeJyli5GLQ0hgAqPE
 2VWLGEEcFoE7LBLHX18By0gI/GCRuPf6L3MXIyeQkyPR+PkNaxcjB5BdJHH0sA1ImFdAUOLkz
 CcsILaQgLdE35r1jCAlbAJqElv/2oGEWQRUJc4ffg4W5hUIkDi5ng8kLCzgJTHv9XF2EFtEQF
 Li/qkbrCA2M1D8xbYvjBMYeWchWTALSWoW0CRmAXWJ9fOEIMJqEre3XWVfwMiyilGjOLWoLLV
 I19BSL6koMz2jJDcxM0fX0MBULze1uDgxPTUnMalYLzk/dxMjMNDqGRgYdzA+6vc7xCjJwaQk
 yrv7Y0OEEF9SfkplRmJxRnxRaU5q8SFGGQ4OJQneAMnGCCHBotT01Iq0zBxgyMOkJTh4lER4r
 4OkeYsLEnOLM9MhUqcY7Tl6uk6/ZOL4svMMkDz16QKQ3LPr8ksmIZa8/LxUKXHeGSBtAiBtGa
 V5cENhMXqJUVZKmJeRgYFBiKcgtSg3swRV/hWjOAejkjDvNwmgKTyZeSVwu18BncUEdJaVcj3
 IWSWJCCmpBsbgrLm/pz6+/Ob6B4bMEyevVti5fk6Zt33hRMUrrjJSJzcpXb78ePr5nY6Be5ZN
 Cy6a1qPotWfflLNnyqTUKg09mPMM5i5eZB22h3tR7eMqkxytxybBUivX6ey+XRnYmKVx839EP
 7tLkupqrvrdvBLVlrP7avJszis9mXj1/Yy77xcz/c1jvfBBiaU4I9FQi7moOBEAKN+bQMwCAA
 A=
X-Env-Sender: michrozis@gmail.com
X-Msg-Ref: server-3.tower-206.messagelabs.com!1484855927!77220878!1
X-Originating-IP: [209.85.213.179]
X-SpamReason: No, hits=1.2 required=7.0 tests=HTML_10_20,HTML_MESSAGE,
 RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 9.1.1; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 29265 invoked from network); 19 Jan 2017 19:58:48 -0000
Received: from mail-yb0-f179.google.com (HELO mail-yb0-f179.google.com)
 (209.85.213.179)
 by server-3.tower-206.messagelabs.com with AES128-GCM-SHA256 encrypted SMTP;
 19 Jan 2017 19:58:48 -0000
Received: by mail-yb0-f179.google.com with SMTP id 123so33729886ybe.3
 for <xen-api@lists.xen.org>; Thu, 19 Jan 2017 11:58:48 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=mime-version:from:date:message-id:subject:to;
 bh=ZFL2lK9enSC/AnDMOdo6QiPokltJEwbyFRnpcm5utU8=;
 b=blAcAjNRoCowYjiqg75FQYyAJ3+CleM44unCRsu0YaSkKUhNc1ReFEForPbyANZw1Q
 6DiSLL6BDrAhLCGwtM3Ssec1hwWjU37n3M3xxNX9vAiAhYMGKMbPChvBNIlCFWCCilDh
 TDJ8rd4rwiDheXaTCT64+imVbYfpTmMfRwGR/YnOZB3YpJFf+yG7wNQtyFp8eMFmgTvc
 rD37QNf4tHntdfO/43rgUJERXBv9GWrN2L/5By0uPfc+NSNta40HGqP9id+mrmNCNSUL
 cGHjU4ZVfvkaKbXOIVWmG/4UKgYAtsFlK23MLV1n2d6W8cjPrixMLPam8WCBMaHdpCGS
 Sbvw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
 bh=ZFL2lK9enSC/AnDMOdo6QiPokltJEwbyFRnpcm5utU8=;
 b=nnvTzKvMmQ6sJrhamzUzZynDvaRgRqtTeectQoyQmspoo0bAFewpfR1FzhGMhyA2MV
 5R+Sn/522kdLN/vdK/O15/lZdlng9+uSul1MWhFVi9s4j4gnLykSZ2u643aQBzlm7KLu
 sNAQTkWW4w5ze/2FFNecZVO728Bt8KMa8csFAdQ1If8/0/2B3mun+5sW+O9XWgWQQDCl
 h4JMIdKv6T8sqzUWr9PxnjD4c/sjRwjJepo2hRf/e0RPlxYojztFbG2/Rtdp3xpJCQkx
 1OkIGobeW+SL/kW9zNVSRvFTZyfE8OWfN78JQxF7kl+koUSIQbZ+OlNdObYm+S1+UJ0V
 B9Yg==
X-Gm-Message-State: AIkVDXJyBj2w7BQm1e00NS4dpTZro3RnP0j0mNIFD1+YYjrEPHhzOLkYx3Xerz7fz8SK02EztXPJeZdGbOfm0g==
X-Received: by 10.237.40.39 with SMTP id r36mr9547802qtd.282.1484855927222;
 Thu, 19 Jan 2017 11:58:47 -0800 (PST)
MIME-Version: 1.0
Received: by 10.12.170.220 with HTTP; Thu, 19 Jan 2017 11:58:46 -0800 (PST)
From: Michalis R <michrozis@gmail.com>
Date: Thu, 19 Jan 2017 21:58:46 +0200
Message-ID: <CAC1MPCObyLP9WxX5d6YxqB1TNV-xRHp68PEpY=K82YOtUVq_pQ@mail.gmail.com>
To: xen-api@lists.xen.org
Subject: [Xen-API] local domid of PV guest inside its kernel (prefered) or
	userspace
X-BeenThere: xen-api@lists.xen.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: User and development list for XCP and XAPI <xen-api.lists.xen.org>
List-Unsubscribe: <https://lists.xen.org/cgi-bin/mailman/options/xen-api>,
 <mailto:xen-api-request@lists.xen.org?subject=unsubscribe>
List-Post: <mailto:xen-api@lists.xen.org>
List-Help: <mailto:xen-api-request@lists.xen.org?subject=help>
List-Subscribe: <https://lists.xen.org/cgi-bin/mailman/listinfo/xen-api>,
 <mailto:xen-api-request@lists.xen.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============2903031212259041849=="
Errors-To: xen-api-bounces@lists.xen.org
Sender: "Xen-api" <xen-api-bounces@lists.xen.org>

--===============2903031212259041849==
Content-Type: multipart/alternative; boundary=001a11487ff415c0b3054677f647

--001a11487ff415c0b3054677f647
Content-Type: text/plain; charset=UTF-8

Hi
Is there any way to get the domid of the running PV Guest?
For example if from dom0 I have created a guest with domain id 42, I
need to get this domid number (not hardwired) either in guest
userspace or guest kernel.

Thanks

--001a11487ff415c0b3054677f647
Content-Type: text/html; charset=UTF-8

<div dir="ltr"><pre>Hi
Is there any way to get the domid of the running PV Guest?
For example if from dom0 I have created a guest with domain id 42, I
need to get this domid number (not hardwired) either in guest userspace or guest kernel.<br><br></pre><pre>Thanks<br></pre></div>

--001a11487ff415c0b3054677f647--


--===============2903031212259041849==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline

X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KWGVuLWFwaSBt
YWlsaW5nIGxpc3QKWGVuLWFwaUBsaXN0cy54ZW4ub3JnCmh0dHBzOi8vbGlzdHMueGVuLm9yZy9j
Z2ktYmluL21haWxtYW4vbGlzdGluZm8veGVuLWFwaQo=

--===============2903031212259041849==--


From xen-api-bounces@lists.xen.org Thu Jan 19 19:59:12 2017
Return-path: <xen-api-bounces@lists.xen.org>
Envelope-to: archives@lists.xen.org
Delivery-date: Thu, 19 Jan 2017 19:59:12 +0000
Received: from localhost ([127.0.0.1] helo=lists.xenproject.org)
	by lists.xenproject.org with esmtp (Exim 4.84_2)
	(envelope-from <xen-api-bounces@lists.xen.org>)
	id 1cUIrD-0001pB-1b; Thu, 19 Jan 2017 19:58:51 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
 by lists.xenproject.org with esmtp (Exim 4.84_2)
 (envelope-from <michrozis@gmail.com>) id 1cUIrB-0001p5-U7
 for xen-api@lists.xen.org; Thu, 19 Jan 2017 19:58:50 +0000
Received: from [85.158.139.211] by server-13.bemta-5.messagelabs.com id
 26/38-18129-97A11885; Thu, 19 Jan 2017 19:58:49 +0000
X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrJIsWRWlGSWpSXmKPExsVyMfTqZt0KqcY
 Igys3ZCyOz9rH4sDocXT3b6YAxijWzLyk/IoE1oz3J3pZCtazVsw4Yt/AeJyli5GLQ0hgAqPE
 2VWLGEEcFoE7LBLHX18By0gI/GCRuPf6L3MXIyeQkyPR+PkNaxcjB5BdJHH0sA1ImFdAUOLkz
 CcsILaQgLdE35r1jCAlbAJqElv/2oGEWQRUJc4ffg4W5hUIkDi5ng8kLCzgJTHv9XF2EFtEQF
 Li/qkbrCA2M1D8xbYvjBMYeWchWTALSWoW0CRmAXWJ9fOEIMJqEre3XWVfwMiyilGjOLWoLLV
 I19BSL6koMz2jJDcxM0fX0MBULze1uDgxPTUnMalYLzk/dxMjMNDqGRgYdzA+6vc7xCjJwaQk
 yrv7Y0OEEF9SfkplRmJxRnxRaU5q8SFGGQ4OJQneAMnGCCHBotT01Iq0zBxgyMOkJTh4lER4r
 4OkeYsLEnOLM9MhUqcY7Tl6uk6/ZOL4svMMkDz16QKQ3LPr8ksmIZa8/LxUKXHeGSBtAiBtGa
 V5cENhMXqJUVZKmJeRgYFBiKcgtSg3swRV/hWjOAejkjDvNwmgKTyZeSVwu18BncUEdJaVcj3
 IWSWJCCmpBsbgrLm/pz6+/Ob6B4bMEyevVti5fk6Zt33hRMUrrjJSJzcpXb78ePr5nY6Be5ZN
 Cy6a1qPotWfflLNnyqTUKg09mPMM5i5eZB22h3tR7eMqkxytxybBUivX6ey+XRnYmKVx839EP
 7tLkupqrvrdvBLVlrP7avJszis9mXj1/Yy77xcz/c1jvfBBiaU4I9FQi7moOBEAKN+bQMwCAA
 A=
X-Env-Sender: michrozis@gmail.com
X-Msg-Ref: server-3.tower-206.messagelabs.com!1484855927!77220878!1
X-Originating-IP: [209.85.213.179]
X-SpamReason: No, hits=1.2 required=7.0 tests=HTML_10_20,HTML_MESSAGE,
 RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 9.1.1; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 29265 invoked from network); 19 Jan 2017 19:58:48 -0000
Received: from mail-yb0-f179.google.com (HELO mail-yb0-f179.google.com)
 (209.85.213.179)
 by server-3.tower-206.messagelabs.com with AES128-GCM-SHA256 encrypted SMTP;
 19 Jan 2017 19:58:48 -0000
Received: by mail-yb0-f179.google.com with SMTP id 123so33729886ybe.3
 for <xen-api@lists.xen.org>; Thu, 19 Jan 2017 11:58:48 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=mime-version:from:date:message-id:subject:to;
 bh=ZFL2lK9enSC/AnDMOdo6QiPokltJEwbyFRnpcm5utU8=;
 b=blAcAjNRoCowYjiqg75FQYyAJ3+CleM44unCRsu0YaSkKUhNc1ReFEForPbyANZw1Q
 6DiSLL6BDrAhLCGwtM3Ssec1hwWjU37n3M3xxNX9vAiAhYMGKMbPChvBNIlCFWCCilDh
 TDJ8rd4rwiDheXaTCT64+imVbYfpTmMfRwGR/YnOZB3YpJFf+yG7wNQtyFp8eMFmgTvc
 rD37QNf4tHntdfO/43rgUJERXBv9GWrN2L/5By0uPfc+NSNta40HGqP9id+mrmNCNSUL
 cGHjU4ZVfvkaKbXOIVWmG/4UKgYAtsFlK23MLV1n2d6W8cjPrixMLPam8WCBMaHdpCGS
 Sbvw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
 bh=ZFL2lK9enSC/AnDMOdo6QiPokltJEwbyFRnpcm5utU8=;
 b=nnvTzKvMmQ6sJrhamzUzZynDvaRgRqtTeectQoyQmspoo0bAFewpfR1FzhGMhyA2MV
 5R+Sn/522kdLN/vdK/O15/lZdlng9+uSul1MWhFVi9s4j4gnLykSZ2u643aQBzlm7KLu
 sNAQTkWW4w5ze/2FFNecZVO728Bt8KMa8csFAdQ1If8/0/2B3mun+5sW+O9XWgWQQDCl
 h4JMIdKv6T8sqzUWr9PxnjD4c/sjRwjJepo2hRf/e0RPlxYojztFbG2/Rtdp3xpJCQkx
 1OkIGobeW+SL/kW9zNVSRvFTZyfE8OWfN78JQxF7kl+koUSIQbZ+OlNdObYm+S1+UJ0V
 B9Yg==
X-Gm-Message-State: AIkVDXJyBj2w7BQm1e00NS4dpTZro3RnP0j0mNIFD1+YYjrEPHhzOLkYx3Xerz7fz8SK02EztXPJeZdGbOfm0g==
X-Received: by 10.237.40.39 with SMTP id r36mr9547802qtd.282.1484855927222;
 Thu, 19 Jan 2017 11:58:47 -0800 (PST)
MIME-Version: 1.0
Received: by 10.12.170.220 with HTTP; Thu, 19 Jan 2017 11:58:46 -0800 (PST)
From: Michalis R <michrozis@gmail.com>
Date: Thu, 19 Jan 2017 21:58:46 +0200
Message-ID: <CAC1MPCObyLP9WxX5d6YxqB1TNV-xRHp68PEpY=K82YOtUVq_pQ@mail.gmail.com>
To: xen-api@lists.xen.org
Subject: [Xen-API] local domid of PV guest inside its kernel (prefered) or
	userspace
X-BeenThere: xen-api@lists.xen.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: User and development list for XCP and XAPI <xen-api.lists.xen.org>
List-Unsubscribe: <https://lists.xen.org/cgi-bin/mailman/options/xen-api>,
 <mailto:xen-api-request@lists.xen.org?subject=unsubscribe>
List-Post: <mailto:xen-api@lists.xen.org>
List-Help: <mailto:xen-api-request@lists.xen.org?subject=help>
List-Subscribe: <https://lists.xen.org/cgi-bin/mailman/listinfo/xen-api>,
 <mailto:xen-api-request@lists.xen.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============2903031212259041849=="
Errors-To: xen-api-bounces@lists.xen.org
Sender: "Xen-api" <xen-api-bounces@lists.xen.org>

--===============2903031212259041849==
Content-Type: multipart/alternative; boundary=001a11487ff415c0b3054677f647

--001a11487ff415c0b3054677f647
Content-Type: text/plain; charset=UTF-8

Hi
Is there any way to get the domid of the running PV Guest?
For example if from dom0 I have created a guest with domain id 42, I
need to get this domid number (not hardwired) either in guest
userspace or guest kernel.

Thanks

--001a11487ff415c0b3054677f647
Content-Type: text/html; charset=UTF-8

<div dir="ltr"><pre>Hi
Is there any way to get the domid of the running PV Guest?
For example if from dom0 I have created a guest with domain id 42, I
need to get this domid number (not hardwired) either in guest userspace or guest kernel.<br><br></pre><pre>Thanks<br></pre></div>

--001a11487ff415c0b3054677f647--


--===============2903031212259041849==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline

X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KWGVuLWFwaSBt
YWlsaW5nIGxpc3QKWGVuLWFwaUBsaXN0cy54ZW4ub3JnCmh0dHBzOi8vbGlzdHMueGVuLm9yZy9j
Z2ktYmluL21haWxtYW4vbGlzdGluZm8veGVuLWFwaQo=

--===============2903031212259041849==--


From xen-api-bounces@lists.xen.org Fri Jan 20 00:41:06 2017
Return-path: <xen-api-bounces@lists.xen.org>
Envelope-to: archives@lists.xen.org
Delivery-date: Fri, 20 Jan 2017 00:41:06 +0000
Received: from localhost ([127.0.0.1] helo=lists.xenproject.org)
	by lists.xenproject.org with esmtp (Exim 4.84_2)
	(envelope-from <xen-api-bounces@lists.xen.org>)
	id 1cUNGD-0004Ko-OY; Fri, 20 Jan 2017 00:40:57 +0000
Received: from mail6.bemta6.messagelabs.com ([193.109.254.103])
 by lists.xenproject.org with esmtp (Exim 4.84_2)
 (envelope-from <michrozis@gmail.com>) id 1cUNGD-0004Ki-CN
 for xen-api@lists.xen.org; Fri, 20 Jan 2017 00:40:57 +0000
Received: from [193.109.254.147] by server-3.bemta-6.messagelabs.com id
 EC/BC-09053-89C51885; Fri, 20 Jan 2017 00:40:56 +0000
X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrAIsWRWlGSWpSXmKPExsVyMXThat3pMY0
 RBufuKlkcn7WPxYHR4+ju30wBjFGsmXlJ+RUJrBnrd61gK5jGV7G35S1bA2MTTxcjF4eQwARG
 iRnzpjKDOCwCd1gkbp89AeRwckgI/GCRWNbND2HnSCw//w0qni+x+eMHVhCbV0BQ4uTMJywgt
 pCAt8SbtT8Yuxg5ONgE1CS2/rUDCbMIqEo0/nzACFEeINH85y9YubCAr8SjJ6+ZQGwRAUmJ+6
 dugI1kFvCSmH3xIOsERt5ZSDbMQpKaBbSBWUBdYv08IYiwmsTtbVfZIWxtiWULXzMvYGRdxah
 enFpUllqka6GXVJSZnlGSm5iZo2toYKaXm1pcnJiempOYVKyXnJ+7iREYggxAsINx9mX/Q4yS
 HExKory7PzZECPEl5adUZiQWZ8QXleakFh9ilOHgUJLgzY5ujBASLEpNT61Iy8wBRgNMWoKDR
 0mEdw5Imre4IDG3ODMdInWK0ZKjp+v0SyaOUxtA5J5dl18yCbHk5eelSonzRoA0CIA0ZJTmwY
 2DRewlRlkpYV5GoAOFeApSi3IzS1DlXzGKczAqCfPmg0zhycwrgdv6CuggJqCDrJTrQQ4qSUR
 ISTUw1uifu2q49aFUVe3m4rf3vGZ6Ga64vbWMv4+deY3MTofkM/tOzZ0sf7zDz++oR8kb+9o5
 C9ZkPyp2DxB7yfzk9fRPyikFOw+ekyu44mkY9YL3+o1/QZ/32NsENC7n/njvU2/JzjzhzkjZi
 d/2+KvkPHtSq3lcaWq8Yqfgb3EJF7HPBztCooJ8lViKMxINtZiLihMBkLCd5NMCAAA=
X-Env-Sender: michrozis@gmail.com
X-Msg-Ref: server-14.tower-27.messagelabs.com!1484872854!70382514!1
X-Originating-IP: [209.85.161.171]
X-SpamReason: No, hits=1.7 required=7.0 tests=BODY_RANDOM_LONG,
 HTML_10_20,HTML_MESSAGE,RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 9.1.1; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 32126 invoked from network); 20 Jan 2017 00:40:55 -0000
Received: from mail-yw0-f171.google.com (HELO mail-yw0-f171.google.com)
 (209.85.161.171)
 by server-14.tower-27.messagelabs.com with AES128-GCM-SHA256 encrypted SMTP;
 20 Jan 2017 00:40:55 -0000
Received: by mail-yw0-f171.google.com with SMTP id l19so58261866ywc.2
 for <xen-api@lists.xen.org>; Thu, 19 Jan 2017 16:40:55 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=mime-version:from:date:message-id:subject:to;
 bh=I5UbbMbGxtZ3ZAnd0sJlArxu6CvmpzZsnuf2IfvtYOY=;
 b=AVxFkerB+4qJmTlVYNOL/SsmCwKyQBxiu5RhvFJKrGMauzXrXNXiaobZAIJz60Q5gn
 r77ZzXdr/mtELCq/TeHS/e6v3bwOIQyW7fyQ070UFdzg/lIjvv9331dc55k4V7cMLKfU
 aNhLsHx8Ng0IaQBI3p84ulKCeMKAHUi2wZ6y/eE9Xd6ohEKeXkhw5YbRo4TexMqro6EC
 Xen6olO8jaZ4C0nc7HTPSnNhrjg7DbMAfBPLnYFSs44PYFuqlYu93wdzLsFlqOlxcyBx
 ol4hWbQZdhVTOXCU4Z0ZmGxqFEXH5BW6miLgZ7uGhHAhQ+R/BmQiZcViuYVBS1bPfcS6
 Bm/g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
 bh=I5UbbMbGxtZ3ZAnd0sJlArxu6CvmpzZsnuf2IfvtYOY=;
 b=skGBdRf0K33MyW0+V0yUWKeKmAp2248+Uu4FtCqB2CRSDkTjMWC7MZEUmjKJ2gv6il
 LvB7xwCZi/MxpsalRymUgCj1BBWz2y2CP2CahdmsEYqisucoj0/gS6I/Av9cNWomOiaG
 nbVa4Hoo2AoRC+DyrR71Sa2EM3x/GvWBXrQy7KdAQ9xvXhFnAIKSBMl3m94S15Iz/hzE
 hfY8CzP26vqVL70k/4S4qwCmTetTv//g1Inukwj1cz4b496xAwTMaWlvnLUGfCiz4cwd
 cAYQn/sM+eH9irA8sUkJdf0/5KpTewq50jCv589XUc/6k1KL15/R7jfI56irn3e1J1jN
 5SsQ==
X-Gm-Message-State: AIkVDXIPe1Z1/Dkx5oBbBHgFbI6d/GOB4xJajDReLDNYh2Zqo+l+PPMB+l3FdAmZGjyG8CdEyhYPjjS0gyOdeA==
X-Received: by 10.237.42.1 with SMTP id c1mr9756865qtd.10.1484872854153; Thu,
 19 Jan 2017 16:40:54 -0800 (PST)
MIME-Version: 1.0
Received: by 10.12.170.220 with HTTP; Thu, 19 Jan 2017 16:40:53 -0800 (PST)
From: Michalis R <michrozis@gmail.com>
Date: Fri, 20 Jan 2017 02:40:53 +0200
Message-ID: <CAC1MPCPkOn0AvXi59eb9dCv4pjTC=2b1AeE05XGoj2KLTvYpZA@mail.gmail.com>
To: xen-api@lists.xen.org
Subject: [Xen-API] continuous address space with multiple pages between
	different domUs
X-BeenThere: xen-api@lists.xen.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: User and development list for XCP and XAPI <xen-api.lists.xen.org>
List-Unsubscribe: <https://lists.xen.org/cgi-bin/mailman/options/xen-api>,
 <mailto:xen-api-request@lists.xen.org?subject=unsubscribe>
List-Post: <mailto:xen-api@lists.xen.org>
List-Help: <mailto:xen-api-request@lists.xen.org?subject=help>
List-Subscribe: <https://lists.xen.org/cgi-bin/mailman/listinfo/xen-api>,
 <mailto:xen-api-request@lists.xen.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============5927603390006414784=="
Errors-To: xen-api-bounces@lists.xen.org
Sender: "Xen-api" <xen-api-bounces@lists.xen.org>

--===============5927603390006414784==
Content-Type: multipart/alternative; boundary=001a113e0ad2023a0305467be7c6

--001a113e0ad2023a0305467be7c6
Content-Type: text/plain; charset=UTF-8

Hi
I want to make a continuous address space between two different guest
domains.
In particular I want to make a read/write queue, so that both domains, can
have an address where they can memcpy from/to data.
For example:
I want 64k bytes space in kernel to act as a queue.
I thought of allocating 16 pages in one domain (16*PAGE SIZE=64k),
grant_foreign_access to foreign guest (so I now have 16 gref id's) and map
these gref_ids in foreign guest.
But I have a question:
- How can each side, access the allocated memory as continuous space, and
not 16 different spaces?
For one page, i alloc_page(...), and then use addr = page_address(page) so
I can memcpy to addr bytes up to 4k long. What about more pages?

--001a113e0ad2023a0305467be7c6
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div><div><div><div><div><div><div><div>Hi<br></div>I want=
 to make a continuous address space between two different guest domains. <b=
r></div>In particular I want to make a read/write queue, so that both domai=
ns, can have an address where they can memcpy from/to data.<br></div>For ex=
ample:<br></div>I want 64k bytes space in kernel to act as a queue.<br></di=
v>I thought of allocating 16 pages in one domain (16*PAGE SIZE=3D64k), gran=
t_foreign_access to foreign guest (so I now have 16 gref id&#39;s) and map =
these gref_ids in foreign guest.<br></div>But I have a question:<br></div>-=
 How can each side, access the allocated memory as continuous space, and no=
t 16 different spaces?<br></div>For one page, i alloc_page(...), and then u=
se addr =3D page_address(page) so I can memcpy to addr bytes up to 4k long.=
 What about more pages?<br></div>

--001a113e0ad2023a0305467be7c6--


--===============5927603390006414784==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline

X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KWGVuLWFwaSBt
YWlsaW5nIGxpc3QKWGVuLWFwaUBsaXN0cy54ZW4ub3JnCmh0dHBzOi8vbGlzdHMueGVuLm9yZy9j
Z2ktYmluL21haWxtYW4vbGlzdGluZm8veGVuLWFwaQo=

--===============5927603390006414784==--


From xen-api-bounces@lists.xen.org Fri Jan 20 00:41:06 2017
Return-path: <xen-api-bounces@lists.xen.org>
Envelope-to: archives@lists.xen.org
Delivery-date: Fri, 20 Jan 2017 00:41:06 +0000
Received: from localhost ([127.0.0.1] helo=lists.xenproject.org)
	by lists.xenproject.org with esmtp (Exim 4.84_2)
	(envelope-from <xen-api-bounces@lists.xen.org>)
	id 1cUNGD-0004Ko-OY; Fri, 20 Jan 2017 00:40:57 +0000
Received: from mail6.bemta6.messagelabs.com ([193.109.254.103])
 by lists.xenproject.org with esmtp (Exim 4.84_2)
 (envelope-from <michrozis@gmail.com>) id 1cUNGD-0004Ki-CN
 for xen-api@lists.xen.org; Fri, 20 Jan 2017 00:40:57 +0000
Received: from [193.109.254.147] by server-3.bemta-6.messagelabs.com id
 EC/BC-09053-89C51885; Fri, 20 Jan 2017 00:40:56 +0000
X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrAIsWRWlGSWpSXmKPExsVyMXThat3pMY0
 RBufuKlkcn7WPxYHR4+ju30wBjFGsmXlJ+RUJrBnrd61gK5jGV7G35S1bA2MTTxcjF4eQwARG
 iRnzpjKDOCwCd1gkbp89AeRwckgI/GCRWNbND2HnSCw//w0qni+x+eMHVhCbV0BQ4uTMJywgt
 pCAt8SbtT8Yuxg5ONgE1CS2/rUDCbMIqEo0/nzACFEeINH85y9YubCAr8SjJ6+ZQGwRAUmJ+6
 dugI1kFvCSmH3xIOsERt5ZSDbMQpKaBbSBWUBdYv08IYiwmsTtbVfZIWxtiWULXzMvYGRdxah
 enFpUllqka6GXVJSZnlGSm5iZo2toYKaXm1pcnJiempOYVKyXnJ+7iREYggxAsINx9mX/Q4yS
 HExKory7PzZECPEl5adUZiQWZ8QXleakFh9ilOHgUJLgzY5ujBASLEpNT61Iy8wBRgNMWoKDR
 0mEdw5Imre4IDG3ODMdInWK0ZKjp+v0SyaOUxtA5J5dl18yCbHk5eelSonzRoA0CIA0ZJTmwY
 2DRewlRlkpYV5GoAOFeApSi3IzS1DlXzGKczAqCfPmg0zhycwrgdv6CuggJqCDrJTrQQ4qSUR
 ISTUw1uifu2q49aFUVe3m4rf3vGZ6Ga64vbWMv4+deY3MTofkM/tOzZ0sf7zDz++oR8kb+9o5
 C9ZkPyp2DxB7yfzk9fRPyikFOw+ekyu44mkY9YL3+o1/QZ/32NsENC7n/njvU2/JzjzhzkjZi
 d/2+KvkPHtSq3lcaWq8Yqfgb3EJF7HPBztCooJ8lViKMxINtZiLihMBkLCd5NMCAAA=
X-Env-Sender: michrozis@gmail.com
X-Msg-Ref: server-14.tower-27.messagelabs.com!1484872854!70382514!1
X-Originating-IP: [209.85.161.171]
X-SpamReason: No, hits=1.7 required=7.0 tests=BODY_RANDOM_LONG,
 HTML_10_20,HTML_MESSAGE,RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 9.1.1; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 32126 invoked from network); 20 Jan 2017 00:40:55 -0000
Received: from mail-yw0-f171.google.com (HELO mail-yw0-f171.google.com)
 (209.85.161.171)
 by server-14.tower-27.messagelabs.com with AES128-GCM-SHA256 encrypted SMTP;
 20 Jan 2017 00:40:55 -0000
Received: by mail-yw0-f171.google.com with SMTP id l19so58261866ywc.2
 for <xen-api@lists.xen.org>; Thu, 19 Jan 2017 16:40:55 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=mime-version:from:date:message-id:subject:to;
 bh=I5UbbMbGxtZ3ZAnd0sJlArxu6CvmpzZsnuf2IfvtYOY=;
 b=AVxFkerB+4qJmTlVYNOL/SsmCwKyQBxiu5RhvFJKrGMauzXrXNXiaobZAIJz60Q5gn
 r77ZzXdr/mtELCq/TeHS/e6v3bwOIQyW7fyQ070UFdzg/lIjvv9331dc55k4V7cMLKfU
 aNhLsHx8Ng0IaQBI3p84ulKCeMKAHUi2wZ6y/eE9Xd6ohEKeXkhw5YbRo4TexMqro6EC
 Xen6olO8jaZ4C0nc7HTPSnNhrjg7DbMAfBPLnYFSs44PYFuqlYu93wdzLsFlqOlxcyBx
 ol4hWbQZdhVTOXCU4Z0ZmGxqFEXH5BW6miLgZ7uGhHAhQ+R/BmQiZcViuYVBS1bPfcS6
 Bm/g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
 bh=I5UbbMbGxtZ3ZAnd0sJlArxu6CvmpzZsnuf2IfvtYOY=;
 b=skGBdRf0K33MyW0+V0yUWKeKmAp2248+Uu4FtCqB2CRSDkTjMWC7MZEUmjKJ2gv6il
 LvB7xwCZi/MxpsalRymUgCj1BBWz2y2CP2CahdmsEYqisucoj0/gS6I/Av9cNWomOiaG
 nbVa4Hoo2AoRC+DyrR71Sa2EM3x/GvWBXrQy7KdAQ9xvXhFnAIKSBMl3m94S15Iz/hzE
 hfY8CzP26vqVL70k/4S4qwCmTetTv//g1Inukwj1cz4b496xAwTMaWlvnLUGfCiz4cwd
 cAYQn/sM+eH9irA8sUkJdf0/5KpTewq50jCv589XUc/6k1KL15/R7jfI56irn3e1J1jN
 5SsQ==
X-Gm-Message-State: AIkVDXIPe1Z1/Dkx5oBbBHgFbI6d/GOB4xJajDReLDNYh2Zqo+l+PPMB+l3FdAmZGjyG8CdEyhYPjjS0gyOdeA==
X-Received: by 10.237.42.1 with SMTP id c1mr9756865qtd.10.1484872854153; Thu,
 19 Jan 2017 16:40:54 -0800 (PST)
MIME-Version: 1.0
Received: by 10.12.170.220 with HTTP; Thu, 19 Jan 2017 16:40:53 -0800 (PST)
From: Michalis R <michrozis@gmail.com>
Date: Fri, 20 Jan 2017 02:40:53 +0200
Message-ID: <CAC1MPCPkOn0AvXi59eb9dCv4pjTC=2b1AeE05XGoj2KLTvYpZA@mail.gmail.com>
To: xen-api@lists.xen.org
Subject: [Xen-API] continuous address space with multiple pages between
	different domUs
X-BeenThere: xen-api@lists.xen.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: User and development list for XCP and XAPI <xen-api.lists.xen.org>
List-Unsubscribe: <https://lists.xen.org/cgi-bin/mailman/options/xen-api>,
 <mailto:xen-api-request@lists.xen.org?subject=unsubscribe>
List-Post: <mailto:xen-api@lists.xen.org>
List-Help: <mailto:xen-api-request@lists.xen.org?subject=help>
List-Subscribe: <https://lists.xen.org/cgi-bin/mailman/listinfo/xen-api>,
 <mailto:xen-api-request@lists.xen.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============5927603390006414784=="
Errors-To: xen-api-bounces@lists.xen.org
Sender: "Xen-api" <xen-api-bounces@lists.xen.org>

--===============5927603390006414784==
Content-Type: multipart/alternative; boundary=001a113e0ad2023a0305467be7c6

--001a113e0ad2023a0305467be7c6
Content-Type: text/plain; charset=UTF-8

Hi
I want to make a continuous address space between two different guest
domains.
In particular I want to make a read/write queue, so that both domains, can
have an address where they can memcpy from/to data.
For example:
I want 64k bytes space in kernel to act as a queue.
I thought of allocating 16 pages in one domain (16*PAGE SIZE=64k),
grant_foreign_access to foreign guest (so I now have 16 gref id's) and map
these gref_ids in foreign guest.
But I have a question:
- How can each side, access the allocated memory as continuous space, and
not 16 different spaces?
For one page, i alloc_page(...), and then use addr = page_address(page) so
I can memcpy to addr bytes up to 4k long. What about more pages?

--001a113e0ad2023a0305467be7c6
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div><div><div><div><div><div><div><div>Hi<br></div>I want=
 to make a continuous address space between two different guest domains. <b=
r></div>In particular I want to make a read/write queue, so that both domai=
ns, can have an address where they can memcpy from/to data.<br></div>For ex=
ample:<br></div>I want 64k bytes space in kernel to act as a queue.<br></di=
v>I thought of allocating 16 pages in one domain (16*PAGE SIZE=3D64k), gran=
t_foreign_access to foreign guest (so I now have 16 gref id&#39;s) and map =
these gref_ids in foreign guest.<br></div>But I have a question:<br></div>-=
 How can each side, access the allocated memory as continuous space, and no=
t 16 different spaces?<br></div>For one page, i alloc_page(...), and then u=
se addr =3D page_address(page) so I can memcpy to addr bytes up to 4k long.=
 What about more pages?<br></div>

--001a113e0ad2023a0305467be7c6--


--===============5927603390006414784==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline

X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KWGVuLWFwaSBt
YWlsaW5nIGxpc3QKWGVuLWFwaUBsaXN0cy54ZW4ub3JnCmh0dHBzOi8vbGlzdHMueGVuLm9yZy9j
Z2ktYmluL21haWxtYW4vbGlzdGluZm8veGVuLWFwaQo=

--===============5927603390006414784==--


