Re: [Xen-devel] [PATCH v3 01/17] libxl/arm: Factor out codes for generating DTB

2016-07-07 Thread Wei Liu
On Thu, Jul 07, 2016 at 12:12:48PM -0400, Boris Ostrovsky wrote:
> On 07/07/2016 12:06 PM, Julien Grall wrote:
> >
> >
> > On 07/07/16 16:48, Boris Ostrovsky wrote:
> >> On 07/07/2016 11:41 AM, Wei Liu wrote:
> >>> On Tue, Jul 05, 2016 at 11:12:31AM +0800, Shannon Zhao wrote:
>  From: Shannon Zhao 
> 
>  Factor out codes for generating DTB to prepare for adding ACPI tables
>  generation codes.
> 
>  Signed-off-by: Shannon Zhao 
>  Acked-by: Wei Liu 
>  ---
>    tools/libxl/libxl_arm.c | 18 --
>    1 file changed, 12 insertions(+), 6 deletions(-)
> 
>  diff --git a/tools/libxl/libxl_arm.c b/tools/libxl/libxl_arm.c
>  index ddd80aa..4a57dd7 100644
>  --- a/tools/libxl/libxl_arm.c
>  +++ b/tools/libxl/libxl_arm.c
>  @@ -747,10 +747,9 @@ static int copy_partial_fdt(libxl__gc *gc,
>  void *fdt, void *pfdt)
> 
>    #define FDT_MAX_SIZE (1<<20)
> 
>  -int libxl__arch_domain_init_hw_description(libxl__gc *gc,
>  -   libxl_domain_build_info
>  *info,
>  -  
>  libxl__domain_build_state *state,
>  -   struct xc_dom_image *dom)
>  +static int libxl__prepare_dtb(libxl__gc *gc,
>  libxl_domain_build_info *info,
>  +   libxl__domain_build_state *state,
>  +   struct xc_dom_image *dom)
> >>> I've queued this up for committing and will fix the indentation as I go
> >>> along.
> >>
> >>
> >> I don't think this can be ready for committing since it sits on top of
> >> my not-yet-reviewed series (which is pretty much guaranteed to require a
> >> new spin).
> >
> > This is only used by the ARM code which you don't modify. So I don't
> > see any issue to commit this patch.
> 
> I thought Wei was referring to the whole series being prepared for
> committing. If he was talking only about this patch (and possibly
> selected other patches) then yes, there is no dependency here. I know
> that further patches in this series want to see tools/libacpi, for
> example, and that is not ready.
> 

Oh yes, sure. This patch series is not yet ready to go in. :-)

I was only about to commit this first patch to reduce Shannon's patch
queue length.

> -boris
> 
> 

___
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel


Re: [Xen-devel] [PATCH v3 01/17] libxl/arm: Factor out codes for generating DTB

2016-07-07 Thread Julien Grall



On 07/07/16 17:12, Boris Ostrovsky wrote:

On 07/07/2016 12:06 PM, Julien Grall wrote:



On 07/07/16 16:48, Boris Ostrovsky wrote:

On 07/07/2016 11:41 AM, Wei Liu wrote:

On Tue, Jul 05, 2016 at 11:12:31AM +0800, Shannon Zhao wrote:

From: Shannon Zhao 

Factor out codes for generating DTB to prepare for adding ACPI tables
generation codes.

Signed-off-by: Shannon Zhao 
Acked-by: Wei Liu 
---
   tools/libxl/libxl_arm.c | 18 --
   1 file changed, 12 insertions(+), 6 deletions(-)

diff --git a/tools/libxl/libxl_arm.c b/tools/libxl/libxl_arm.c
index ddd80aa..4a57dd7 100644
--- a/tools/libxl/libxl_arm.c
+++ b/tools/libxl/libxl_arm.c
@@ -747,10 +747,9 @@ static int copy_partial_fdt(libxl__gc *gc,
void *fdt, void *pfdt)

   #define FDT_MAX_SIZE (1<<20)

