From patchwork Tue Mar 18 12:24:24 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Gonglei (Arei)" X-Patchwork-Id: 331406 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 2BD2B2C00AD for ; Tue, 18 Mar 2014 23:45:40 +1100 (EST) Received: from localhost ([::1]:34998 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WPt7e-0004Hu-4a for incoming@patchwork.ozlabs.org; Tue, 18 Mar 2014 08:27:58 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45534) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WPt58-0008Pi-UR for qemu-devel@nongnu.org; Tue, 18 Mar 2014 08:25:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WPt52-0002KH-O5 for qemu-devel@nongnu.org; Tue, 18 Mar 2014 08:25:22 -0400 Received: from szxga03-in.huawei.com ([119.145.14.66]:53908) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WPt51-0002Hv-KH for qemu-devel@nongnu.org; Tue, 18 Mar 2014 08:25:16 -0400 Received: from 172.24.2.119 (EHLO szxeml213-edg.china.huawei.com) ([172.24.2.119]) by szxrg03-dlp.huawei.com (MOS 4.4.3-GA FastPath queued) with ESMTP id AMC10602; Tue, 18 Mar 2014 20:25:03 +0800 (CST) Received: from SZXEML454-HUB.china.huawei.com (10.82.67.197) by szxeml213-edg.china.huawei.com (172.24.2.30) with Microsoft SMTP Server (TLS) id 14.3.158.1; Tue, 18 Mar 2014 20:25:03 +0800 Received: from localhost (10.177.19.102) by SZXEML454-HUB.china.huawei.com (10.82.67.197) with Microsoft SMTP Server id 14.3.158.1; Tue, 18 Mar 2014 20:24:57 +0800 From: To: Date: Tue, 18 Mar 2014 20:24:24 +0800 Message-ID: <1395145464-5524-11-git-send-email-arei.gonglei@huawei.com> X-Mailer: git-send-email 1.7.3.1.msysgit.0 In-Reply-To: <1395145464-5524-1-git-send-email-arei.gonglei@huawei.com> References: <1395145464-5524-1-git-send-email-arei.gonglei@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.177.19.102] X-CFilter-Loop: Reflected X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 119.145.14.66 Cc: ChenLiang , weidong.huang@huawei.com, quintela@redhat.com, owasserm@redhat.com, Gonglei , pbonzini@redhat.com Subject: [Qemu-devel] [PATCH v3 10/10] XBZRLE: update the doc of XBZRLE X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org From: ChenLiang update the doc of XBZRLE Signed-off-by: ChenLiang Signed-off-by: Gonglei --- docs/xbzrle.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/xbzrle.txt b/docs/xbzrle.txt index cc3a26a..cdf1e3e 100644 --- a/docs/xbzrle.txt +++ b/docs/xbzrle.txt @@ -71,6 +71,13 @@ encoded buffer: encoded length 24 e9 07 0f 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f 03 01 67 01 01 69 +The strategy of updating cache +================================= +Keeping the hot page in cache is effective to decrease cache missing. +XBZRLE use a counter as the age of page. The counter will increase +after the ram dirty bitmap syncing. When cache conflicts XBZRLE only +replace the old page in cache. + Usage ====================== 1. Verify the destination QEMU version is able to decode the new format.