From: Xiaofeng Ling <xiaofeng.ling@intel.com>
To: Keir Fraser <Keir.Fraser@cl.cam.ac.uk>
Cc: Ian Pratt <m+Ian.Pratt@cl.cam.ac.uk>,
xen-devel <xen-devel@lists.xensource.com>
Subject: Re: [PATCH]blkfront change to support unmodified linux
Date: Mon, 05 Sep 2005 17:02:12 +0800 [thread overview]
Message-ID: <431C0994.1040809@intel.com> (raw)
In-Reply-To: <2cae6cf4b5de67a507637b24023d79b9@cl.cam.ac.uk>
Keir Fraser wrote:
>
> On 5 Sep 2005, at 06:41, Xiaofeng Ling wrote:
>
>> This patch is to make blkfront can work both in xen-linux and in
>> unmodified guest which is shadow_model_translate enabled.
>
>
> phys == machine from the p.o.v. of a shadow-translated guest, so why not
> modify virt_to_mfn and friends appropriately?
Sorry, I don't catch your meaning.
vmx guest is in shadow-translate mode, and gpfn need to translate to mfn
in hypervisor. see the macro:
#define __gpfn_to_mfn(_d, gpfn) \
({ \
ASSERT(current->domain == (_d)); \
(shadow_mode_translate(_d)) \
? get_mfn_from_pfn(gpfn) \
: (gpfn); \
})
#define __gpfn_to_mfn_foreign(_d, gpfn) \
( (shadow_mode_translate(_d)) \
? gpfn_to_mfn_foreign(_d, gpfn) \
: (gpfn) )
So I rename virt_to_mfn to virt_to_xfn which means if not in shadow
translate mode, it will do translate in guest. for vmx guest, don't need
the translation in guest. What is your suggestion?
prev parent reply other threads:[~2005-09-05 9:02 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-05 5:41 [PATCH]blkfront change to support unmodified linux Xiaofeng Ling
2005-09-05 8:55 ` Keir Fraser
2005-09-05 9:02 ` Xiaofeng Ling [this message]
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=431C0994.1040809@intel.com \
--to=xiaofeng.ling@intel.com \
--cc=Keir.Fraser@cl.cam.ac.uk \
--cc=m+Ian.Pratt@cl.cam.ac.uk \
--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.