From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50356) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VHtLI-0006rZ-7f for qemu-devel@nongnu.org; Fri, 06 Sep 2013 06:32:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VHtLB-0008RS-Mp for qemu-devel@nongnu.org; Fri, 06 Sep 2013 06:32:44 -0400 Received: from mx1.redhat.com ([209.132.183.28]:1756) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VHtLB-0008RC-FW for qemu-devel@nongnu.org; Fri, 06 Sep 2013 06:32:37 -0400 From: Kevin Wolf Date: Fri, 6 Sep 2013 12:32:24 +0200 Message-Id: <1378463546-26671-1-git-send-email-kwolf@redhat.com> Subject: [Qemu-devel] [PATCH 0/2] qcow2: Discard VM state in active L1 after creating snapshot List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kwolf@redhat.com, xuanmao_001@163.com, stefanha@redhat.com, mreitz@redhat.com This series fixes that 'savevm' becomes much slower after the first snapshot. The reason is unnecessary COW for the VM state, which is now avoided. Kevin Wolf (2): qcow2: Pass discard type to qcow2_discard_clusters() qcow2: Discard VM state in active L1 after creating snapshot block/qcow2-cluster.c | 8 ++++---- block/qcow2-snapshot.c | 7 +++++++ block/qcow2.c | 7 +------ block/qcow2.h | 7 ++++++- 4 files changed, 18 insertions(+), 11 deletions(-) -- 1.8.1.4