From: David Vrabel <david.vrabel@citrix.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: Keir Fraser <keir@xen.org>,
Ian Campbell <ian.campbell@citrix.com>,
Christoph Egger <chegger@amazon.de>, Tim Deegan <tim@xen.org>,
Matt Wilson <msw@amazon.com>,
xen-devel@lists.xenproject.org,
Malcolm Crossley <malcolm.crossley@citrix.com>
Subject: Re: [PATCHv7 3/3] gnttab: use per-VCPU maptrack free lists
Date: Tue, 12 May 2015 13:37:12 +0100 [thread overview]
Message-ID: <5551F3F8.7070602@citrix.com> (raw)
In-Reply-To: <5552022902000078000796A4@mail.emea.novell.com>
On 12/05/15 12:37, Jan Beulich wrote:
>>>> On 12.05.15 at 13:01, <david.vrabel@citrix.com> wrote:
>> On 05/05/15 13:34, Jan Beulich wrote:
>>>>>> On 30.04.15 at 15:28, <david.vrabel@citrix.com> wrote:
>>>> @@ -1430,6 +1456,17 @@ gnttab_setup_table(
>>>> gt = d->grant_table;
>>>> write_lock(>->lock);
>>>>
>>>> + /* Tracking of mapped foreign frames table */
>>>> + if ( (gt->maptrack = xzalloc_array(struct grant_mapping *,
>>>> + max_maptrack_frames * d->max_vcpus)) == NULL )
>>>> + goto out3;
>>>
>>> This surely can easily become an allocation of far more than a page,
>>> and hence needs to be broken up (perhaps using vmap() to map
>>> individually allocated pages).
>>
>> I think there should be a common vzalloc_array() function. Do you
>> agree? This will use xzalloc_array() if the alloc is < PAGE_SIZE to
>> avoid needlessly using vmap space.
>
> For the _array flavor I'm not sure, but vmalloc()/vzalloc() are
> already in the process of being added.
Can I leave this as-is (with the xzalloc_array()) and fix it up once
vzalloc() exists?
David
next prev parent reply other threads:[~2015-05-12 12:38 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-30 13:28 [PATCHv7 0/3] gnttab: Improve scaleability David Vrabel
2015-04-30 13:28 ` [PATCHv7 1/3] gnttab: Introduce rwlock to protect updates to grant table state David Vrabel
2015-05-05 10:42 ` Jan Beulich
2015-04-30 13:28 ` [PATCHv7 2/3] gnttab: refactor locking for scalability David Vrabel
2015-04-30 14:34 ` Tim Deegan
2015-05-01 18:03 ` David Vrabel
2015-05-01 20:02 ` Tim Deegan
2015-05-05 11:58 ` Jan Beulich
2015-04-30 13:28 ` [PATCHv7 3/3] gnttab: use per-VCPU maptrack free lists David Vrabel
2015-04-30 15:12 ` Tim Deegan
2015-05-01 12:29 ` Malcolm Crossley
2015-05-05 12:34 ` Jan Beulich
2015-05-12 11:01 ` David Vrabel
2015-05-12 11:37 ` Jan Beulich
2015-05-12 12:37 ` David Vrabel [this message]
2015-05-12 12:56 ` 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=5551F3F8.7070602@citrix.com \
--to=david.vrabel@citrix.com \
--cc=JBeulich@suse.com \
--cc=chegger@amazon.de \
--cc=ian.campbell@citrix.com \
--cc=keir@xen.org \
--cc=malcolm.crossley@citrix.com \
--cc=msw@amazon.com \
--cc=tim@xen.org \
--cc=xen-devel@lists.xenproject.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.