x86/shadow: put PV L1TF functions under CONFIG_PV
authorWei Liu <wei.liu2@citrix.com>
Thu, 4 Oct 2018 15:43:20 +0000 (16:43 +0100)
committerWei Liu <wei.liu2@citrix.com>
Thu, 11 Oct 2018 08:41:23 +0000 (09:41 +0100)
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/include/asm-x86/shadow.h

index 122f1dff633ccbd0aa97d5cde9cd78364f9f4b9f..de1bae110856ef0e566cce014d8c4551227a22de 100644 (file)
@@ -163,6 +163,8 @@ static inline bool is_l1tf_safe_maddr(intpte_t pte)
     return maddr == 0 || maddr >= l1tf_safe_maddr;
 }
 
+#ifdef CONFIG_PV
+
 static inline bool pv_l1tf_check_pte(struct domain *d, unsigned int level,
                                      intpte_t pte)
 {
@@ -240,6 +242,8 @@ static inline void pv_l1tf_domain_destroy(struct domain *d)
 #endif
 }
 
+#endif /* CONFIG_PV */
+
 /* Remove all shadows of the guest mfn. */
 static inline void shadow_remove_all_shadows(struct domain *d, mfn_t gmfn)
 {