[Qemu-block] [PATCH 1/3] blockjob: add manual-cull property

2017-10-02 Thread John Snow
Add a "manual cull" property to block jobs that forces them to linger in the block job list (visible to QMP queries) until the user explicitly dismisses them via QMP. The cull command itself is implemented in the next commit, and the feature is exposed to drive-backup and blockdev-backup in the

Re: [Qemu-block] [Qemu-devel] [PATCH v4 23/23] qemu-io: Relax 'alloc' now that block-status doesn't assert

2017-10-02 Thread John Snow
On 10/02/2017 07:56 PM, Eric Blake wrote: > On 10/02/2017 04:27 PM, John Snow wrote: >> >> >> On 09/13/2017 12:03 PM, Eric Blake wrote: >>> Previously, the alloc command required that input parameters be >>> sector-aligned and clamped to 32 bits, because the underlying >>> bdrv_is_allocated used

[Qemu-block] [PATCH 3/3] blockjob: expose manual-cull property

2017-10-02 Thread John Snow
For drive-backup and blockdev-backup, expose the manual-cull property, having it default to false. There are no universal creation parameters, so it must be added to each job type that it makes sense for individually. Signed-off-by: John Snow --- blockdev.c | 10

[Qemu-block] [PATCH 0/3] blockjobs: add explicit job culling

2017-10-02 Thread John Snow
For jobs that complete when a monitor isn't looking, there's no way to tell what the job's final return code was. We need to allow jobs to remain in the list until queried for reliable management. This is an RFC; tests are on the way. (Tested only manually via qmp-shell for now.) John Snow (3):

[Qemu-block] [PATCH 2/3] qmp: add block-job-cull command

2017-10-02 Thread John Snow
For jobs that have finished (either completed or canceled), allow the user to dismiss the job's status reports via block-job-cull. Signed-off-by: John Snow --- block/trace-events | 1 + blockdev.c | 14 ++ qapi/block-core.json | 21

[Qemu-block] xen-pci-passthrough PCI Express support? (Re: [Qemu-devel] [Xen-devel] [PATCH v2 4/5] pci: Add INTERFACE_CONVENTIONAL_PCI_DEVICE to Conventional PCI devices)

2017-10-02 Thread Eduardo Habkost
On Thu, Sep 28, 2017 at 10:12:34AM -0300, Eduardo Habkost wrote: > On Thu, Sep 28, 2017 at 02:33:57AM -0600, Jan Beulich wrote: > > >>> On 27.09.17 at 21:56, wrote: > > > --- a/hw/xen/xen_pt.c > > > +++ b/hw/xen/xen_pt.c > > > @@ -964,6 +964,10 @@ static const TypeInfo

Re: [Qemu-block] [Qemu-devel] [PATCH v4 23/23] qemu-io: Relax 'alloc' now that block-status doesn't assert

2017-10-02 Thread Eric Blake
On 10/02/2017 04:27 PM, John Snow wrote: > > > On 09/13/2017 12:03 PM, Eric Blake wrote: >> Previously, the alloc command required that input parameters be >> sector-aligned and clamped to 32 bits, because the underlying >> bdrv_is_allocated used a 32-bit parameter and asserted aligned >>

Re: [Qemu-block] [Qemu-devel] [PATCH v4 21/23] block: Align block status requests

2017-10-02 Thread Eric Blake
On 10/02/2017 03:24 PM, John Snow wrote: > > > On 09/13/2017 12:03 PM, Eric Blake wrote: >> Any device that has request_alignment greater than 512 should be >> unable to report status at a finer granularity; it may also be >> simpler for such devices to be guaranteed that the block layer >> has