[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 2/5] xen/gnttab: Rework resource acquisition
- To: Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
- Date: Tue, 28 Jul 2020 15:11:20 +0100
- Authentication-results: esa3.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none
- Cc: Hubert Jasudowicz <hubert.jasudowicz@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Wei Liu <wl@xxxxxxx>, Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>, George Dunlap <George.Dunlap@xxxxxxxxxxxxx>, Paul Durrant <paul@xxxxxxx>, Jan Beulich <JBeulich@xxxxxxxx>, Michał Leszczyński <michal.leszczynski@xxxxxxx>, Ian Jackson <ian.jackson@xxxxxxxxxx>
- Delivery-date: Tue, 28 Jul 2020 14:12:01 +0000
- Ironport-sdr: +hG5mCBM1DMxBIpktzqQNzNiw+hwmS4q2Geb/9+dpT9L5KGCEc0MHMF4is4iSgH08uHAa2wq3l yKki94fH2rcrBhzrMUdwJfqDXJTCZNclEllFdUIqkGdlsUCFyMyZmYIIC0yKb7zzZYNK03YC3k n7huPsPxnBO0B8ZbKtRbAqj+gKpQHMu4Zk/Y451mUu+D4qdA91mg8nSloWj9BLl37qzO/13srY S+Vr1ZKGVArYfyTPdUzullG+ehyUSYAMIVidewPG6K6jOzUy3Eh1kUXFLzOgwZm96J9iemX+AX 6Ek=
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On 28/07/2020 12:37, Andrew Cooper wrote:
> diff --git a/xen/common/grant_table.c b/xen/common/grant_table.c
> index 9f0cae52c0..122d1e7596 100644
> --- a/xen/common/grant_table.c
> +++ b/xen/common/grant_table.c
> @@ -4013,6 +4013,72 @@ static int gnttab_get_shared_frame_mfn(struct domain
> *d,
> return 0;
> }
>
> +int gnttab_acquire_resource(
> + struct domain *d, unsigned int id, unsigned long frame,
> + unsigned int nr_frames, xen_pfn_t mfn_list[])
> +{
> + struct grant_table *gt = d->grant_table;
> + unsigned int i = nr_frames, tot_frames;
> + void **vaddrs;
I've folded an "= NULL" here to fix the CentOS 6 build.
~Andrew
|