Signed-off-by: Jan Beulich <jbeul...@suse.com> --- a/xen/arch/x86/mm/p2m.c +++ b/xen/arch/x86/mm/p2m.c @@ -1476,6 +1476,8 @@ int clear_identity_p2m_entry(struct doma 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) { @@ -1514,7 +1516,10 @@ int set_shared_p2m_entry(struct domain * return rc; } +#endif /* CONFIG_MEM_SHARING */ + #ifdef CONFIG_HVM + static struct p2m_domain * p2m_getlru_nestedp2m(struct domain *d, struct p2m_domain *p2m) {
- Re: [PATCH 2/6] x86/mm: p2m_add_foreign() is HVM-only Andrew Cooper
- Re: [PATCH 2/6] x86/mm: p2m_add_foreign() is HVM-... Jan Beulich
- Re: [PATCH 2/6] x86/mm: p2m_add_foreign() is HVM-... Jan Beulich
- Re: [PATCH 2/6] x86/mm: p2m_add_foreign() is ... Andrew Cooper
- [PATCH 3/6] x86/p2m: set_{foreign,mmio}_p2m_entry() are HV... Jan Beulich
- Re: [PATCH 3/6] x86/p2m: set_{foreign,mmio}_p2m_entry... Andrew Cooper
- [PATCH 4/6] x86/p2m: {,un}map_mmio_regions() are HVM-only Jan Beulich
- [PATCH 5/6] x86/mm: the gva_to_gfn() hook is HVM-only Jan Beulich
- [PATCH 6/6] x86/p2m: set_shared_p2m_entry() is MEM_SHARING... Jan Beulich
- Re: [PATCH 6/6] x86/p2m: set_shared_p2m_entry() is ME... Tamas K Lengyel