Re: [Xen-devel] [RFC][v2][PATCH 07/14] xen/passthrough: extend hypercall to support rdm reservation policy

2015-05-25 Thread Chen, Tiejun
On 2015/5/25 19:42, Julien Grall wrote: Hi, On 25/05/2015 12:50, Chen, Tiejun wrote: On 2015/5/25 18:02, Julien Grall wrote: On 25/05/2015 04:09, Chen, Tiejun wrote: On 2015/5/22 18:33, Julien Grall wrote: Hi, On 22/05/2015 10:35, Tiejun Chen wrote: diff --git a/xen/include/public/domct

Re: [Xen-devel] [RFC][v2][PATCH 07/14] xen/passthrough: extend hypercall to support rdm reservation policy

2015-05-25 Thread Julien Grall
Hi, On 25/05/2015 12:50, Chen, Tiejun wrote: On 2015/5/25 18:02, Julien Grall wrote: On 25/05/2015 04:09, Chen, Tiejun wrote: On 2015/5/22 18:33, Julien Grall wrote: Hi, On 22/05/2015 10:35, Tiejun Chen wrote: diff --git a/xen/include/public/domctl.h b/xen/include/public/domctl.h index 0

Re: [Xen-devel] [RFC][v2][PATCH 07/14] xen/passthrough: extend hypercall to support rdm reservation policy

2015-05-25 Thread Chen, Tiejun
On 2015/5/25 18:02, Julien Grall wrote: On 25/05/2015 04:09, Chen, Tiejun wrote: On 2015/5/22 18:33, Julien Grall wrote: Hi, On 22/05/2015 10:35, Tiejun Chen wrote: diff --git a/xen/include/public/domctl.h b/xen/include/public/domctl.h index 0c0ea4a..203c80e 100644 --- a/xen/include/public

Re: [Xen-devel] [RFC][v2][PATCH 07/14] xen/passthrough: extend hypercall to support rdm reservation policy

2015-05-25 Thread Julien Grall
On 25/05/2015 04:09, Chen, Tiejun wrote: On 2015/5/22 18:33, Julien Grall wrote: Hi, On 22/05/2015 10:35, Tiejun Chen wrote: diff --git a/xen/include/public/domctl.h b/xen/include/public/domctl.h index 0c0ea4a..203c80e 100644 --- a/xen/include/public/domctl.h +++ b/xen/include/public/domctl.

Re: [Xen-devel] [RFC][v2][PATCH 07/14] xen/passthrough: extend hypercall to support rdm reservation policy

2015-05-24 Thread Chen, Tiejun
On 2015/5/22 18:33, Julien Grall wrote: Hi, On 22/05/2015 10:35, Tiejun Chen wrote: diff --git a/xen/include/public/domctl.h b/xen/include/public/domctl.h index 0c0ea4a..203c80e 100644 --- a/xen/include/public/domctl.h +++ b/xen/include/public/domctl.h @@ -499,6 +499,11 @@ struct xen_domctl_ass

Re: [Xen-devel] [RFC][v2][PATCH 07/14] xen/passthrough: extend hypercall to support rdm reservation policy

2015-05-22 Thread Julien Grall
Hi, On 22/05/2015 10:35, Tiejun Chen wrote: diff --git a/xen/include/public/domctl.h b/xen/include/public/domctl.h index 0c0ea4a..203c80e 100644 --- a/xen/include/public/domctl.h +++ b/xen/include/public/domctl.h @@ -499,6 +499,11 @@ struct xen_domctl_assign_device { XEN_GUEST_HAND

[Xen-devel] [RFC][v2][PATCH 07/14] xen/passthrough: extend hypercall to support rdm reservation policy

2015-05-22 Thread Tiejun Chen
This patch extends the existing hypercall to support rdm reservation policy. We return error or just throw out a warning message depending on whether the policy is 'force' or 'try'. And in some cases, e.g. add a device to hwdomain, and remove a device from user domain, 'try' is fine enough since th