| To: | xen-devel@xxxxxxxxxxxxxxxxxxx |
|---|---|
| Subject: | [Xen-devel] Re: mapping xen pages into a domain |
| From: | "sanjay kumar" <sanjay.kushwaha@xxxxxxxxx> |
| Date: | 2006年3月17日 02:56:37 +0000 |
| Delivery-date: | 2006年3月17日 02:57:41 +0000 |
| Domainkey-signature: | a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=muLc2fozw1JfydJrz2HZyPKtbp/ezxnYtMMYWBVNk+aYQDCiZELn+eIFP0uR0BYLS9ZoLZ7pdcvD+BwgoJSOqKDXco5ySV9HKpwD0KOof5eh3/qBcNU66D4e6l2aRGXy8LF1MlBoKgn2tGO5iPfqfoqi8fnSSY6hXm6360ZcjnQ= |
| Envelope-to: | www-data@xxxxxxxxxxxxxxxxxxx |
| In-reply-to: | <2717599f0603161209v7508c471vd519b9d7891708fa@xxxxxxxxxxxxxx> |
| List-help: | <mailto:xen-devel-request@lists.xensource.com?subject=help> |
| List-id: | Xen developer discussion <xen-devel.lists.xensource.com> |
| List-post: | <mailto:xen-devel@lists.xensource.com> |
| List-subscribe: | <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe> |
| List-unsubscribe: | <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe> |
| References: | <2717599f0603161209v7508c471vd519b9d7891708fa@xxxxxxxxxxxxxx> |
| Sender: | xen-devel-bounces@xxxxxxxxxxxxxxxxxxx |
Hi Folks,
I want to allocate a page in xen and share it with a domain so that I can use it for shared memory communication.
I have allocated a page in Xen using
base = _xmalloc(PAGE_SIZE, 0);
base_pa = virt_to_phys(base);
I pass this physical address of the page i.e. base_pa to dom0. I also permit access to this page to dom0 using
ret = iomem_permit_access(d, base_pa, 1);
from dom0, I try to ioremap this page in dom0 using the base_pa and ioremap function
base = (unsigned long) ioremap(base_pa, PAGE_SIZE);
but the call to ioremap fails. Could anyone please tell me what I am doing wrong? What is the correct way to do this.
Thanks,
Sanjay
--
----------------------
PhD Student, Georgia Tech
http://www.cc.gatech.edu/~ksanjay/
_______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [Xen-devel] RE: patch to test vbd loopback sharing issue , Yu, Ping Y |
|---|---|
| Next by Date: | [Xen-devel] [PATCH][XM-TEST] correct inconsistent reporting in xm-test , woody marvel |
| Previous by Thread: | [Xen-devel] mapping xen pages into a domain , sanjay kumar |
| Next by Thread: | [Xen-devel] [PATCH] fix for debugging VMX guest with gdbserver-xen , Kamble, Nitin A |
| Indexes: | [Date] [Thread] [Top] [All Lists] |