Skip to content

xen: fix gnttab handling with old dom0 kernels

Juergen Gross qemu-devel xen-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 1 replyIn review
  2. v12 patches 4 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2xen: add a global indicator for grant copy being availablehw/block/xen_disk.c hw/xen/xen_backend.c include/hw/xen/xen_backend.h+18 -120 replies
2/2xen: dont try setting max grants multiple timeshw/block/xen_disk.c+12 -41 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchAnthony PERARD
1/2A-b
2/2A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [Qemu-devel] [PATCH v2 0/2] xen: fix gnttab handling with old dom0 kernels

Trying to start a domain with a qdisk backend on an old dom0 kernel (non-pvops xen kernel) will fail as xengnttab_set_max_grants() will succeed only if called directly after opening the gnttab device.

These two patches address the issue by:

- moving the test for availability of xengnttab_grant_copy() from the qdisk backend to generic backend handling in order to not have to issue the grant copy ioctl with the qdisk specific file handle
- opening the gnttab device in blk_connect() only in order to guarantee xengnttab_set_max_grants() is called just after opening the gnttab device

Juergen Gross (2):
xen: add a global indicator for grant copy being available
xen: dont try setting max grants multiple times

 hw/block/xen_disk.c          | 34 ++++++++++++++++++----------------
 hw/xen/xen_backend.c         | 11 +++++++++++
 include/hw/xen/xen_backend.h |  1 +
 3 files changed, 30 insertions(+), 16 deletions(-)
Signature · 7 lines
2.12.3


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel