cryptospore / rpms / qemu-kvm

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