From: weiming <zephyr.zhao@gmail.com>
To: 吴佳民 <wujiamin_tyut@163.com>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
Subject: Re: question about mapping memory from Dom0 to domU
Date: Wed, 9 Jul 2008 22:34:58 -0400 [thread overview]
Message-ID: <add59a3f0807091934j4e7488efw75bad66a4990c20e@mail.gmail.com> (raw)
In-Reply-To: <13888894.677311215657040416.JavaMail.coremail@app141.163.com>
[-- Attachment #1.1: Type: text/plain, Size: 947 bytes --]
you can use xc_translate_foreign_address to get a the mfn of a give virtual
address
2008/7/9 吴佳民 <wujiamin_tyut@163.com>:
> Hi:
> I wanna write code about sharing memory between dom0 and domU, and I
> decide to use void *xc_map_foreign_range(int xc_handle, unint32_t dom, int
> size, int port, unsigned long mfn) (this is a function in xenctl.h).
> My question is :
> If I wanna map a range of memory in dom0 to domU, how can I get the
> value of mfn? and I do not know the port here.
>
> Can anybody help me ?
> Thanks .
>
>
> Danius Wu
> =========================================================
>
>
>
>
>
> ------------------------------
> 渊波阔宅 湖景人生 <http://popme.163.com/link/003984_0707_2982.html>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
>
>
[-- Attachment #1.2: Type: text/html, Size: 1901 bytes --]
[-- Attachment #2: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
next prev parent reply other threads:[~2008-07-10 2:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-10 2:30 question about mapping memory from Dom0 to domU 吴佳民
2008-07-10 2:34 ` weiming [this message]
2008-07-10 6:20 ` Derek Murray
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=add59a3f0807091934j4e7488efw75bad66a4990c20e@mail.gmail.com \
--to=zephyr.zhao@gmail.com \
--cc=wujiamin_tyut@163.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.