59 lines
1.8 KiB
Diff
59 lines
1.8 KiB
Diff
# HG changeset patch
|
|
# User Keir Fraser <keir.fraser@citrix.com>
|
|
# Date 1225114053 0
|
|
# Node ID 9bbb54fd9181644d2bdd3c7f93c2cba1dac1b719
|
|
# Parent 604ffa3cdcc48bbfcfe5e4ccd0af735ddc49d839
|
|
Constify arguments to unmap_domain_page() etc.
|
|
|
|
Signed-off-by: Jan Beulich <jbeulich@novell.com>
|
|
|
|
--- a/xen/arch/x86/x86_32/domain_page.c
|
|
+++ b/xen/arch/x86/x86_32/domain_page.c
|
|
@@ -114,7 +114,7 @@ void *map_domain_page(unsigned long mfn)
|
|
return (void *)va;
|
|
}
|
|
|
|
-void unmap_domain_page(void *va)
|
|
+void unmap_domain_page(const void *va)
|
|
{
|
|
unsigned int idx;
|
|
struct vcpu *v;
|
|
@@ -241,7 +241,7 @@ void *map_domain_page_global(unsigned lo
|
|
return (void *)va;
|
|
}
|
|
|
|
-void unmap_domain_page_global(void *va)
|
|
+void unmap_domain_page_global(const void *va)
|
|
{
|
|
unsigned long __va = (unsigned long)va;
|
|
l2_pgentry_t *pl2e;
|
|
--- a/xen/include/xen/domain_page.h
|
|
+++ b/xen/include/xen/domain_page.h
|
|
@@ -24,7 +24,7 @@ void *map_domain_page(unsigned long mfn)
|
|
* Pass a VA within a page previously mapped in the context of the
|
|
* currently-executing VCPU via a call to map_domain_page().
|
|
*/
|
|
-void unmap_domain_page(void *va);
|
|
+void unmap_domain_page(const void *va);
|
|
|
|
/*
|
|
* Similar to the above calls, except the mapping is accessible in all
|
|
@@ -32,7 +32,7 @@ void unmap_domain_page(void *va);
|
|
* mappings can also be unmapped from any context.
|
|
*/
|
|
void *map_domain_page_global(unsigned long mfn);
|
|
-void unmap_domain_page_global(void *va);
|
|
+void unmap_domain_page_global(const void *va);
|
|
|
|
#define DMCACHE_ENTRY_VALID 1U
|
|
#define DMCACHE_ENTRY_HELD 2U
|
|
@@ -75,7 +75,7 @@ map_domain_page_with_cache(unsigned long
|
|
}
|
|
|
|
static inline void
|
|
-unmap_domain_page_with_cache(void *va, struct domain_mmap_cache *cache)
|
|
+unmap_domain_page_with_cache(const void *va, struct domain_mmap_cache *cache)
|
|
{
|
|
ASSERT(cache != NULL);
|
|
cache->flags &= ~DMCACHE_ENTRY_HELD;
|