* change in 'smp_cpus' at runtime vs vcpu_info?
@ 2008-09-26 14:17 Jes Sorensen
2008-09-26 14:28 ` Glauber Costa
0 siblings, 1 reply; 5+ messages in thread
From: Jes Sorensen @ 2008-09-26 14:17 UTC (permalink / raw)
To: kvm
Hi,
Looking through the KVM qemu code, I see nothing that indicates that
smp_cpus can be increased after qemu is initially launched?
Does anyone see any reason why we couldn't allocate the vcpu_info
array at launch time based on the value of smp_cpus? Right now
vcpu_info is a static array and I would love to get rid of this
limitation if possible.
Cheers,
Jes
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: change in 'smp_cpus' at runtime vs vcpu_info?
2008-09-26 14:17 change in 'smp_cpus' at runtime vs vcpu_info? Jes Sorensen
@ 2008-09-26 14:28 ` Glauber Costa
2008-09-26 14:31 ` Jes Sorensen
0 siblings, 1 reply; 5+ messages in thread
From: Glauber Costa @ 2008-09-26 14:28 UTC (permalink / raw)
To: Jes Sorensen; +Cc: kvm
On Fri, Sep 26, 2008 at 11:17 AM, Jes Sorensen <jes@sgi.com> wrote:
> Hi,
>
> Looking through the KVM qemu code, I see nothing that indicates that
> smp_cpus can be increased after qemu is initially launched?
>
> Does anyone see any reason why we couldn't allocate the vcpu_info
> array at launch time based on the value of smp_cpus? Right now
> vcpu_info is a static array and I would love to get rid of this
> limitation if possible.
it can increase in hw/apic.c. The real limitation is then in the bios.
The APIC tables
used to be populated based on the smp_cpus value, and now are populated based on
MAX_CPUS.
--
Glauber Costa.
"Free as in Freedom"
http://glommer.net
"The less confident you are, the more serious you have to act."
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: change in 'smp_cpus' at runtime vs vcpu_info?
2008-09-26 14:28 ` Glauber Costa
@ 2008-09-26 14:31 ` Jes Sorensen
2008-09-26 14:39 ` Glauber Costa
0 siblings, 1 reply; 5+ messages in thread
From: Jes Sorensen @ 2008-09-26 14:31 UTC (permalink / raw)
To: Glauber Costa; +Cc: kvm
Glauber Costa wrote:
> On Fri, Sep 26, 2008 at 11:17 AM, Jes Sorensen <jes@sgi.com> wrote:
>> Hi,
>>
>> Looking through the KVM qemu code, I see nothing that indicates that
>> smp_cpus can be increased after qemu is initially launched?
>>
>> Does anyone see any reason why we couldn't allocate the vcpu_info
>> array at launch time based on the value of smp_cpus? Right now
>> vcpu_info is a static array and I would love to get rid of this
>> limitation if possible.
>
> it can increase in hw/apic.c. The real limitation is then in the bios.
> The APIC tables
> used to be populated based on the smp_cpus value, and now are populated based on
> MAX_CPUS.
Hmmm. I don't see any reference to MAX_CPUS in hw/apic.c, any chance you
can give me a pointer?
Thanks,
Jes
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: change in 'smp_cpus' at runtime vs vcpu_info?
2008-09-26 14:31 ` Jes Sorensen
@ 2008-09-26 14:39 ` Glauber Costa
2008-09-26 14:46 ` Jes Sorensen
0 siblings, 1 reply; 5+ messages in thread
From: Glauber Costa @ 2008-09-26 14:39 UTC (permalink / raw)
To: Jes Sorensen; +Cc: kvm
On Fri, Sep 26, 2008 at 11:31 AM, Jes Sorensen <jes@sgi.com> wrote:
> Glauber Costa wrote:
>>
>> On Fri, Sep 26, 2008 at 11:17 AM, Jes Sorensen <jes@sgi.com> wrote:
>>>
>>> Hi,
>>>
>>> Looking through the KVM qemu code, I see nothing that indicates that
>>> smp_cpus can be increased after qemu is initially launched?
>>>
>>> Does anyone see any reason why we couldn't allocate the vcpu_info
>>> array at launch time based on the value of smp_cpus? Right now
>>> vcpu_info is a static array and I would love to get rid of this
>>> limitation if possible.
>>
>> it can increase in hw/apic.c. The real limitation is then in the bios.
>> The APIC tables
>> used to be populated based on the smp_cpus value, and now are populated
>> based on
>> MAX_CPUS.
>
> Hmmm. I don't see any reference to MAX_CPUS in hw/apic.c, any chance you
> can give me a pointer?
sorry. That's not apic (damn acronyms), It's acpi.
But the reference to MAX_CPUS is at bios/rombios32.c when building the tables.
the acpi code just fire them out.
>
> Thanks,
> Jes
>
--
Glauber Costa.
"Free as in Freedom"
http://glommer.net
"The less confident you are, the more serious you have to act."
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: change in 'smp_cpus' at runtime vs vcpu_info?
2008-09-26 14:39 ` Glauber Costa
@ 2008-09-26 14:46 ` Jes Sorensen
0 siblings, 0 replies; 5+ messages in thread
From: Jes Sorensen @ 2008-09-26 14:46 UTC (permalink / raw)
To: Glauber Costa; +Cc: kvm
Glauber Costa wrote:
> On Fri, Sep 26, 2008 at 11:31 AM, Jes Sorensen <jes@sgi.com> wrote:
>> Hmmm. I don't see any reference to MAX_CPUS in hw/apic.c, any chance you
>> can give me a pointer?
>
> sorry. That's not apic (damn acronyms), It's acpi.
> But the reference to MAX_CPUS is at bios/rombios32.c when building the tables.
> the acpi code just fire them out.
Oh, that seems to be x86 gibberish though :-)
Well the point is that qemu-kvm.c seems to loop over the vcpu_info array
based on smp_cpus, so if we hotplug a CPU and smp_cpus isn't updated,
which I cannot find any place that does, then we'll end up looping over
only a subset of cpus?
or am I missing something here?
Cheers,
Jes
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-09-26 14:46 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-26 14:17 change in 'smp_cpus' at runtime vs vcpu_info? Jes Sorensen
2008-09-26 14:28 ` Glauber Costa
2008-09-26 14:31 ` Jes Sorensen
2008-09-26 14:39 ` Glauber Costa
2008-09-26 14:46 ` Jes Sorensen
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).