xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] xen: fix gnttab handling with old dom0 kernels
@ 2017-09-19 11:50 Juergen Gross
  2017-09-19 11:50 ` [PATCH 1/2] xen: add a global indicator for grant copy being available Juergen Gross
  2017-09-19 11:50 ` [PATCH 2/2] xen: dont try setting max grants multiple times Juergen Gross
  0 siblings, 2 replies; 7+ messages in thread
From: Juergen Gross @ 2017-09-19 11:50 UTC (permalink / raw)
  To: qemu-devel, xen-devel; +Cc: anthony.perard, Juergen Gross, sstabellini, kraxel

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          | 30 +++++++++++++++++-------------
 hw/xen/xen_backend.c         | 11 +++++++++++
 include/hw/xen/xen_backend.h |  1 +
 3 files changed, 29 insertions(+), 13 deletions(-)

-- 
2.12.3


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2017-09-22 12:03 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-19 11:50 [PATCH 0/2] xen: fix gnttab handling with old dom0 kernels Juergen Gross
2017-09-19 11:50 ` [PATCH 1/2] xen: add a global indicator for grant copy being available Juergen Gross
2017-09-20 14:53   ` Anthony PERARD
2017-09-22 11:46     ` Juergen Gross
2017-09-19 11:50 ` [PATCH 2/2] xen: dont try setting max grants multiple times Juergen Gross
2017-09-20 15:00   ` Anthony PERARD
2017-09-22 12:03     ` Juergen Gross

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).