* [PATCH] x86/paging: paging_set_allocation() is init-only
@ 2019-03-11 16:38 Jan Beulich
2019-03-19 17:00 ` George Dunlap
0 siblings, 1 reply; 2+ messages in thread
From: Jan Beulich @ 2019-03-11 16:38 UTC (permalink / raw)
To: xen-devel; +Cc: George Dunlap
This is needed for Dom0 creation only, therefore it gets additionally
framed by an #ifdef.
Signed-off-by: Jan Beulich <jbeulich@suse.com>
--- 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_do
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
return rc;
}
+#endif
/*
* Local variables:
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] x86/paging: paging_set_allocation() is init-only
2019-03-11 16:38 [PATCH] x86/paging: paging_set_allocation() is init-only Jan Beulich
@ 2019-03-19 17:00 ` George Dunlap
0 siblings, 0 replies; 2+ messages in thread
From: George Dunlap @ 2019-03-19 17:00 UTC (permalink / raw)
To: Jan Beulich, xen-devel; +Cc: George Dunlap
On 3/11/19 4:38 PM, Jan Beulich wrote:
> This is needed for Dom0 creation only, therefore it gets additionally
> framed by an #ifdef.
>
> Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: George Dunlap <george.dunlap@citrix.com>
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-03-19 17:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-11 16:38 [PATCH] x86/paging: paging_set_allocation() is init-only Jan Beulich
2019-03-19 17:00 ` George Dunlap
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.