From patchwork Thu Jun 6 01:31:36 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yang X-Patchwork-Id: 1110840 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=linux.intel.com Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 45K7T14qVTz9s3Z for ; Thu, 6 Jun 2019 11:32:52 +1000 (AEST) Received: from localhost ([127.0.0.1]:52627 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hYhGs-0006E5-EV for incoming@patchwork.ozlabs.org; Wed, 05 Jun 2019 21:32:50 -0400 Received: from eggs.gnu.org ([209.51.188.92]:40304) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hYhGK-0006Dk-Bm for qemu-devel@nongnu.org; Wed, 05 Jun 2019 21:32:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hYhGI-0001kk-Uq for qemu-devel@nongnu.org; Wed, 05 Jun 2019 21:32:16 -0400 Received: from mga05.intel.com ([192.55.52.43]:31267) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hYhGI-0001ho-NZ for qemu-devel@nongnu.org; Wed, 05 Jun 2019 21:32:14 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 05 Jun 2019 18:32:10 -0700 X-ExtLoop1: 1 Received: from richard.sh.intel.com (HELO localhost) ([10.239.159.54]) by fmsmga001.fm.intel.com with ESMTP; 05 Jun 2019 18:32:09 -0700 From: Wei Yang To: qemu-devel@nongnu.org Date: Thu, 6 Jun 2019 09:31:36 +0800 Message-Id: <20190606013138.13312-1-richardw.yang@linux.intel.com> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 192.55.52.43 Subject: [Qemu-devel] [PATCH 0/2] xbzrle: improve readability a little X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Wei Yang , dgilbert@redhat.com, quintela@redhat.com Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" Two trivial patches to make save_xbzrle_page() a little bit easy to understand. Wei Yang (2): migration/xbzrle: update cache and current_data in one place migration/xbzrle: cleanup the handling cache miss condition migration/ram.c | 36 +++++++++++++++++------------------- 1 file changed, 17 insertions(+), 19 deletions(-)