From: "Chen, Tiejun" <tiejun.chen@intel.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: yang.z.zhang@intel.com, kevin.tian@intel.com, tim@xen.org,
xen-devel@lists.xen.org
Subject: Re: [v4][PATCH 1/2] xen:x86:mm:p2m: introduce set_rmrr_p2m_entry
Date: Tue, 29 Jul 2014 14:44:04 +0800 [thread overview]
Message-ID: <53D742B4.5040000@intel.com> (raw)
In-Reply-To: <53D65907020000780002694F@mail.emea.novell.com>
On 2014/7/28 20:07, Jan Beulich wrote:
>>>> On 28.07.14 at 13:42, <tiejun.chen@intel.com> wrote:
>> --- a/xen/arch/x86/mm/p2m.c
>> +++ b/xen/arch/x86/mm/p2m.c
>> @@ -858,6 +858,32 @@ int set_mmio_p2m_entry(struct domain *d, unsigned long gfn, mfn_t mfn)
>> return set_typed_p2m_entry(d, gfn, mfn, p2m_mmio_direct);
>> }
>>
>> +int set_rmrr_p2m_entry(struct domain *d, unsigned long gfn, mfn_t mfn)
>
> Leaving aside all the previously raised points making me hesitate to
> accept the pair of patches on their own, let's please try to avoid
Do you mean we should fix such RMRR problem completely? Looks we need to
reserve the RMRR range for each VM. So I'm considering to force
reserving this range when we go that XENMEM_machine_memory_map for each
VM. But I'm not sure if this is good. So maybe we can do this after this
thread since I guess myself need some time to investigate this problem.
Or you know this is ongoing by some guys, I'd like to refine my patches
to follow that.
> having Intel specific function names in non-Intel-specific code unless
> that's really the best choice. In the case here, you could
> s/rmrr/identity/ and at once drop the redundant mfn argument (the
> function can construct this for the call to p2m_set_entry(), and the
> function name will make it obvious why this gets derived from gfn).
>
Okay.
Thanks
Tiejun
next prev parent reply other threads:[~2014-07-29 6:44 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-28 11:42 [v4][PATCH 1/2] xen:x86:mm:p2m: introduce set_rmrr_p2m_entry Tiejun Chen
2014-07-28 11:42 ` [v4][PATCH 2/2] xen:vtd: missing RMRR mapping while share EPT Tiejun Chen
2014-07-28 12:07 ` [v4][PATCH 1/2] xen:x86:mm:p2m: introduce set_rmrr_p2m_entry Jan Beulich
2014-07-29 6:44 ` Chen, Tiejun [this message]
2014-07-29 6:55 ` Jan Beulich
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=53D742B4.5040000@intel.com \
--to=tiejun.chen@intel.com \
--cc=JBeulich@suse.com \
--cc=kevin.tian@intel.com \
--cc=tim@xen.org \
--cc=xen-devel@lists.xen.org \
--cc=yang.z.zhang@intel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).