Discussion:
[Xen-changelog] [xen staging] x86/shadow: put PV L1TF functions under CONFIG_PV
p***@xen.org
2018-10-11 09:33:04 UTC
Permalink
commit 23058e7b361a4f6cf740245327ea1841e2be9132
Author: Wei Liu <***@citrix.com>
AuthorDate: Thu Oct 4 16:43:20 2018 +0100
Commit: Wei Liu <***@citrix.com>
CommitDate: Thu Oct 11 09:41:23 2018 +0100

x86/shadow: put PV L1TF functions under CONFIG_PV

Signed-off-by: Wei Liu <***@citrix.com>
Acked-by: Jan Beulich <***@suse.com>
---
xen/include/asm-x86/shadow.h | 4 ++++
1 file changed, 4 insertions(+)

diff --git a/xen/include/asm-x86/shadow.h b/xen/include/asm-x86/shadow.h
index 122f1dff63..de1bae1108 100644
--- a/xen/include/asm-x86/shadow.h
+++ b/xen/include/asm-x86/shadow.h
@@ -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)
{
--
generated by git-patchbot for /home/xen/git/xen.git#staging

Loading...