|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v4 1/3] x86/viridian: Re-purpose the HVM parameter to be a feature mask
On 05/08/14 10:44, Paul Durrant wrote:
>
> This patch grandfathers in the current viridian features set and calls them
> the 'base' plus 'freq' feature set. HVM_PARAM_VIRIDIAN is re-purposed as
> a feature mask. It has only ever been legally set to 0 or 1...
"legally" suggests (to me) that this restriction written as part of a
specification rather than enforced in the code, which would make it
unsafe to repurpose the param as you propose.
But, from the actual code:
case HVM_PARAM_VIRIDIAN:
if ( a.value > 1 )
rc = -EINVAL;
break;
So: "Xen only allowed HVM_PARAM_VIRIDIAN to be set to 0 or 1, setting
other values would fail with -EINVAL." makes it clear that it is okay to
extend this param.
David
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |