Re: [RFC PATCH 0/2] libxl: support common cases without block script

2021-04-28 Thread Jason Andryuk
On Wed, Apr 28, 2021 at 3:00 AM Demi Marie Obenour wrote: > > When it comes to file-based block devices, the major difficulty is > the extremely bad kernel API. The only fully safe way to use loop > devices is to use LOOP_CONFIGURE with LO_FLAGS_AUTOCLEAR and hold a > file descriptor open to the

Re: [RFC PATCH 0/2] libxl: support common cases without block script

2021-04-28 Thread Demi Marie Obenour
When it comes to file-based block devices, the major difficulty is the extremely bad kernel API. The only fully safe way to use loop devices is to use LOOP_CONFIGURE with LO_FLAGS_AUTOCLEAR and hold a file descriptor open to the device until another piece of code (either another userspace program

[RFC PATCH 0/2] libxl: support common cases without block script

2021-04-26 Thread Marek Marczykowski-Górecki
This series in an attempt to speed up the domain start by removing slow block script from the picture. The current RFC covers the simplest possible case only - target being a block device directly. This case does not require locking at all. Further version will cover also setting up a loop device.