|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v9 3/5] xen/mem_sharing: VM forking
On 24.02.2020 16:45, Tamas K Lengyel wrote:
> On Mon, Feb 24, 2020 at 5:39 AM Roger Pau Monné <roger.pau@xxxxxxxxxx> wrote:
>> On Fri, Feb 21, 2020 at 10:49:21AM -0800, Tamas K Lengyel wrote:
>>> --- a/xen/arch/x86/mm/p2m.c
>>> +++ b/xen/arch/x86/mm/p2m.c
>>> @@ -509,6 +509,14 @@ mfn_t __get_gfn_type_access(struct p2m_domain *p2m,
>>> unsigned long gfn_l,
>>>
>>> mfn = p2m->get_entry(p2m, gfn, t, a, q, page_order, NULL);
>>>
>>> + /* Check if we need to fork the page */
>>> + if ( (q & P2M_ALLOC) && p2m_is_hole(*t) &&
>>> + !mem_sharing_fork_page(p2m->domain, gfn, !!(q & P2M_UNSHARE)) )
>>> + {
>>> + mfn = p2m->get_entry(p2m, gfn, t, a, q, page_order, NULL);
>>> + }
>>
>> No need for the braces.
>
> I would keep them, it helps with readability in this case.
I agree with Roger here, fwiw.
Jan
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |