[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen staging] x86: provide stub for memory_type_changed



commit 0199416a2ce1fd84c964d06627f2209ac04afaa2
Author:     Wei Liu <wei.liu2@xxxxxxxxxx>
AuthorDate: Sun Aug 26 13:19:38 2018 +0100
Commit:     Wei Liu <wei.liu2@xxxxxxxxxx>
CommitDate: Tue Aug 28 10:49:02 2018 +0100

    x86: provide stub for memory_type_changed
    
    Jan indicated that for PV guests the memory type is not changed, for
    HVM guests memory_type_changed is needed for EPT's effective memory
    type calculation.  This means memory_type_changed is HVM only.
    
    Provide a stub to minimise code churn.
    
    Signed-off-by: Wei Liu <wei.liu2@xxxxxxxxxx>
    Acked-by: Jan Beulich <jbeulich@xxxxxxxx>
---
 xen/include/asm-x86/mtrr.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/xen/include/asm-x86/mtrr.h b/xen/include/asm-x86/mtrr.h
index 7edcb94479..4be704cb6a 100644
--- a/xen/include/asm-x86/mtrr.h
+++ b/xen/include/asm-x86/mtrr.h
@@ -92,7 +92,12 @@ extern bool_t mtrr_fix_range_msr_set(struct domain *, struct 
mtrr_state *,
                                      uint32_t row, uint64_t msr_content);
 extern bool_t mtrr_def_type_msr_set(struct domain *, struct mtrr_state *,
                                     uint64_t msr_content);
+#ifdef CONFIG_HVM
 extern void memory_type_changed(struct domain *);
+#else
+static inline void memory_type_changed(struct domain *d) {}
+#endif
+
 extern bool_t pat_msr_set(uint64_t *pat, uint64_t msr);
 
 bool is_var_mtrr_overlapped(const struct mtrr_state *m);
--
generated by git-patchbot for /home/xen/git/xen.git#staging

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/xen-changelog

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.