]> xenbits.xensource.com Git - xen.git/commitdiff
x86/mem_access: move _ve functions to x86 header
authorTamas K Lengyel <tamas@tklengyel.com>
Fri, 24 Jan 2020 13:56:21 +0000 (06:56 -0700)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 24 Jan 2020 15:16:23 +0000 (15:16 +0000)
These functions don't belong in the common mem_access header as there is no #VE
equivalent on ARM.

Signed-off-by: Tamas K Lengyel <tamas@tklengyel.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/include/asm-x86/mem_access.h
xen/include/xen/mem_access.h

index 99817a33db42801cdb42ac6e9648b014a16e11ba..a25e3c62df98289e492a026591fd3723f588470d 100644 (file)
@@ -46,6 +46,16 @@ bool p2m_mem_access_emulate_check(struct vcpu *v,
 /* Sanity check for mem_access hardware support */
 bool p2m_mem_access_sanity_check(const struct domain *d);
 
+int p2m_set_suppress_ve(struct domain *d, gfn_t gfn, bool suppress_ve,
+                        unsigned int altp2m_idx);
+
+struct xen_hvm_altp2m_suppress_ve_multi;
+int p2m_set_suppress_ve_multi(struct domain *d,
+                              struct xen_hvm_altp2m_suppress_ve_multi *suppress_ve);
+
+int p2m_get_suppress_ve(struct domain *d, gfn_t gfn, bool *suppress_ve,
+                        unsigned int altp2m_idx);
+
 #endif /*__ASM_X86_MEM_ACCESS_H__ */
 
 /*
index 9dfebe6a297882e65909e370ae8205d0972e5d4c..0effa0caad63423d2518bac7c6f4f272ca5ab4d9 100644 (file)
@@ -77,16 +77,6 @@ long p2m_set_mem_access_multi(struct domain *d,
                               uint32_t nr, uint32_t start, uint32_t mask,
                               unsigned int altp2m_idx);
 
-int p2m_set_suppress_ve(struct domain *d, gfn_t gfn, bool suppress_ve,
-                        unsigned int altp2m_idx);
-
-struct xen_hvm_altp2m_suppress_ve_multi;
-int p2m_set_suppress_ve_multi(struct domain *d,
-                              struct xen_hvm_altp2m_suppress_ve_multi *suppress_ve);
-
-int p2m_get_suppress_ve(struct domain *d, gfn_t gfn, bool *suppress_ve,
-                        unsigned int altp2m_idx);
-
 /*
  * Get access type for a gfn.
  * If gfn == INVALID_GFN, gets the default access type.