xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0 of 3] blktap3/libxl: add support for blktap3 in libxl
@ 2013-02-08 17:24 Thanos Makatos
  2013-02-08 17:24 ` [PATCH 1 of 3] blktap3/libxl: add new device kind and disk back-end Thanos Makatos
                   ` (2 more replies)
  0 siblings, 3 replies; 18+ messages in thread
From: Thanos Makatos @ 2013-02-08 17:24 UTC (permalink / raw)
  To: xen-devel; +Cc: andrei.lifchits

This patch series implements support for blktap3 in libxl.

Supporting blktap3 requires rather few changes:
1. We introduce a new disk back-end type (TAP3) and a new device kind (VBD3) to
   allow blktap3 to co-exist with blktap3. blktap2 remains the default back-end
   for tap devices. Switching in the future to blktap3 as the default handler
   of tap devices should be trivial.
2. libxl doesn't spawn the tapdisk process any more, as is the case for
   blktap2, since the tapback daemon is responsible for that. Thus, libxl only
   needs to write to XenStore the file/partition/whatever backing the virtual
   disk so that the tapback daemon can pass it to tapdisk.
3. Since there is no block device in dom0 any more, pygrub won't be able to
   boot from VHD files. To get around this problem, pygrub can use the NBD
   functionality (existing in blktap2.5): it can explicitly ask tapback to
   create a NDB in order to access the virtual disk. This functionality will be
   implemented in a future patch series. However, this will only work for Linux
   dom0's. As a generic solution that would work on any dom0, we could
   implement a simple protocol for data exchange between pygrub and tapdisk.

Signed-off-by: Thanos Makatos <thanos.makatos@citrix.com>

^ permalink raw reply	[flat|nested] 18+ messages in thread
* [PATCH 0 of 3] blktap3/libxl: add support for blktap3 in libxl
@ 2013-04-19 15:40 Thanos Makatos
  2013-04-19 15:40 ` [PATCH 3 of 3] blktap3/libxl: Handles blktap3 device " Thanos Makatos
  0 siblings, 1 reply; 18+ messages in thread
From: Thanos Makatos @ 2013-04-19 15:40 UTC (permalink / raw)
  To: xen-devel; +Cc: thanos.makatos

This patch series implements support for blktap3 in libxl.

Supporting blktap3 requires rather few changes:
1. We introduce a new disk back-end type (TAP3) and a new device kind (VBD3) to
   allow blktap3 to co-exist with blktap3. blktap2 remains the default back-end
   for tap devices. Switching in the future to blktap3 as the default handler
   of tap devices should be trivial.
2. libxl doesn't spawn the tapdisk process any more, as is the case for
   blktap2, since the tapback daemon is responsible for that. Thus, libxl only
   needs to write to XenStore the file/partition/whatever backing the virtual
   disk so that the tapback daemon can pass it to tapdisk.
3. Since there is no block device in dom0 any more, pygrub won't be able to
   boot from VHD files. To get around this problem, pygrub can use the NBD
   functionality (existing in blktap2.5): it can explicitly ask tapback to
   create a NDB in order to access the virtual disk. This functionality will be
   implemented in a future patch series. However, this will only work for Linux
   dom0's. As a generic solution that would work on any dom0, we could
   implement a simple protocol for data exchange between pygrub and tapdisk.

Signed-off-by: Thanos Makatos <thanos.makatos@citrix.com>

---
Changed since v1:
  * Check whether tapback's control socket exists instead of checking whether
    a process named "tapback" exists.
  * Don't duplicate code for writing the type:/path/to/file to XenStore.

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

end of thread, other threads:[~2013-04-19 15:40 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-08 17:24 [PATCH 0 of 3] blktap3/libxl: add support for blktap3 in libxl Thanos Makatos
2013-02-08 17:24 ` [PATCH 1 of 3] blktap3/libxl: add new device kind and disk back-end Thanos Makatos
2013-02-08 17:24 ` [PATCH 2 of 3] blktap3/libxl: Check whether blktap3 is available Thanos Makatos
2013-02-12 17:57   ` Ian Jackson
2013-02-13 10:44     ` Thanos Makatos
2013-03-05 12:58     ` Thanos Makatos
2013-03-05 13:51       ` Ian Jackson
2013-03-05 14:25         ` Thanos Makatos
2013-03-05 14:28           ` Ian Jackson
2013-03-05 14:42             ` Thanos Makatos
2013-03-05 14:53               ` Ian Jackson
2013-03-05 15:13                 ` Thanos Makatos
2013-03-05 15:27                   ` Ian Jackson
2013-03-05 15:44                     ` Thanos Makatos
2013-02-08 17:24 ` [PATCH 3 of 3] blktap3/libxl: Handles blktap3 device in libxl Thanos Makatos
2013-02-12 18:01   ` Ian Jackson
2013-02-13 11:16     ` Thanos Makatos
  -- strict thread matches above, loose matches on Subject: below --
2013-04-19 15:40 [PATCH 0 of 3] blktap3/libxl: add support for blktap3 " Thanos Makatos
2013-04-19 15:40 ` [PATCH 3 of 3] blktap3/libxl: Handles blktap3 device " Thanos Makatos

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).