[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [xen staging] xen/gnttab: Log when grant_table_init() fails
commit 3487f4cf8bf5cef47a4c3918c13a502afc9891f6 Author: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> AuthorDate: Tue Jan 19 11:08:17 2021 +0000 Commit: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> CommitDate: Tue Jan 19 18:05:20 2021 +0000 xen/gnttab: Log when grant_table_init() fails ... so debug builds can see what went wrong, rather than getting an unqualified -EINVAL out of domain creation. Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> Acked-by: Jan Beulich <jbeulich@xxxxxxxx> --- xen/common/grant_table.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xen/common/grant_table.c b/xen/common/grant_table.c index b24bce0f9f..f6f5acd300 100644 --- a/xen/common/grant_table.c +++ b/xen/common/grant_table.c @@ -1920,7 +1920,11 @@ int grant_table_init(struct domain *d, int max_grant_frames, if ( max_grant_frames < INITIAL_NR_GRANT_FRAMES || max_grant_frames > opt_max_grant_frames || max_maptrack_frames > opt_max_maptrack_frames ) + { + dprintk(XENLOG_INFO, "Bad grant table sizes: grant %u, maptrack %u\n", + max_grant_frames, max_maptrack_frames); return -EINVAL; + } if ( (gt = xzalloc(struct grant_table)) == NULL ) return -ENOMEM; -- generated by git-patchbot for /home/xen/git/xen.git#staging
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |