qemu/hw/block
Juergen Gross e38c3e86df xen: dont try setting max grants multiple times
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 of letting the generic backend code open the gnttab device
do it in blk_connect() and close it again in blk_disconnect.

Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: Anthony PERARD <anthony.perard@citrix.com>
Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
2017-10-26 14:23:08 -07:00
..
dataplane
block.c
cdrom.c
ecc.c
fdc.c
hd-geometry.c
m25p80.c
Makefile.objs
nand.c
nvme.c
nvme.h
onenand.c
pflash_cfi01.c
pflash_cfi02.c
tc58128.c
trace-events
virtio-blk.c
xen_blkif.h
xen_disk.c xen: dont try setting max grants multiple times 2017-10-26 14:23:08 -07:00