|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [XEN PATCH for-4.13 v5 10/10] libxl/xl: Overhaul passthrough setting logic
Julien Grall writes ("Re: [XEN PATCH for-4.13 v5 10/10] libxl/xl: Overhaul
passthrough setting logic"):
> On 18/10/2019 16:06, Ian Jackson wrote:
...
> > + if (c_info->passthrough == LIBXL_PASSTHROUGH_SYNC_PT) {
> > + LOGD(ERROR, domid,
> > + "passthrough=\"sync_pt\" not supported on ARM\n");
> > + rc = ERROR_INVAL;
> > + goto out;
> > + }
>
> Would it make sense to use a switch case or whitelist here? So we don't end
> up
> to slip through if a new type is added and unsupported on Arm.
I wouldn't mind changing this to
c_info->passthrough != LIBXL_PASSTHROUGH_SHARE_PT
Although it's a shame you're raising this now. This code has been
like this since v3. Would you mind if we did this as a followup
patch ?
Ian.
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |