Re: [Qemu-devel] [PATCH v2 2/2] xen: dont try setting max grants multiple times

2017-09-25 Thread Anthony PERARD
On Fri, Sep 22, 2017 at 02:07:25PM +0200, Juergen Gross wrote: > Trying to call xengnttab_set_max_grants() with the same file handle > might fail on some kernels, as this operation is allowed only once. > > This is a problem for the qdisk backend as blk_connect() can be > called multiple times

[Qemu-devel] [PATCH v2 2/2] xen: dont try setting max grants multiple times

2017-09-22 Thread Juergen Gross
Trying to call xengnttab_set_max_grants() with the same file handle might fail on some kernels, as this operation is allowed only once. This is a problem for the qdisk backend as blk_connect() can be called multiple times for a domain, e.g. in case grub-xen is being used to boot it. So instead