qemu-e2k/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 docs: fix broken paths to docs/devel/tracing.txt 2017-07-31 13:12:53 +03:00
block.c
cdrom.c
ecc.c
fdc.c migration: pre_save return int 2017-09-27 11:35:59 +01:00
hd-geometry.c
m25p80.c migration: pre_save return int 2017-09-27 11:35:59 +01:00
Makefile.objs
nand.c migration: pre_save return int 2017-09-27 11:35:59 +01:00
nvme.c pci: Add INTERFACE_PCIE_DEVICE to all PCIe devices 2017-10-15 05:54:42 +03:00
nvme.h nvme: Add support for Read Data and Write Data in CMBs. 2017-06-26 14:51:13 +02:00
onenand.c hw/block/onenand: Remove dead code block 2017-10-06 16:28:58 +02:00
pflash_cfi01.c hw/block/pflash_cfi01, pflash_cfi02: Use memory_region_init_rom_device() 2017-07-14 17:59:42 +01:00
pflash_cfi02.c hw/block/pflash_cfi01, pflash_cfi02: Use memory_region_init_rom_device() 2017-07-14 17:59:42 +01:00
tc58128.c
trace-events docs: fix broken paths to docs/devel/tracing.txt 2017-07-31 13:12:53 +03:00
virtio-blk.c scsi: move block/scsi.h to include/scsi/constants.h 2017-09-19 14:09:31 +02:00
xen_blkif.h xen: import ring.h from xen 2017-04-21 12:41:29 -07:00
xen_disk.c xen: dont try setting max grants multiple times 2017-10-26 14:23:08 -07:00