thebeanogamer / rpms / qemu-kvm

Forked from rpms/qemu-kvm 5 months ago
Clone
9ae3a8
From 620f885e15281ca32108331e68aec4ace5bdcec2 Mon Sep 17 00:00:00 2001
9ae3a8
From: Juan Quintela <quintela@redhat.com>
9ae3a8
Date: Tue, 14 Jan 2014 15:07:24 +0100
9ae3a8
Subject: [PATCH 13/40] memory: use bit 2 for migration
9ae3a8
9ae3a8
RH-Author: Juan Quintela <quintela@redhat.com>
9ae3a8
Message-id: <1389712071-23303-14-git-send-email-quintela@redhat.com>
9ae3a8
Patchwork-id: 56668
9ae3a8
O-Subject: [RHEL7 qemu-kvm PATCH 13/40] memory: use bit 2 for migration
9ae3a8
Bugzilla: 997559
9ae3a8
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
9ae3a8
RH-Acked-by: Orit Wasserman <owasserm@redhat.com>
9ae3a8
RH-Acked-by: Dr. David Alan Gilbert (git) <dgilbert@redhat.com>
9ae3a8
9ae3a8
For historical reasons it was bit 3.  Once there, create a constant to
9ae3a8
know the number of clients.
9ae3a8
9ae3a8
Signed-off-by: Juan Quintela <quintela@redhat.com>
9ae3a8
Reviewed-by: Eric Blake <eblake@redhat.com>
9ae3a8
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
9ae3a8
(cherry picked from commit 5adca7ace9b80bf594e4c52c0d5b23573cba3639)
9ae3a8
Signed-off-by: Juan Quintela <quintela@trasno.org>
9ae3a8
---
9ae3a8
 include/exec/memory.h | 3 ++-
9ae3a8
 1 file changed, 2 insertions(+), 1 deletion(-)
9ae3a8
9ae3a8
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
9ae3a8
---
9ae3a8
 include/exec/memory.h |    3 ++-
9ae3a8
 1 files changed, 2 insertions(+), 1 deletions(-)
9ae3a8
9ae3a8
diff --git a/include/exec/memory.h b/include/exec/memory.h
9ae3a8
index 868fdb1..0023edf 100644
9ae3a8
--- a/include/exec/memory.h
9ae3a8
+++ b/include/exec/memory.h
9ae3a8
@@ -32,7 +32,8 @@ typedef struct MemoryRegionMmio MemoryRegionMmio;
9ae3a8
 
9ae3a8
 #define DIRTY_MEMORY_VGA       0
9ae3a8
 #define DIRTY_MEMORY_CODE      1
9ae3a8
-#define DIRTY_MEMORY_MIGRATION 3
9ae3a8
+#define DIRTY_MEMORY_MIGRATION 2
9ae3a8
+#define DIRTY_MEMORY_NUM       3        /* num of dirty bits */
9ae3a8
 
9ae3a8
 struct MemoryRegionMmio {
9ae3a8
     CPUReadMemoryFunc *read[3];
9ae3a8
-- 
9ae3a8
1.7.1
9ae3a8