|
Daniel P. Berrange |
1e96c6 |
From 0f6878d5529718216809846dd05b988134cb32d8 Mon Sep 17 00:00:00 2001
|
|
Daniel P. Berrange |
1e96c6 |
From: Paul Durrant <paul.durrant@citrix.com>
|
|
Daniel P. Berrange |
1e96c6 |
Date: Tue, 7 Mar 2017 10:55:31 +0000
|
|
Daniel P. Berrange |
1e96c6 |
Subject: [PATCH 2/6] xen: rename xen_modified_memory() to
|
|
Daniel P. Berrange |
1e96c6 |
xen_hvm_modified_memory()
|
|
Daniel P. Berrange |
1e96c6 |
|
|
Daniel P. Berrange |
1e96c6 |
This patch is a purely cosmetic change that avoids a name collision in
|
|
Daniel P. Berrange |
1e96c6 |
a subsequent patch.
|
|
Daniel P. Berrange |
1e96c6 |
|
|
Daniel P. Berrange |
1e96c6 |
Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
|
|
Daniel P. Berrange |
1e96c6 |
Reviewed-by: Anthony Perard <anthony.perard@citrix.com>
|
|
Daniel P. Berrange |
1e96c6 |
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
|
|
Daniel P. Berrange |
1e96c6 |
---
|
|
Daniel P. Berrange |
1e96c6 |
include/exec/ram_addr.h | 4 ++--
|
|
Daniel P. Berrange |
1e96c6 |
include/hw/xen/xen.h | 2 +-
|
|
Daniel P. Berrange |
1e96c6 |
xen-hvm-stub.c | 2 +-
|
|
Daniel P. Berrange |
1e96c6 |
xen-hvm.c | 2 +-
|
|
Daniel P. Berrange |
1e96c6 |
4 files changed, 5 insertions(+), 5 deletions(-)
|
|
Daniel P. Berrange |
1e96c6 |
|
|
Daniel P. Berrange |
1e96c6 |
diff --git a/include/exec/ram_addr.h b/include/exec/ram_addr.h
|
|
Daniel P. Berrange |
1e96c6 |
index b05dc84ab9..29647303b0 100644
|
|
Daniel P. Berrange |
1e96c6 |
--- a/include/exec/ram_addr.h
|
|
Daniel P. Berrange |
1e96c6 |
+++ b/include/exec/ram_addr.h
|
|
Daniel P. Berrange |
1e96c6 |
@@ -260,7 +260,7 @@ static inline void cpu_physical_memory_set_dirty_range(ram_addr_t start,
|
|
Daniel P. Berrange |
1e96c6 |
|
|
Daniel P. Berrange |
1e96c6 |
rcu_read_unlock();
|
|
Daniel P. Berrange |
1e96c6 |
|
|
Daniel P. Berrange |
1e96c6 |
- xen_modified_memory(start, length);
|
|
Daniel P. Berrange |
1e96c6 |
+ xen_hvm_modified_memory(start, length);
|
|
Daniel P. Berrange |
1e96c6 |
}
|
|
Daniel P. Berrange |
1e96c6 |
|
|
Daniel P. Berrange |
1e96c6 |
#if !defined(_WIN32)
|
|
Daniel P. Berrange |
1e96c6 |
@@ -314,7 +314,7 @@ static inline void cpu_physical_memory_set_dirty_lebitmap(unsigned long *bitmap,
|
|
Daniel P. Berrange |
1e96c6 |
|
|
Daniel P. Berrange |
1e96c6 |
rcu_read_unlock();
|
|
Daniel P. Berrange |
1e96c6 |
|
|
Daniel P. Berrange |
1e96c6 |
- xen_modified_memory(start, pages << TARGET_PAGE_BITS);
|
|
Daniel P. Berrange |
1e96c6 |
+ xen_hvm_modified_memory(start, pages << TARGET_PAGE_BITS);
|
|
Daniel P. Berrange |
1e96c6 |
} else {
|
|
Daniel P. Berrange |
1e96c6 |
uint8_t clients = tcg_enabled() ? DIRTY_CLIENTS_ALL : DIRTY_CLIENTS_NOCODE;
|
|
Daniel P. Berrange |
1e96c6 |
/*
|
|
Daniel P. Berrange |
1e96c6 |
diff --git a/include/hw/xen/xen.h b/include/hw/xen/xen.h
|
|
Daniel P. Berrange |
1e96c6 |
index 09c2ce5170..2b1733b747 100644
|
|
Daniel P. Berrange |
1e96c6 |
--- a/include/hw/xen/xen.h
|
|
Daniel P. Berrange |
1e96c6 |
+++ b/include/hw/xen/xen.h
|
|
Daniel P. Berrange |
1e96c6 |
@@ -43,7 +43,7 @@ void xen_hvm_init(PCMachineState *pcms, MemoryRegion **ram_memory);
|
|
Daniel P. Berrange |
1e96c6 |
|
|
Daniel P. Berrange |
1e96c6 |
void xen_ram_alloc(ram_addr_t ram_addr, ram_addr_t size,
|
|
Daniel P. Berrange |
1e96c6 |
struct MemoryRegion *mr, Error **errp);
|
|
Daniel P. Berrange |
1e96c6 |
-void xen_modified_memory(ram_addr_t start, ram_addr_t length);
|
|
Daniel P. Berrange |
1e96c6 |
+void xen_hvm_modified_memory(ram_addr_t start, ram_addr_t length);
|
|
Daniel P. Berrange |
1e96c6 |
|
|
Daniel P. Berrange |
1e96c6 |
void xen_register_framebuffer(struct MemoryRegion *mr);
|
|
Daniel P. Berrange |
1e96c6 |
|
|
Daniel P. Berrange |
1e96c6 |
diff --git a/xen-hvm-stub.c b/xen-hvm-stub.c
|
|
Daniel P. Berrange |
1e96c6 |
index c5003251cb..3ca6c51b21 100644
|
|
Daniel P. Berrange |
1e96c6 |
--- a/xen-hvm-stub.c
|
|
Daniel P. Berrange |
1e96c6 |
+++ b/xen-hvm-stub.c
|
|
Daniel P. Berrange |
1e96c6 |
@@ -50,7 +50,7 @@ void xen_register_framebuffer(MemoryRegion *mr)
|
|
Daniel P. Berrange |
1e96c6 |
{
|
|
Daniel P. Berrange |
1e96c6 |
}
|
|
Daniel P. Berrange |
1e96c6 |
|
|
Daniel P. Berrange |
1e96c6 |
-void xen_modified_memory(ram_addr_t start, ram_addr_t length)
|
|
Daniel P. Berrange |
1e96c6 |
+void xen_hvm_modified_memory(ram_addr_t start, ram_addr_t length)
|
|
Daniel P. Berrange |
1e96c6 |
{
|
|
Daniel P. Berrange |
1e96c6 |
}
|
|
Daniel P. Berrange |
1e96c6 |
|
|
Daniel P. Berrange |
1e96c6 |
diff --git a/xen-hvm.c b/xen-hvm.c
|
|
Daniel P. Berrange |
1e96c6 |
index dbb8c66dd3..edf4983702 100644
|
|
Daniel P. Berrange |
1e96c6 |
--- a/xen-hvm.c
|
|
Daniel P. Berrange |
1e96c6 |
+++ b/xen-hvm.c
|
|
Daniel P. Berrange |
1e96c6 |
@@ -1391,7 +1391,7 @@ void xen_shutdown_fatal_error(const char *fmt, ...)
|
|
Daniel P. Berrange |
1e96c6 |
qemu_system_shutdown_request();
|
|
Daniel P. Berrange |
1e96c6 |
}
|
|
Daniel P. Berrange |
1e96c6 |
|
|
Daniel P. Berrange |
1e96c6 |
-void xen_modified_memory(ram_addr_t start, ram_addr_t length)
|
|
Daniel P. Berrange |
1e96c6 |
+void xen_hvm_modified_memory(ram_addr_t start, ram_addr_t length)
|
|
Daniel P. Berrange |
1e96c6 |
{
|
|
Daniel P. Berrange |
1e96c6 |
if (unlikely(xen_in_migration)) {
|
|
Daniel P. Berrange |
1e96c6 |
int rc;
|
|
Daniel P. Berrange |
1e96c6 |
--
|
|
Daniel P. Berrange |
1e96c6 |
2.13.0
|
|
Daniel P. Berrange |
1e96c6 |
|