[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen staging] x86/paging: paging_set_allocation() is init-only
commit 7881bf488263f52b8f6dd9935031d7b405958c0c Author: Jan Beulich <jbeulich@xxxxxxxx> AuthorDate: Mon Apr 1 11:09:43 2019 +0200 Commit: Jan Beulich <jbeulich@xxxxxxxx> CommitDate: Mon Apr 1 11:09:43 2019 +0200 x86/paging: paging_set_allocation() is init-only This is needed for Dom0 creation only, therefore it gets additionally framed by an #ifdef. Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx> Reviewed-by: George Dunlap <george.dunlap@xxxxxxxxxx> --- xen/arch/x86/mm/paging.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xen/arch/x86/mm/paging.c b/xen/arch/x86/mm/paging.c index 21db3eceb6..9b0f268e74 100644 --- a/xen/arch/x86/mm/paging.c +++ b/xen/arch/x86/mm/paging.c @@ -950,7 +950,9 @@ int paging_write_p2m_entry(struct p2m_domain *p2m, unsigned long gfn, return rc; } -int paging_set_allocation(struct domain *d, unsigned int pages, bool *preempted) +#ifdef CONFIG_HVM +int __init paging_set_allocation(struct domain *d, unsigned int pages, + bool *preempted) { int rc; @@ -965,6 +967,7 @@ int paging_set_allocation(struct domain *d, unsigned int pages, bool *preempted) return rc; } +#endif /* * Local variables: -- generated by git-patchbot for /home/xen/git/xen.git#staging _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/xen-changelog |
Lists.xenproject.org is hosted with RackSpace, monitoring our |