From: George Dunlap <George.Dunlap@eu.citrix.com>
To: George Dunlap <george.dunlap@citrix.com>
Cc: "xen devel" <xen-devel@lists.xensource.com>, 张鹏飞 <zpfalpc23@gmail.com>
Subject: Re: Re: changeset 22526:7a5ee3800417
Date: Mon, 7 Mar 2011 16:41:02 +0000 [thread overview]
Message-ID: <AANLkTimqzZc7B0MG-PoD0ny=mdjrfvbc9ZAWkqQ526VH@mail.gmail.com> (raw)
In-Reply-To: <1299514840.19262.4698.camel@elijah>
[-- Attachment #1: Type: text/plain, Size: 1980 bytes --]
Peng fei,
Can you test the attached patch (to xen-unstable)? I don't have
EPT-enabled hardware handy...
-George
On Mon, Mar 7, 2011 at 4:20 PM, George Dunlap <george.dunlap@citrix.com> wrote:
> Hmm, yeah, that's obviously not right! Let me take a look...
>
> -George
>
> On Mon, 2011-03-07 at 09:55 +0000, 张鹏飞 wrote:
>> Hi,
>> Recently, I did a research on the p2m and EPT,and did apply your
>> patch(22526) to the source code of mine. But there is one place
>> confused me:
>>
>>
>>
>> ept_entry = table + index;
>> 1.91
>> 1.92 - ept_entry->emt = epte_get_entry_emt(d, gfn, mfn, &ipat, direct_mmio);
>> 1.93 - ept_entry->ipat = ipat;
>> 1.94 - ept_entry->sp = i ? 1 : 0;
>> 1.95 - ept_entry->avail1 = p2mt;
>> 1.96 - ept_entry->avail2 = 0;
>> 1.97 + new_entry.emt = epte_get_entry_emt(d, gfn, mfn, &ipat, direct_mmio);
>> 1.98 + new_entry.ipat = ipat;
>> 1.99 + new_entry.sp = i ? 1 : 0;
>> 1.100 + new_entry.avail1 = p2mt;
>> 1.101 + new_entry.avail2 = 0;
>> 1.102
>> 1.103 - if ( ept_entry->mfn == mfn_x(mfn) )
>> 1.104 + if ( new_entry.mfn == mfn_x(mfn) )
>> 1.105 need_modify_vtd_table = 0;
>> 1.106 else /* the caller should take care of the previous page */
>> 1.107 - ept_entry->mfn = mfn_x(mfn);
>> 1.108 + new_entry.mfn = mfn_x(mfn);
>>
>> I think, The new_entry.mfn is used without assigned any value. Maybe there was something else I did not think of.
>> Thank you for your kindness!
>>
>> http://xenbits.xen.org/xen-unstable.hg/rev/7a5ee3800417
>
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
>
[-- Attachment #2: ept-use-existing-entry.diff --]
[-- Type: text/x-diff, Size: 891 bytes --]
diff -r 809ea782d2e6 -r 7ddd021a2079 xen/arch/x86/mm/hap/p2m-ept.c
--- a/xen/arch/x86/mm/hap/p2m-ept.c Mon Mar 07 16:33:45 2011 +0000
+++ b/xen/arch/x86/mm/hap/p2m-ept.c Mon Mar 07 16:41:02 2011 +0000
@@ -390,7 +390,7 @@
new_entry.access = p2ma;
new_entry.rsvd2_snp = (iommu_enabled && iommu_snoop);
- if ( new_entry.mfn == mfn_x(mfn) )
+ if ( ept_entry->mfn == mfn_x(mfn) )
need_modify_vtd_table = 0;
else
new_entry.mfn = mfn_x(mfn);
@@ -438,7 +438,7 @@
new_entry.access = p2ma;
new_entry.rsvd2_snp = (iommu_enabled && iommu_snoop);
- if ( new_entry.mfn == mfn_x(mfn) )
+ if ( ept_entry->mfn == mfn_x(mfn) )
need_modify_vtd_table = 0;
else /* the caller should take care of the previous page */
new_entry.mfn = mfn_x(mfn);
[-- Attachment #3: 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:[~2011-03-07 16:41 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <AANLkTimqNJWRWzSj1BYPP5T7GAhSK_=70T9dq5CW94iB@mail.gmail.com>
2011-03-07 16:20 ` changeset 22526:7a5ee3800417 George Dunlap
2011-03-07 16:41 ` George Dunlap [this message]
2011-03-07 16:48 ` Tim Deegan
2011-03-07 16:57 ` George Dunlap
2011-03-09 8:44 ` Tim Deegan
2011-03-09 13:57 ` George Dunlap
2011-03-09 13:59 ` George Dunlap
2011-03-10 9:41 ` George Dunlap
2011-03-10 9:43 ` George Dunlap
2011-03-10 12:49 ` 答复: [Xen-devel] " zpfalpc23
2011-03-16 10:27 ` zpfalpc23
2011-03-17 12:01 ` 答复: " George Dunlap
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='AANLkTimqzZc7B0MG-PoD0ny=mdjrfvbc9ZAWkqQ526VH@mail.gmail.com' \
--to=george.dunlap@eu.citrix.com \
--cc=george.dunlap@citrix.com \
--cc=xen-devel@lists.xensource.com \
--cc=zpfalpc23@gmail.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).