projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7dcaffc
)
x86/p2m: set_shared_p2m_entry() is MEM_SHARING-only
author
Jan Beulich
<jbeulich@suse.com>
Wed, 16 Dec 2020 15:44:18 +0000
(16:44 +0100)
committer
Jan Beulich
<jbeulich@suse.com>
Wed, 16 Dec 2020 15:44:18 +0000
(16:44 +0100)
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Tamas K Lengyel <tamas@tklengyel.com>
xen/arch/x86/mm/p2m.c
patch
|
blob
|
history
diff --git
a/xen/arch/x86/mm/p2m.c
b/xen/arch/x86/mm/p2m.c
index db6cc2202d52ef16ad5fbeebe336af1eed640945..cd0812db18230f17e5dd54e0be975b4aa5225c46 100644
(file)
--- a/
xen/arch/x86/mm/p2m.c
+++ b/
xen/arch/x86/mm/p2m.c
@@
-1466,6
+1466,8
@@
int clear_identity_p2m_entry(struct domain *d, unsigned long gfn_l)
return ret;
}
+#ifdef CONFIG_MEM_SHARING
+
/* Returns: 0 for success, -errno for failure */
int set_shared_p2m_entry(struct domain *d, unsigned long gfn_l, mfn_t mfn)
{
@@
-1504,7
+1506,10
@@
int set_shared_p2m_entry(struct domain *d, unsigned long gfn_l, mfn_t mfn)
return rc;
}
+#endif /* CONFIG_MEM_SHARING */
+
#ifdef CONFIG_HVM
+
static struct p2m_domain *
p2m_getlru_nestedp2m(struct domain *d, struct p2m_domain *p2m)
{