-int libxl__arch_domain_init_hw_description(libxl__gc *gc,
-   libxl_domain_build_info
*info,
-
libxl__domain_build_state *state,
-   struct xc_dom_image *dom)
+static int libxl__prepare_dtb(libxl__gc *gc,
libxl_domain_build_info *info,
+   libxl__domain_build_state *state,
+   struct xc_dom_image *dom)

I've queued this up for committing and will fix the indentation as I go
along.



I don't think this can be ready for committing since it sits on top of
my not-yet-reviewed series (which is pretty much guaranteed to require a
new spin).


This is only used by the ARM code which you don't modify. So I don't
see any issue to commit this patch.


I thought Wei was referring to the whole series being prepared for
committing. If he was talking only about this patch (and possibly
selected other patches) then yes, there is no dependency here. I know
that further patches in this series want to see tools/libacpi, for
example, and that is not ready.


I know about this. I don't think this series is ready to be fully 
committed due to some the disagreement such as where to handle the ACPI 
blob.


However, it would be nice to get trivial patch to slim down the size of 
the series.


Cheers,

--
Julien Grall

___
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel


Re: [Xen-devel] [PATCH v3 01/17] libxl/arm: Factor out codes for generating DTB

2016-07-07 Thread Boris Ostrovsky
On 07/07/2016 12:06 PM, Julien Grall wrote:
>
>
> On 07/07/16 16:48, Boris Ostrovsky wrote:
>> On 07/07/2016 11:41 AM, Wei Liu wrote:
>>> On Tue, Jul 05, 2016 at 11:12:31AM +0800, Shannon Zhao wrote:
 From: Shannon Zhao 

 Factor out codes for generating DTB to prepare for adding ACPI tables
 generation codes.

 Signed-off-by: Shannon Zhao 
 Acked-by: Wei Liu 
 ---
   tools/libxl/libxl_arm.c | 18 --
   1 file changed, 12 insertions(+), 6 deletions(-)

 diff --git a/tools/libxl/libxl_arm.c b/tools/libxl/libxl_arm.c
 index ddd80aa..4a57dd7 100644
 --- a/tools/libxl/libxl_arm.c
 +++ b/tools/libxl/libxl_arm.c
 @@ -747,10 +747,9 @@ static int copy_partial_fdt(libxl__gc *gc,
 void *fdt, void *pfdt)

   #define FDT_MAX_SIZE (1<<20)

 -int libxl__arch_domain_init_hw_description(libxl__gc *gc,
 -   libxl_domain_build_info
 *info,
 -  
 libxl__domain_build_state *state,
 -   struct xc_dom_image *dom)
 +static int libxl__prepare_dtb(libxl__gc *gc,
 libxl_domain_build_info *info,
 +   libxl__domain_build_state *state,
 +   struct xc_dom_image *dom)
>>> I've queued this up for committing and will fix the indentation as I go
>>> along.
>>
>>
>> I don't think this can be ready for committing since it sits on top of
>> my not-yet-reviewed series (which is pretty much guaranteed to require a
>> new spin).
>
> This is only used by the ARM code which you don't modify. So I don't
> see any issue to commit this patch.

I thought Wei was referring to the whole series being prepared for
committing. If he was talking only about this patch (and possibly
selected other patches) then yes, there is no dependency here. I know
that further patches in this series want to see tools/libacpi, for
example, and that is not ready.

-boris



___
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel


Re: [Xen-devel] [PATCH v3 01/17] libxl/arm: Factor out codes for generating DTB

2016-07-07 Thread Wei Liu
On Thu, Jul 07, 2016 at 05:06:11PM +0100, Julien Grall wrote:
> 
> 
> On 07/07/16 16:48, Boris Ostrovsky wrote:
> >On 07/07/2016 11:41 AM, Wei Liu wrote:
> >>On Tue, Jul 05, 2016 at 11:12:31AM +0800, Shannon Zhao wrote:
> >>>From: Shannon Zhao 
> >>>
> >>>Factor out codes for generating DTB to prepare for adding ACPI tables
> >>>generation codes.
> >>>
> >>>Signed-off-by: Shannon Zhao 
> >>>Acked-by: Wei Liu 
> >>>---
> >>>  tools/libxl/libxl_arm.c | 18 --
> >>>  1 file changed, 12 insertions(+), 6 deletions(-)
> >>>
> >>>diff --git a/tools/libxl/libxl_arm.c b/tools/libxl/libxl_arm.c
> >>>index ddd80aa..4a57dd7 100644
> >>>--- a/tools/libxl/libxl_arm.c
> >>>+++ b/tools/libxl/libxl_arm.c
> >>>@@ -747,10 +747,9 @@ static int copy_partial_fdt(libxl__gc *gc, void *fdt, 
> >>>void *pfdt)
> >>>
> >>>  #define FDT_MAX_SIZE (1<<20)
> >>>
> >>>-int libxl__arch_domain_init_hw_description(libxl__gc *gc,
> >>>-   libxl_domain_build_info *info,
> >>>-   libxl__domain_build_state 
> >>>*state,
> >>>-   struct xc_dom_image *dom)
> >>>+static int libxl__prepare_dtb(libxl__gc *gc, libxl_domain_build_info 
> >>>*info,
> >>>+   libxl__domain_build_state *state,
> >>>+   struct xc_dom_image *dom)
> >>I've queued this up for committing and will fix the indentation as I go
> >>along.
> >
> >
> >I don't think this can be ready for committing since it sits on top of
> >my not-yet-reviewed series (which is pretty much guaranteed to require a
> >new spin).
> 
> This is only used by the ARM code which you don't modify. So I don't see any
> issue to commit this patch.

Ah, so I can go ahead after all.

> 
> Regards,
> 
> 
> -- 
> Julien Grall

___
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel


Re: [Xen-devel] [PATCH v3 01/17] libxl/arm: Factor out codes for generating DTB

2016-07-07 Thread Wei Liu
On Thu, Jul 07, 2016 at 11:48:49AM -0400, Boris Ostrovsky wrote:
> On 07/07/2016 11:41 AM, Wei Liu wrote:
> > On Tue, Jul 05, 2016 at 11:12:31AM +0800, Shannon Zhao wrote:
> >> From: Shannon Zhao 
> >>
> >> Factor out codes for generating DTB to prepare for adding ACPI tables
> >> generation codes.
> >>
> >> Signed-off-by: Shannon Zhao 
> >> Acked-by: Wei Liu 
> >> ---
> >>  tools/libxl/libxl_arm.c | 18 --
> >>  1 file changed, 12 insertions(+), 6 deletions(-)
> >>
> >> diff --git a/tools/libxl/libxl_arm.c b/tools/libxl/libxl_arm.c
> >> index ddd80aa..4a57dd7 100644
> >> --- a/tools/libxl/libxl_arm.c
> >> +++ b/tools/libxl/libxl_arm.c
> >> @@ -747,10 +747,9 @@ static int copy_partial_fdt(libxl__gc *gc, void *fdt, 
> >> void *pfdt)
> >>  
> >>  #define FDT_MAX_SIZE (1<<20)
> >>  
> >> -int libxl__arch_domain_init_hw_description(libxl__gc *gc,
> >> -   libxl_domain_build_info *info,
> >> -   libxl__domain_build_state 
> >> *state,
> >> -   struct xc_dom_image *dom)
> >> +static int libxl__prepare_dtb(libxl__gc *gc, libxl_domain_build_info 
> >> *info,
> >> +   libxl__domain_build_state *state,
> >> +   struct xc_dom_image *dom)
> > I've queued this up for committing and will fix the indentation as I go
> > along.
> 
> 
> I don't think this can be ready for committing since it sits on top of
> my not-yet-reviewed series (which is pretty much guaranteed to require a
> new spin).
> 

I thought this patch posted long time ago. But things might have
changed. I will wait.

> 
> -boris
> 
> 
> 

___
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel


Re: [Xen-devel] [PATCH v3 01/17] libxl/arm: Factor out codes for generating DTB

2016-07-07 Thread Julien Grall



On 07/07/16 16:48, Boris Ostrovsky wrote:

On 07/07/2016 11:41 AM, Wei Liu wrote:

On Tue, Jul 05, 2016 at 11:12:31AM +0800, Shannon Zhao wrote:

From: Shannon Zhao 

Factor out codes for generating DTB to prepare for adding ACPI tables
generation codes.

Signed-off-by: Shannon Zhao 
Acked-by: Wei Liu 
---
  tools/libxl/libxl_arm.c | 18 --
  1 file changed, 12 insertions(+), 6 deletions(-)

diff --git a/tools/libxl/libxl_arm.c b/tools/libxl/libxl_arm.c
index ddd80aa..4a57dd7 100644
--- a/tools/libxl/libxl_arm.c
+++ b/tools/libxl/libxl_arm.c
@@ -747,10 +747,9 @@ static int copy_partial_fdt(libxl__gc *gc, void *fdt, void 
*pfdt)

  #define FDT_MAX_SIZE (1<<20)

-int libxl__arch_domain_init_hw_description(libxl__gc *gc,
-   libxl_domain_build_info *info,
-   libxl__domain_build_state *state,
-   struct xc_dom_image *dom)
+static int libxl__prepare_dtb(libxl__gc *gc, libxl_domain_build_info *info,
+   libxl__domain_build_state *state,
+   struct xc_dom_image *dom)

I've queued this up for committing and will fix the indentation as I go
along.



I don't think this can be ready for committing since it sits on top of
my not-yet-reviewed series (which is pretty much guaranteed to require a
new spin).


This is only used by the ARM code which you don't modify. So I don't see 
any issue to commit this patch.


Regards,


--
Julien Grall

___
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel


Re: [Xen-devel] [PATCH v3 01/17] libxl/arm: Factor out codes for generating DTB

2016-07-07 Thread Boris Ostrovsky
On 07/07/2016 11:41 AM, Wei Liu wrote:
> On Tue, Jul 05, 2016 at 11:12:31AM +0800, Shannon Zhao wrote:
>> From: Shannon Zhao 
>>
>> Factor out codes for generating DTB to prepare for adding ACPI tables
>> generation codes.
>>
>> Signed-off-by: Shannon Zhao 
>> Acked-by: Wei Liu 
>> ---
>>  tools/libxl/libxl_arm.c | 18 --
>>  1 file changed, 12 insertions(+), 6 deletions(-)
>>
>> diff --git a/tools/libxl/libxl_arm.c b/tools/libxl/libxl_arm.c
>> index ddd80aa..4a57dd7 100644
>> --- a/tools/libxl/libxl_arm.c
>> +++ b/tools/libxl/libxl_arm.c
>> @@ -747,10 +747,9 @@ static int copy_partial_fdt(libxl__gc *gc, void *fdt, 
>> void *pfdt)
>>  
>>  #define FDT_MAX_SIZE (1<<20)
>>  
>> -int libxl__arch_domain_init_hw_description(libxl__gc *gc,
>> -   libxl_domain_build_info *info,
>> -   libxl__domain_build_state *state,
>> -   struct xc_dom_image *dom)
>> +static int libxl__prepare_dtb(libxl__gc *gc, libxl_domain_build_info *info,
>> +   libxl__domain_build_state *state,
>> +   struct xc_dom_image *dom)
> I've queued this up for committing and will fix the indentation as I go
> along.


I don't think this can be ready for committing since it sits on top of
my not-yet-reviewed series (which is pretty much guaranteed to require a
new spin).


-boris




___
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel


Re: [Xen-devel] [PATCH v3 01/17] libxl/arm: Factor out codes for generating DTB

2016-07-07 Thread Wei Liu
On Tue, Jul 05, 2016 at 11:12:31AM +0800, Shannon Zhao wrote:
> From: Shannon Zhao 
> 
> Factor out codes for generating DTB to prepare for adding ACPI tables
> generation codes.
> 
> Signed-off-by: Shannon Zhao 
> Acked-by: Wei Liu 
> ---
>  tools/libxl/libxl_arm.c | 18 --
>  1 file changed, 12 insertions(+), 6 deletions(-)
> 
> diff --git a/tools/libxl/libxl_arm.c b/tools/libxl/libxl_arm.c
> index ddd80aa..4a57dd7 100644
> --- a/tools/libxl/libxl_arm.c
> +++ b/tools/libxl/libxl_arm.c
> @@ -747,10 +747,9 @@ static int copy_partial_fdt(libxl__gc *gc, void *fdt, 
> void *pfdt)
>  
>  #define FDT_MAX_SIZE (1<<20)
>  
> -int libxl__arch_domain_init_hw_description(libxl__gc *gc,
> -   libxl_domain_build_info *info,
> -   libxl__domain_build_state *state,
> -   struct xc_dom_image *dom)
> +static int libxl__prepare_dtb(libxl__gc *gc, libxl_domain_build_info *info,
> +   libxl__domain_build_state *state,
> +   struct xc_dom_image *dom)

I've queued this up for committing and will fix the indentation as I go
along.

___
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel


[Xen-devel] [PATCH v3 01/17] libxl/arm: Factor out codes for generating DTB

2016-07-04 Thread Shannon Zhao
From: Shannon Zhao 

Factor out codes for generating DTB to prepare for adding ACPI tables
generation codes.

Signed-off-by: Shannon Zhao 
Acked-by: Wei Liu 
---
 tools/libxl/libxl_arm.c | 18 --
 1 file changed, 12 insertions(+), 6 deletions(-)

diff --git a/tools/libxl/libxl_arm.c b/tools/libxl/libxl_arm.c
index ddd80aa..4a57dd7 100644
--- a/tools/libxl/libxl_arm.c
+++ b/tools/libxl/libxl_arm.c
@@ -747,10 +747,9 @@ static int copy_partial_fdt(libxl__gc *gc, void *fdt, void 
*pfdt)
 
 #define FDT_MAX_SIZE (1<<20)
 
-int libxl__arch_domain_init_hw_description(libxl__gc *gc,
-   libxl_domain_build_info *info,
-   libxl__domain_build_state *state,
-   struct xc_dom_image *dom)
+static int libxl__prepare_dtb(libxl__gc *gc, libxl_domain_build_info *info,
+   libxl__domain_build_state *state,
+   struct xc_dom_image *dom)
 {
 void *fdt = NULL;
 void *pfdt = NULL;
@@ -764,8 +763,6 @@ int libxl__arch_domain_init_hw_description(libxl__gc *gc,
 /* convenience aliases */
 xc_domain_configuration_t *xc_config = >config;
 
-assert(info->type == LIBXL_DOMAIN_TYPE_PV);
-
 vers = libxl_get_version_info(CTX);
 if (vers == NULL) return ERROR_FAIL;
 
@@ -883,6 +880,15 @@ out:
 return rc;
 }
 
+int libxl__arch_domain_init_hw_description(libxl__gc *gc,
+   libxl_domain_build_info *info,
+   libxl__domain_build_state *state,
+   struct xc_dom_image *dom)
+{
+assert(info->type == LIBXL_DOMAIN_TYPE_PV);
+return libxl__prepare_dtb(gc, info, state, dom);
+}
+
 static void finalise_one_memory_node(libxl__gc *gc, void *fdt,
  uint64_t base, uint64_t size)
 {
-- 
2.0.4



___
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel