]> git.proxmox.com Git - mirror_qemu.git/commit
xen-disk: only advertize feature-persistent if grant copy is not available
authorPaul Durrant <paul.durrant@citrix.com>
Wed, 21 Jun 2017 12:52:47 +0000 (08:52 -0400)
committerStefano Stabellini <sstabellini@kernel.org>
Tue, 27 Jun 2017 22:01:49 +0000 (15:01 -0700)
commit976eba1c88420c08977eae912628d443c4aacb0c
tree23f6c4800cebe77ff64172d935efb8a155e5c1d0
parentb0ac694fdb9113b973048ebe5619927e74965f61
xen-disk: only advertize feature-persistent if grant copy is not available

If grant copy is available then it will always be used in preference to
persistent maps. In this case feature-persistent should not be advertized
to the frontend, otherwise it may needlessly copy data into persistently
granted buffers.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
hw/block/xen_disk.c