Received: from eggs.gnu.org ([2001:4830:134:3::10]:59325) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c9Df2-0007He-BV for qemu-devel@nongnu.org; Tue, 22 Nov 2016 11:11:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c9Dew-0001C5-OS for qemu-devel@nongnu.org; Tue, 22 Nov 2016 11:11:08 -0500 Received: from mail-db5eur01on0136.outbound.protection.outlook.com ([104.47.2.136]:55616 helo=EUR01-DB5-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c9Dew-0001BC-5g for qemu-devel@nongnu.org; Tue, 22 Nov 2016 11:11:02 -0500 References: <2fb12281-1023-71c0-7fd9-39e27787c1e9@virtuozzo.com> From: Nikolay Shirokovskiy Message-ID: <6a070150-0f55-2ee3-6772-3e58c71bf248@virtuozzo.com> Date: Tue, 22 Nov 2016 16:38:04 +0300 MIME-Version: 1.0 In-Reply-To: <2fb12281-1023-71c0-7fd9-39e27787c1e9@virtuozzo.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC] dirty bitmap state uncertainty under certain conditions List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org send to mailing list with correct address On 22.11.2016 15:01, Nikolay Shirokovskiy wrote: > Hi, everyone. > > There is a problem with current incremental backups. Imagine I ask qemu to > make an incremental backup then go away and return back when backup > job is finished. Qemu process dismisses the job completely and I missed > all the events so I don't know the result of the operation and what is > most important I don't know the base for dirty bitmap now. In case of failure > it is previous backup and in case of success it is the last backup. Qemu does > not track dirty bitmap base for me so I have no choice other then clear > dirty bitmap and make full backup which would be rather unexpected from user > POV (The situation of going away/coming back is libvirt crash/restart of course.) > > I guess problem has wider scope. In case I miss successfull completion of full > backup my only option is to drop backup file and redo the backup completely > which is rather wasteful. AFAIU I can not query backup completion result from > backup file itself. I guess there can be similar issues for other qemu jobs. > > Nikolay >