[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH] set pv guest default video_memkb to 0
On Tue, Nov 18, 2014 at 03:57:08PM -0500, Zhigang Wang wrote: > Before this patch, pv guest video_memkb is -1, which is an invalid value. > And it will cause the xenstore 'memory/targe' calculation wrong: > > memory/target = info->target_memkb - info->video_memkb CC-ing the maintainers. Is this an regression as compared to Xen 4.4 or is this also in Xen 4.4? Thanks. > > Signed-off-by: Zhigang Wang <zhigang.x.wang@xxxxxxxxxx> > --- > tools/libxl/libxl_create.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/tools/libxl/libxl_create.c b/tools/libxl/libxl_create.c > index b1ff5ae..1198225 100644 > --- a/tools/libxl/libxl_create.c > +++ b/tools/libxl/libxl_create.c > @@ -357,6 +357,8 @@ int libxl__domain_build_info_setdefault(libxl__gc *gc, > break; > case LIBXL_DOMAIN_TYPE_PV: > libxl_defbool_setdefault(&b_info->u.pv.e820_host, false); > + if (b_info->video_memkb == LIBXL_MEMKB_DEFAULT) > + b_info->video_memkb = 0; > if (b_info->shadow_memkb == LIBXL_MEMKB_DEFAULT) > b_info->shadow_memkb = 0; > if (b_info->u.pv.slack_memkb == LIBXL_MEMKB_DEFAULT) > -- > 1.8.3.1 > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@xxxxxxxxxxxxx > http://lists.xen.org/xen-devel _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |