Re: [Xen-devel] [v8][PATCH 04/17] update the existing hypercall to support XEN_DOMCTL_set_rdm

2014-12-18 Thread Chen, Tiejun
On 2014/12/19 0:13, Tim Deegan wrote: Hi Kevin, At 14:09 +0100 on 11 Dec (1418303386), Tim Deegan wrote: At 02:03 + on 11 Dec (1418259797), Tian, Kevin wrote: From: Tim Deegan [mailto:t...@xen.org] Now since the code's not going to be in 4.5 anyway, it should be possible to _develop_ it in

Re: [Xen-devel] [v8][PATCH 04/17] update the existing hypercall to support XEN_DOMCTL_set_rdm

2014-12-18 Thread Tim Deegan
Hi Kevin, At 14:09 +0100 on 11 Dec (1418303386), Tim Deegan wrote: > At 02:03 + on 11 Dec (1418259797), Tian, Kevin wrote: > > > From: Tim Deegan [mailto:t...@xen.org] > > > Now since the code's not going to be in 4.5 anyway, it should be > > > possible to _develop_ it in this manner, possibly

Re: [Xen-devel] [v8][PATCH 04/17] update the existing hypercall to support XEN_DOMCTL_set_rdm

2014-12-11 Thread Tim Deegan
At 02:03 + on 11 Dec (1418259797), Tian, Kevin wrote: > > From: Tim Deegan [mailto:t...@xen.org] > > Now since the code's not going to be in 4.5 anyway, it should be > > possible to _develop_ it in this manner, possibly in a private branch, > > even if the early stages aren't getting applied im

Re: [Xen-devel] [v8][PATCH 04/17] update the existing hypercall to support XEN_DOMCTL_set_rdm

2014-12-10 Thread Tian, Kevin
> From: Tim Deegan [mailto:t...@xen.org] > Sent: Wednesday, December 10, 2014 7:12 PM > > Hi Kevin, > > Thanks for taking the time to work through this. > > At 03:39 + on 10 Dec (1418179184), Tian, Kevin wrote: > > 1. It's more efficient for new people to start from a small, well-defined >

Re: [Xen-devel] [v8][PATCH 04/17] update the existing hypercall to support XEN_DOMCTL_set_rdm

2014-12-10 Thread Konrad Rzeszutek Wilk
On Wed, Dec 10, 2014 at 09:59:12AM +0800, Chen, Tiejun wrote: > On 2014/12/9 18:22, Jan Beulich wrote: > On 09.12.14 at 11:11, wrote: > >>At 08:19 + on 09 Dec (1418109561), Jan Beulich wrote: > >>>Why do you always pick other than the simplest possible solution? > >> > >>Jan, please don't

Re: [Xen-devel] [v8][PATCH 04/17] update the existing hypercall to support XEN_DOMCTL_set_rdm

2014-12-10 Thread Tim Deegan
Hi Kevin, Thanks for taking the time to work through this. At 03:39 + on 10 Dec (1418179184), Tian, Kevin wrote: > 1. It's more efficient for new people to start from a small, well-defined task > in one area, and then spanning to adjacent areas gradually. Patience must > be given by the comm

Re: [Xen-devel] [v8][PATCH 04/17] update the existing hypercall to support XEN_DOMCTL_set_rdm

2014-12-10 Thread Tian, Kevin
> From: Jan Beulich [mailto:jbeul...@suse.com] > Sent: Wednesday, December 10, 2014 5:01 PM > > >>> On 10.12.14 at 04:39, wrote: > > 1. It's more efficient for new people to start from a small, well-defined > > task > > in one area, and then spanning to adjacent areas gradually. Patience must > >

Re: [Xen-devel] [v8][PATCH 04/17] update the existing hypercall to support XEN_DOMCTL_set_rdm

2014-12-10 Thread Jan Beulich
>>> On 10.12.14 at 04:39, wrote: > 1. It's more efficient for new people to start from a small, well-defined > task > in one area, and then spanning to adjacent areas gradually. Patience must > be given by the community to help them grow; Yes. But if a large item like the RMRR one is being pick

Re: [Xen-devel] [v8][PATCH 04/17] update the existing hypercall to support XEN_DOMCTL_set_rdm

2014-12-09 Thread Tian, Kevin
> From: Tim Deegan [mailto:t...@xen.org] > Sent: Tuesday, December 09, 2014 6:11 PM > > At 08:19 + on 09 Dec (1418109561), Jan Beulich wrote: > > Why do you always pick other than the simplest possible solution? > > Jan, please don't make personal comments like this in code review. It > can

Re: [Xen-devel] [v8][PATCH 04/17] update the existing hypercall to support XEN_DOMCTL_set_rdm

2014-12-09 Thread Chen, Tiejun
On 2014/12/9 18:22, Jan Beulich wrote: On 09.12.14 at 11:11, wrote: At 08:19 + on 09 Dec (1418109561), Jan Beulich wrote: Why do you always pick other than the simplest possible solution? Jan, please don't make personal comments like this in code review. It can only offend and demoraliz

Re: [Xen-devel] [v8][PATCH 04/17] update the existing hypercall to support XEN_DOMCTL_set_rdm

2014-12-09 Thread Jan Beulich
>>> On 09.12.14 at 11:11, wrote: > At 08:19 + on 09 Dec (1418109561), Jan Beulich wrote: >> Why do you always pick other than the simplest possible solution? > > Jan, please don't make personal comments like this in code review. It > can only offend and demoralize contributors, and deter oth

Re: [Xen-devel] [v8][PATCH 04/17] update the existing hypercall to support XEN_DOMCTL_set_rdm

2014-12-09 Thread Tim Deegan
At 08:19 + on 09 Dec (1418109561), Jan Beulich wrote: > Why do you always pick other than the simplest possible solution? Jan, please don't make personal comments like this in code review. It can only offend and demoralize contributors, and deter other people from joining in. I understand th

Re: [Xen-devel] [v8][PATCH 04/17] update the existing hypercall to support XEN_DOMCTL_set_rdm

2014-12-09 Thread Chen, Tiejun
On 2014/12/9 17:21, Jan Beulich wrote: On 09.12.14 at 10:12, wrote: On 2014/12/9 16:19, Jan Beulich wrote: On 09.12.14 at 08:47, wrote: On 2014/12/8 16:51, Jan Beulich wrote: The whole "if-copy-unlock-and-return-EFAULT-otherwise-increment" is identical and can be factored out pretty easily

Re: [Xen-devel] [v8][PATCH 04/17] update the existing hypercall to support XEN_DOMCTL_set_rdm

2014-12-09 Thread Jan Beulich
>>> On 09.12.14 at 10:12, wrote: > On 2014/12/9 16:19, Jan Beulich wrote: > On 09.12.14 at 08:47, wrote: >>> On 2014/12/8 16:51, Jan Beulich wrote: The whole "if-copy-unlock-and-return-EFAULT-otherwise-increment" is identical and can be factored out pretty easily afaict. >>> >>> Wha

Re: [Xen-devel] [v8][PATCH 04/17] update the existing hypercall to support XEN_DOMCTL_set_rdm

