[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v5 RFC 11/14] tools/libxc: x86 HVM save code
On 12/06/14 16:55, David Vrabel wrote: > On 11/06/14 19:14, Andrew Cooper wrote: >> --- /dev/null >> +++ b/tools/libxc/saverestore/save_x86_hvm.c > ... >> +static int write_hvm_params(struct context *ctx) >> +{ > ... >> + >> + for ( i = 0; i < ARRAY_SIZE(params); i++ ) >> + { >> + uint32_t index = params[i]; >> + uint64_t value; >> + >> + rc = xc_get_hvm_param(xch, ctx->domid, index, (unsigned long >> *)&value); >> + if ( rc ) >> + { >> + /* Gross XenServer hack. Consider HVM_PARAM_CONSOLE_PFN failure >> + * nonfatal. This is related to the fact it is impossible to >> + * distinguish "no console" from a console at pfn/evtchn 0. >> + * >> + * TODO - find a compatible way to fix this. >> + */ >> + if ( index == HVM_PARAM_CONSOLE_PFN ) >> + continue; > Um. Is this really needed with upstream Xen? > > David What is needed with upstream Xen is way of representing "no console". The XenServer way of unconditionally failing the get_param hypercall with -EINVAL is not suitable. This particular hack however shouldn't have slipped in. It comes as a side effect of testing this series under XenServer. ~Andrew _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |