WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

答复: [Xen-devel] Re: changeset 22526:7a5ee3800417

To: "'George Dunlap'" <george.dunlap@xxxxxxxxxx>
Subject: 答复: [Xen-devel] Re: changeset 22526:7a5ee3800417
From: "zpfalpc23" <zpfalpc23@xxxxxxxxx>
Date: Thu, 10 Mar 2011 20:49:54 +0800
Cc: 'xen devel' <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Fri, 11 Mar 2011 09:49:54 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:references:in-reply-to:subject:date :message-id:mime-version:content-type:content-transfer-encoding :x-mailer:thread-index:content-language; bh=TJ/osOWMOGg0wh4eaQDFJTeX364xDoHsKw/PEREnV0Q=; b=mvaTWKJh36ZkD3cK1YzdYkTCgY9YICJx3/tBmmmioRMiARTVqWgq8YfiSKnuBXAxqU ANxa87ob2jFMFnhxAtBQWvsIGy4Xp9XkGP0MrCUHE0QUWGeFeGoetDDOt/DkrxiNzVZD PuVagUD6f8ZtXldAWtOWgUZtNLE5L5VM8xWtk=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:references:in-reply-to:subject:date:message-id :mime-version:content-type:content-transfer-encoding:x-mailer :thread-index:content-language; b=Q860/ebJSeM2LsnVG15qW3kX+LjFDSRWMGX7k8CQBXJBuRMP0RCmGrRMzB4fAxjUBx Jpiox++mFbjqntFa4b8NWsQkRbB7Kg8c9lUTrt0273OpgyrP3cEPqeFZNu3+KGViYJY3 8cNeFtCXyV5I9cqWipoIBYsGduMBMWJ64fvac=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <AANLkTi=GXwfVhNQ0sKpAWKaokXhsuUVwWMLtu3AkSGyU@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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <AANLkTimqNJWRWzSj1BYPP5T7GAhSK_=70T9dq5CW94iB@xxxxxxxxxxxxxx> <1299514840.19262.4698.camel@elijah> <AANLkTimqzZc7B0MG-PoD0ny=mdjrfvbc9ZAWkqQ526VH@xxxxxxxxxxxxxx> <AANLkTi=TjzyOfdkUUv_k-Xmc7brF28m1CztDCxu7FN+G@xxxxxxxxxxxxxx> <AANLkTim3irnxhk1PjgyHRdOD2-grtv-KA7L4xX3XYzO_@xxxxxxxxxxxxxx> <AANLkTi=GXwfVhNQ0sKpAWKaokXhsuUVwWMLtu3AkSGyU@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcvfB5K/Y4ZCchpAQVOZcWwEVPCU2gAGY+7Q
Hi,
Thank you for your new patch!
I will apply you patch to our version of xen source code, and test it in the 
next few days.
 -Pengfei zhang

-----邮件原件-----
发件人: dunlapg@xxxxxxxxx [mailto:dunlapg@xxxxxxxxx] 代表 George Dunlap
发送时间: 2011年3月10日 17:43
收件人: George Dunlap
抄送: 张鹏飞; xen devel
主题: Re: [Xen-devel] Re: changeset 22526:7a5ee3800417

Oops, forgot to attach the patch...

 -George

On Thu, Mar 10, 2011 at 9:41 AM, George Dunlap <George.Dunlap@xxxxxxxxxxxxx> 
wrote:
> Peng fei,
>
> Can you (1) test this patch, and (2) make sure I've romanized your 
> name properly?
>
> Thanks,
>  -George
>
> On Wed, Mar 9, 2011 at 1:59 PM, George Dunlap 
> <George.Dunlap@xxxxxxxxxxxxx> wrote:
>> Peng fei,
>>
>> I just noticed this patch has a bug -- it doesn't set new_entry.mfn 
>> if the new mfn is the same as the one already in ept_entry!  Standby 
>> for a new one...
>>
>>  -George
>>
>> On Mon, Mar 7, 2011 at 4:41 PM, George Dunlap 
>> <George.Dunlap@xxxxxxxxxxxxx> wrote:
>>> 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@xxxxxxxxxx> 
>>> 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@xxxxxxxxxxxxxxxxxxx
>>>> http://lists.xensource.com/xen-devel
>>>>
>>>
>>
>


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel