[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 2/6] xen: add mapcache stubs
From: |
Alexander Graf |
Subject: |
[Qemu-devel] [PATCH 2/6] xen: add mapcache stubs |
Date: |
Tue, 19 Jul 2011 04:53:28 +0200 |
During the transition to get rid of CONFIG_XEN_MAPCACHE we lost the mapcache
stubs along the way. Nobody realized it because the commands were guarded by
if (xen_enabled()) clauses that made gcc optimize out the respective calls.
This patch adds the stubs again - this time in the generic xen-stubs.c
Signed-off-by: Alexander Graf <address@hidden>
---
xen-stub.c | 26 ++++++++++++++++++++++++++
1 files changed, 26 insertions(+), 0 deletions(-)
diff --git a/xen-stub.c b/xen-stub.c
index efe2ab5..76d80e9 100644
--- a/xen-stub.c
+++ b/xen-stub.c
@@ -8,6 +8,7 @@
#include "qemu-common.h"
#include "hw/xen.h"
+#include "xen-mapcache.h"
void xenstore_store_pv_console_info(int i, CharDriverState *chr)
{
@@ -43,3 +44,28 @@ int xen_init(void)
{
return -ENOSYS;
}
+
+/******* mapcache stubs *******/
+
+void xen_map_cache_init(void)
+{
+}
+
+uint8_t *xen_map_cache(target_phys_addr_t phys_addr, target_phys_addr_t size,
+ uint8_t lock)
+{
+ return qemu_get_ram_ptr(phys_addr);
+}
+
+ram_addr_t xen_ram_addr_from_mapcache(void *ptr)
+{
+ return -1;
+}
+
+void xen_invalidate_map_cache(void)
+{
+}
+
+void xen_invalidate_map_cache_entry(uint8_t *buffer)
+{
+}
--
1.6.0.2
- [Qemu-devel] [PATCH 0/6] Xen patch queue 2011-07-20, Alexander Graf, 2011/07/20
- [Qemu-devel] [PATCH 3/6] xen: Fix xen_enabled()., Alexander Graf, 2011/07/20
- [Qemu-devel] [PATCH 1/6] xen: introduce xen_change_state_handler, Alexander Graf, 2011/07/20
- [Qemu-devel] [PATCH 5/6] xen: remove CONFIG_XEN_MAPCACHE, Alexander Graf, 2011/07/20
- [Qemu-devel] [PATCH 4/6] exec.c: Use ram_addr_t in cpu_physical_memory_rw(...)., Alexander Graf, 2011/07/20
- [Qemu-devel] [PATCH 2/6] xen: add mapcache stubs,
Alexander Graf <=
- [Qemu-devel] [PATCH 6/6] xen: make xen_enabled even more clever, Alexander Graf, 2011/07/20
- Re: [Qemu-devel] [PATCH 0/6] Xen patch queue 2011-07-20, Alexander Graf, 2011/07/20