x86: move some xen mm function declarations
authorWei Liu <wei.liu2@citrix.com>
Tue, 7 Jan 2020 12:06:43 +0000 (12:06 +0000)
committerWei Liu <wl@xen.org>
Tue, 7 Jan 2020 13:33:19 +0000 (13:33 +0000)
They were put into page.h but mm.h is more appropriate.

The real reason is that I will be adding some new functions which
takes mfn_t. It turns out it is a bit difficult to do in page.h.

No functional change.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/include/asm-x86/mm.h
xen/include/asm-x86/page.h

index 1479ba6703764475fda3b7fb647b2236cda05a70..2ca8882ad0d5a6585d29f18d4f8ed212c9423da1 100644 (file)
@@ -579,6 +579,11 @@ void update_cr3(struct vcpu *v);
 int vcpu_destroy_pagetables(struct vcpu *);
 void *do_page_walk(struct vcpu *v, unsigned long addr);
 
+/* Allocator functions for Xen pagetables. */
+void *alloc_xen_pagetable(void);
+void free_xen_pagetable(void *v);
+l1_pgentry_t *virt_to_xen_l1e(unsigned long v);
+
 int __sync_local_execstate(void);
 
 /* Arch-specific portion of memory_op hypercall. */
index c1e92937c07394b4cc25bdc7725da5b76357051c..05a8b1efa637532720c23cd67269ac02207d7c0c 100644 (file)
@@ -345,11 +345,6 @@ void efi_update_l4_pgtable(unsigned int l4idx, l4_pgentry_t);
 
 #ifndef __ASSEMBLY__
 
-/* Allocator functions for Xen pagetables. */
-void *alloc_xen_pagetable(void);
-void free_xen_pagetable(void *v);
-l1_pgentry_t *virt_to_xen_l1e(unsigned long v);
-
 /* Convert between PAT/PCD/PWT embedded in PTE flags and 3-bit cacheattr. */
 static inline unsigned int pte_flags_to_cacheattr(unsigned int flags)
 {