From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41963) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VTrx7-00055g-ER for qemu-devel@nongnu.org; Wed, 09 Oct 2013 07:29:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VTrx1-0001Dx-FN for qemu-devel@nongnu.org; Wed, 09 Oct 2013 07:29:17 -0400 Received: from mx1.redhat.com ([209.132.183.28]:58741) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VTrx1-0001Dm-7t for qemu-devel@nongnu.org; Wed, 09 Oct 2013 07:29:11 -0400 From: Juan Quintela Date: Wed, 9 Oct 2013 13:28:36 +0200 Message-Id: <1381318130-10620-15-git-send-email-quintela@redhat.com> In-Reply-To: <1381318130-10620-1-git-send-email-quintela@redhat.com> References: <1381318130-10620-1-git-send-email-quintela@redhat.com> Subject: [Qemu-devel] [PATCH 14/28] memory: use bit 2 for migration List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: chegu_vinod@hp.com For historical reasons it was bit 3. One there create a constant to know the number of clients. Signed-off-by: Juan Quintela --- include/exec/memory.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/exec/memory.h b/include/exec/memory.h index 4bb20d0..a28c6bd 100644 --- a/include/exec/memory.h +++ b/include/exec/memory.h @@ -35,7 +35,8 @@ typedef struct MemoryRegionMmio MemoryRegionMmio; #define DIRTY_MEMORY_VGA 0 #define DIRTY_MEMORY_CODE 1 -#define DIRTY_MEMORY_MIGRATION 3 +#define DIRTY_MEMORY_MIGRATION 2 +#define DIRTY_MEMORY_NUM 3 /* num of dirty bits */ struct MemoryRegionMmio { CPUReadMemoryFunc *read[3]; -- 1.8.3.1