[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH] x86/HVM: Fixed the bug which cause the nested hvm guest fail to boot



>>>> "Jan Beulich" <jbeulich@xxxxxxxx> 08/18/14 3:10 PM >>>
>>>> Liliang <liangx.z.li@xxxxxxxxx> 08/18/14 1:15 PM >>>
>>From: Li Liang <liangx.z.li@xxxxxxxxx>
>>
>>The function memory_type_changed should not be called in hvm_set_guest_pat.
>>or the cache will be flushed excessively and make the nested guest very 
>>slowly,
>>just like blocked.
>
>As Andrew already said - blindly removing the call is wrong, it is there for a
>reason. What you first of all need to explain is why there are so many PAT
>modifications, as it's perhaps _that_ which needs adjustment (possibly e.g.
>including some filtering to hide writes that don't change the actual value, if
>that happens frequently).

Actually I have to correct myself - I think the call here is indeed not needed,
as the PAT contents is being used by the CPU itself when determining the
memory type (and does not influence the result of epte_get_entry_emt()). But
the patch description needs to better describe the situation, preferably also
referencing the commit that needlessly added the call.

Jan


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.