]> git.proxmox.com Git - mirror_qemu.git/commit
xen: add a meaningful declaration of grant_copy_segment into xen_common.h
authorPaul Durrant <paul.durrant@citrix.com>
Thu, 17 May 2018 15:35:50 +0000 (16:35 +0100)
committerStefano Stabellini <sstabellini@kernel.org>
Tue, 22 May 2018 18:43:21 +0000 (11:43 -0700)
commit5c0d914a9ba9e0641554d127b62859ac0e954b9e
tree1509a19728c911255971c0562f4c83371b1f8f3b
parent8d0f08e95b2d5f8ff6dea4027247bb0e8cc19cdf
xen: add a meaningful declaration of grant_copy_segment into xen_common.h

Currently the xen_disk source has to carry #ifdef exclusions to compile
against Xen older then 4.8. This is a bit messy so this patch lifts the
definition of struct xengnttab_grant_copy_segment and adds it into the
pre-4.8 compat area in xen_common.h, which allows xen_disk to be cleaned
up.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Acked-by: Anthony PERARD <anthony.perard@citrix.com>
Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
hw/block/xen_disk.c
include/hw/xen/xen_common.h