x86/shadow: put PV L1TF functions under CONFIG_PV

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
This commit is contained in:
Wei Liu committed 2018-10-11 09:41:23 +01:00
1 parent 0c0677f003
commit 23058e7b36
1 file changed
+4
+4
View 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)
{
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.