|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [RFC][PATCH 07/13] xen/passthrough: extend hypercall to support rdm reservation policy
On 2015/4/16 23:40, Tim Deegan wrote: Hi, At 17:21 +0800 on 10 Apr (1428686518), Tiejun Chen wrote:+/* + * In some cases, e.g. add a device to hwdomain, and remove a device from + * user domain, 'try' is fine enough since this is always safe to hwdomain. + */ +#define XEN_DOMCTL_PCIDEV_RDM_DEFAULT XEN_DOMCTL_PCIDEV_RDM_TRYDo we need a way to change this default? As I said in its comment here, this behavior should be rarely changed in the future, and even this really needs to balance something, I just think this way is enough and simply.
Got it but we can't get SBDF here directly.
So just now we can have this line.
{
if ( flag == XEN_DOMCTL_PCIDEV_RDM_TRY )
dprintk(XENLOG_ERR VTDPREFIX,
"RMRR mapping failed to pfn:%"PRIx64""
" so Dom%d may be unstable.\n",
base_pfn, d->domain_id);
else
return err;
}
Certainly, we can extend rmrr_identity_mapping() to own its associated
SBDF as an input parameter (and bring some syncs) if you still think
this is necessary.
This is definitely fine to me but this is derived from our policy based on that previous design,
Global RDM parameter:
rdm = [ 'host, reserve=force/try' ]
Per-device RDM parameter:
pci = [ 'sbdf, rdm_reserve=force/try' ]
Please refer to patch #1. So I guess we need a further agreement or
comments from other guys :)
Thanks Tiejun _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |