xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH]: libxc: set all VCPU's online by default in HVM info table
@ 2011-02-11 15:42 Gianni Tedesco
  2011-02-16 13:24 ` Stefano Stabellini
  0 siblings, 1 reply; 3+ messages in thread
From: Gianni Tedesco @ 2011-02-11 15:42 UTC (permalink / raw)
  To: Xen Devel; +Cc: George Dunlap, Ian Campbell, Tim Deegan, Fraser, Keir

This sets a saner default for the cpu-online-map by setting all bits to
1. The default assumption ought to be that nr-vcpus ==
nr-vcpus-at-start. If that is not true, then the toolstack must modify
the bitmap, but if it is true, the toolstack oughtn't need to do
anything further.

Signed-off-by: Gianni Tedesco <gianni.tedesco@citrix.com>

diff -r a0662e3bedea tools/libxc/xc_hvm_build.c
--- a/tools/libxc/xc_hvm_build.c	Fri Feb 11 14:28:14 2011 +0000
+++ b/tools/libxc/xc_hvm_build.c	Fri Feb 11 14:39:47 2011 +0000
@@ -70,6 +70,7 @@ static void build_hvm_info(void *hvm_inf
     hvm_info->acpi_enabled = 1;
     hvm_info->apic_mode = 1;
     hvm_info->nr_vcpus = 1;
+    memset(hvm_info->vcpu_online, 0xff, sizeof(hvm_info->vcpu_online));
 
     /* Memory parameters. */
     hvm_info->low_mem_pgend = lowmem_end >> PAGE_SHIFT;

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH]: libxc: set all VCPU's online by default in HVM info table
  2011-02-11 15:42 [PATCH]: libxc: set all VCPU's online by default in HVM info table Gianni Tedesco
@ 2011-02-16 13:24 ` Stefano Stabellini
  2011-04-07 10:37   ` George Dunlap
  0 siblings, 1 reply; 3+ messages in thread
From: Stefano Stabellini @ 2011-02-16 13:24 UTC (permalink / raw)
  To: Gianni Tedesco; +Cc: George Dunlap, Ian Campbell, Deegan, Xen Devel

On Fri, 11 Feb 2011, Gianni Tedesco wrote:
> This sets a saner default for the cpu-online-map by setting all bits to
> 1. The default assumption ought to be that nr-vcpus ==
> nr-vcpus-at-start. If that is not true, then the toolstack must modify
> the bitmap, but if it is true, the toolstack oughtn't need to do
> anything further.
> 
> Signed-off-by: Gianni Tedesco <gianni.tedesco@citrix.com>
> 


Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>


> diff -r a0662e3bedea tools/libxc/xc_hvm_build.c
> --- a/tools/libxc/xc_hvm_build.c	Fri Feb 11 14:28:14 2011 +0000
> +++ b/tools/libxc/xc_hvm_build.c	Fri Feb 11 14:39:47 2011 +0000
> @@ -70,6 +70,7 @@ static void build_hvm_info(void *hvm_inf
>      hvm_info->acpi_enabled = 1;
>      hvm_info->apic_mode = 1;
>      hvm_info->nr_vcpus = 1;
> +    memset(hvm_info->vcpu_online, 0xff, sizeof(hvm_info->vcpu_online));
>  
>      /* Memory parameters. */
>      hvm_info->low_mem_pgend = lowmem_end >> PAGE_SHIFT;
> 
> 
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH]: libxc: set all VCPU's online by default in HVM info table
  2011-02-16 13:24 ` Stefano Stabellini
@ 2011-04-07 10:37   ` George Dunlap
  0 siblings, 0 replies; 3+ messages in thread
From: George Dunlap @ 2011-04-07 10:37 UTC (permalink / raw)
  To: Stefano Stabellini; +Cc: Ian Campbell, Tim Deegan, Xen Devel, Gianni Tedesco

This patch seems to have been acked, but never actually applied.  It's
probably still worth applying at least to -unstable.  I'd consider
backporting it to 4.1 as well...

 -George

On Wed, Feb 16, 2011 at 1:24 PM, Stefano Stabellini
<stefano.stabellini@eu.citrix.com> wrote:
> On Fri, 11 Feb 2011, Gianni Tedesco wrote:
>> This sets a saner default for the cpu-online-map by setting all bits to
>> 1. The default assumption ought to be that nr-vcpus ==
>> nr-vcpus-at-start. If that is not true, then the toolstack must modify
>> the bitmap, but if it is true, the toolstack oughtn't need to do
>> anything further.
>>
>> Signed-off-by: Gianni Tedesco <gianni.tedesco@citrix.com>
>>
>
>
> Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
>
>
>> diff -r a0662e3bedea tools/libxc/xc_hvm_build.c
>> --- a/tools/libxc/xc_hvm_build.c      Fri Feb 11 14:28:14 2011 +0000
>> +++ b/tools/libxc/xc_hvm_build.c      Fri Feb 11 14:39:47 2011 +0000
>> @@ -70,6 +70,7 @@ static void build_hvm_info(void *hvm_inf
>>      hvm_info->acpi_enabled = 1;
>>      hvm_info->apic_mode = 1;
>>      hvm_info->nr_vcpus = 1;
>> +    memset(hvm_info->vcpu_online, 0xff, sizeof(hvm_info->vcpu_online));
>>
>>      /* Memory parameters. */
>>      hvm_info->low_mem_pgend = lowmem_end >> PAGE_SHIFT;
>>
>>
>>
>> _______________________________________________
>> Xen-devel mailing list
>> Xen-devel@lists.xensource.com
>> http://lists.xensource.com/xen-devel
>>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-04-07 10:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-11 15:42 [PATCH]: libxc: set all VCPU's online by default in HVM info table Gianni Tedesco
2011-02-16 13:24 ` Stefano Stabellini
2011-04-07 10:37   ` George Dunlap

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).