Received: from eggs.gnu.org ([2001:4830:134:3::10]:48070) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aB3nW-0001hd-Mx for qemu-devel@nongnu.org; Mon, 21 Dec 2015 11:58:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aB3nV-0003qR-SH for qemu-devel@nongnu.org; Mon, 21 Dec 2015 11:58:58 -0500 From: Alberto Garcia In-Reply-To: <567206C0.6010403@redhat.com> References: <567206C0.6010403@redhat.com> Date: Mon, 21 Dec 2015 17:58:14 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [Qemu-devel] [Qemu-block] Jobs 2.0 QAPI [RFC] List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: John Snow , Qemu-block Cc: Kevin Wolf , qemu-devel , Markus Armbruster On Thu 17 Dec 2015 01:50:08 AM CET, John Snow wrote: > In working through a prototype to enable multiple block jobs. A few > problem spots in our API compatibility become apparent. > > In a nutshell, old Blockjobs rely on the "device" to identify the job, > which implies: > > 1) A job is always attached to a device / the root node of a device > 2) There can only be one job per device > 3) A job can only affect one device at a time > 4) Once created, a job will always be associated with that device. > > All four of these are wrong and something we need to change, so > principally the "device" addressing scheme for Jobs needs to go and we > need a new ID addressing scheme instead. Out of curiosity, do you have specific examples of block jobs that are affected by these problems? For the intermediate block-stream functionality I was having problems because of 1), so I extended the 'device' parameter to identify arbitrary node names as well. Just to make things clear: your proposal looks good to me, I'm only wondering whether you're simply looking for a cleaner API or you have a use case that you cannot fulfill because of the way block jobs work now... Thanks! Berto