2014-12-09 Thread Chen, Tiejun
On 2014/12/9 16:19, Jan Beulich wrote: On 09.12.14 at 08:47, wrote: On 2014/12/8 16:51, Jan Beulich wrote: The whole "if-copy-unlock-and-return-EFAULT-otherwise-increment" is identical and can be factored out pretty easily afaict. What about this? struct get_reserved_device_memory { s

Re: [Xen-devel] [v8][PATCH 04/17] update the existing hypercall to support XEN_DOMCTL_set_rdm

2014-12-09 Thread Jan Beulich
>>> On 09.12.14 at 08:47, wrote: > On 2014/12/8 16:51, Jan Beulich wrote: >> The whole "if-copy-unlock-and-return-EFAULT-otherwise-increment" >> is identical and can be factored out pretty easily afaict. > > What about this? > > struct get_reserved_device_memory { > struct xen_reserved_devi

Re: [Xen-devel] [v8][PATCH 04/17] update the existing hypercall to support XEN_DOMCTL_set_rdm

2014-12-08 Thread Chen, Tiejun
On 2014/12/8 16:51, Jan Beulich wrote: On 08.12.14 at 08:11, wrote: On 2014/12/4 23:50, Jan Beulich wrote: On 01.12.14 at 10:24, wrote: -if ( __copy_to_compat_offset(grdm->map.buffer, grdm->used_entries, - &rdm, 1) ) -return -EFAULT; +

Re: [Xen-devel] [v8][PATCH 04/17] update the existing hypercall to support XEN_DOMCTL_set_rdm

2014-12-08 Thread Jan Beulich
>>> On 08.12.14 at 08:11, wrote: > On 2014/12/4 23:50, Jan Beulich wrote: > On 01.12.14 at 10:24, wrote: >>> >>> -if ( __copy_to_compat_offset(grdm->map.buffer, grdm->used_entries, >>> - &rdm, 1) ) >>> -return -EFAULT; >>> +if ( d )

Re: [Xen-devel] [v8][PATCH 04/17] update the existing hypercall to support XEN_DOMCTL_set_rdm

2014-12-07 Thread Chen, Tiejun
On 2014/12/4 23:50, Jan Beulich wrote: On 01.12.14 at 10:24, wrote: --- a/xen/common/compat/memory.c +++ b/xen/common/compat/memory.c @@ -22,27 +22,66 @@ struct get_reserved_device_memory { unsigned int used_entries; }; -static int get_reserved_device_memory(xen_pfn_t start, -

Re: [Xen-devel] [v8][PATCH 04/17] update the existing hypercall to support XEN_DOMCTL_set_rdm

2014-12-07 Thread Chen, Tiejun
On 2014/12/2 16:46, Tian, Kevin wrote: From: Chen, Tiejun Sent: Monday, December 01, 2014 5:24 PM After we intend to expost that hypercall explicitly based on XEN_DOMCTL_set_rdm, we need this rebase. I hope we can squash this into that previous patch once Jan Ack this. better to merge together

Re: [Xen-devel] [v8][PATCH 04/17] update the existing hypercall to support XEN_DOMCTL_set_rdm

2014-12-04 Thread Jan Beulich
>>> On 01.12.14 at 10:24, wrote: > --- a/xen/common/compat/memory.c > +++ b/xen/common/compat/memory.c > @@ -22,27 +22,66 @@ struct get_reserved_device_memory { > unsigned int used_entries; > }; > > -static int get_reserved_device_memory(xen_pfn_t start, > -

Re: [Xen-devel] [v8][PATCH 04/17] update the existing hypercall to support XEN_DOMCTL_set_rdm

2014-12-02 Thread Tian, Kevin
> From: Chen, Tiejun > Sent: Monday, December 01, 2014 5:24 PM > > After we intend to expost that hypercall explicitly based on > XEN_DOMCTL_set_rdm, we need this rebase. I hope we can squash > this into that previous patch once Jan Ack this. better to merge together, since it's the right thing t

[Xen-devel] [v8][PATCH 04/17] update the existing hypercall to support XEN_DOMCTL_set_rdm

2014-12-01 Thread Tiejun Chen
After we intend to expost that hypercall explicitly based on XEN_DOMCTL_set_rdm, we need this rebase. I hope we can squash this into that previous patch once Jan Ack this. Signed-off-by: Tiejun Chen --- xen/common/compat/memory.c | 75 ++ xen/common/me