[PATCH] KVM: Qemu: Do not use log dirty in IA64

"Zhang, Yang" <[email protected]>
Newsgroups org.kernel.vger.kvm-ia64,org.kernel.vger.kvm
Message-ID <10C63FAD690C13458F0B32BCED571F140E328C16@pdsmsx502.ccr.corp.intel.com>
hi
	please checkin it to kvm85, thanks!

IA64 does not support log dirty. We should not use it
in IA64, or it will have some problem.


Signed-off-by: Yang Zhang <[email protected]>
---
 qemu/qemu-kvm.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/qemu/qemu-kvm.c b/qemu/qemu-kvm.c
index 4164368..ed76367 100644
--- a/qemu/qemu-kvm.c
+++ b/qemu/qemu-kvm.c
@@ -1374,7 +1374,10 @@ int kvm_log_start(target_phys_addr_t phys_addr, target_phys_addr_t len)
     if (must_use_aliases_source(phys_addr))
         return 0;
 #endif
+
+#ifndef TARGET_IA64
     kvm_qemu_log_memory(phys_addr, len, 1);
+#endif
     return 0;
 }
 
@@ -1384,7 +1387,10 @@ int kvm_log_stop(target_phys_addr_t phys_addr, target_phys_addr_t len)
     if (must_use_aliases_source(phys_addr))
         return 0;
 #endif
+
+#ifndef TARGET_IA64
     kvm_qemu_log_memory(phys_addr, len, 0);
+#endif
     return 0;
 }
 
-- 
1.6.0.rc1
0001-KVM-Qemu-Do-not-use-log-dirty-in-IA64.patch (application/octet-stream, 1.1 KB)
From ad482ea5b23e1f6796e8a41964e7f5cedff0b231 Mon Sep 17 00:00:00 2001
From: Yang Zhang <[email protected]>
Date: Thu, 26 Mar 2009 22:13:06 -0400
Subject: [PATCH] KVM: Qemu: Do not use log dirty in IA64

IA64 does not support log dirty. We should not use it
in IA64, or it will have some problem.

Signed-off-by: Yang Zhang <[email protected]>
---
 qemu/qemu-kvm.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/qemu/qemu-kvm.c b/qemu/qemu-kvm.c
index 4164368..ed76367 100644
--- a/qemu/qemu-kvm.c
+++ b/qemu/qemu-kvm.c
@@ -1374,7 +1374,10 @@ int kvm_log_start(target_phys_addr_t phys_addr, target_phys_addr_t len)
     if (must_use_aliases_source(phys_addr))
         return 0;
 #endif
+
+#ifndef TARGET_IA64
     kvm_qemu_log_memory(phys_addr, len, 1);
+#endif
     return 0;
 }
 
@@ -1384,7 +1387,10 @@ int kvm_log_stop(target_phys_addr_t phys_addr, target_phys_addr_t len)
     if (must_use_aliases_source(phys_addr))
         return 0;
 #endif
+
+#ifndef TARGET_IA64
     kvm_qemu_log_memory(phys_addr, len, 0);
+#endif
     return 0;
 }
 
-- 
1.6.0.rc1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.