Re: [Qemu-devel] [PATCH v4 11/13] pc: add 'etc/boot-cpus' fw_cfg file for machine with more than 255 CPUs

2016-10-20 Thread Igor Mammedov
On Thu, 20 Oct 2016 12:15:07 -0200 Eduardo Habkost wrote: > On Thu, Oct 20, 2016 at 03:27:50PM +0200, Igor Mammedov wrote: > > On Thu, 20 Oct 2016 10:27:33 -0200 > > Eduardo Habkost wrote: > > > > > On Thu, Oct 20, 2016 at 01:27:34PM +0200, Igor

Re: [Qemu-devel] [PATCH v4 11/13] pc: add 'etc/boot-cpus' fw_cfg file for machine with more than 255 CPUs

2016-10-20 Thread Kevin O'Connor
On Thu, Oct 20, 2016 at 10:27:33AM -0200, Eduardo Habkost wrote: > (Why does SeaBIOS need to start the other CPUs, anyway, except > for building the APIC ID list for the ACPI tables?) SeaBIOS only starts the other CPUs when running on QEMU (it does not on coreboot). The main reason is to

Re: [Qemu-devel] [PATCH v4 11/13] pc: add 'etc/boot-cpus' fw_cfg file for machine with more than 255 CPUs

2016-10-20 Thread Eduardo Habkost
On Thu, Oct 20, 2016 at 03:27:50PM +0200, Igor Mammedov wrote: > On Thu, 20 Oct 2016 10:27:33 -0200 > Eduardo Habkost wrote: > > > On Thu, Oct 20, 2016 at 01:27:34PM +0200, Igor Mammedov wrote: > > > On Wed, 19 Oct 2016 16:29:29 -0200 > > > Eduardo Habkost

Re: [Qemu-devel] [PATCH v4 11/13] pc: add 'etc/boot-cpus' fw_cfg file for machine with more than 255 CPUs

2016-10-20 Thread Igor Mammedov
On Thu, 20 Oct 2016 10:27:33 -0200 Eduardo Habkost wrote: > On Thu, Oct 20, 2016 at 01:27:34PM +0200, Igor Mammedov wrote: > > On Wed, 19 Oct 2016 16:29:29 -0200 > > Eduardo Habkost wrote: > > > > > On Wed, Oct 19, 2016 at 05:18:38PM +0200, Igor

Re: [Qemu-devel] [PATCH v4 11/13] pc: add 'etc/boot-cpus' fw_cfg file for machine with more than 255 CPUs

2016-10-20 Thread Eduardo Habkost
On Thu, Oct 20, 2016 at 01:27:34PM +0200, Igor Mammedov wrote: > On Wed, 19 Oct 2016 16:29:29 -0200 > Eduardo Habkost wrote: > > > On Wed, Oct 19, 2016 at 05:18:38PM +0200, Igor Mammedov wrote: > > > On Wed, 19 Oct 2016 11:15:46 -0200 > > > Eduardo Habkost

Re: [Qemu-devel] [PATCH v4 11/13] pc: add 'etc/boot-cpus' fw_cfg file for machine with more than 255 CPUs

2016-10-20 Thread Igor Mammedov
On Wed, 19 Oct 2016 16:29:29 -0200 Eduardo Habkost wrote: > On Wed, Oct 19, 2016 at 05:18:38PM +0200, Igor Mammedov wrote: > > On Wed, 19 Oct 2016 11:15:46 -0200 > > Eduardo Habkost wrote: > > > > > On Wed, Oct 19, 2016 at 02:05:41PM +0200, Igor

Re: [Qemu-devel] [PATCH v4 11/13] pc: add 'etc/boot-cpus' fw_cfg file for machine with more than 255 CPUs

2016-10-19 Thread Eduardo Habkost
On Wed, Oct 19, 2016 at 05:18:38PM +0200, Igor Mammedov wrote: > On Wed, 19 Oct 2016 11:15:46 -0200 > Eduardo Habkost wrote: > > > On Wed, Oct 19, 2016 at 02:05:41PM +0200, Igor Mammedov wrote: > > > Currently firmware uses 1 byte at 0x5F offset in RTC CMOS > > > to get

Re: [Qemu-devel] [PATCH v4 11/13] pc: add 'etc/boot-cpus' fw_cfg file for machine with more than 255 CPUs

2016-10-19 Thread Igor Mammedov
On Wed, 19 Oct 2016 11:15:46 -0200 Eduardo Habkost wrote: > On Wed, Oct 19, 2016 at 02:05:41PM +0200, Igor Mammedov wrote: > > Currently firmware uses 1 byte at 0x5F offset in RTC CMOS > > to get number of CPUs present at boot. However 1 byte is > > not enough to handle more

Re: [Qemu-devel] [PATCH v4 11/13] pc: add 'etc/boot-cpus' fw_cfg file for machine with more than 255 CPUs

2016-10-19 Thread Eduardo Habkost
On Wed, Oct 19, 2016 at 02:05:41PM +0200, Igor Mammedov wrote: > Currently firmware uses 1 byte at 0x5F offset in RTC CMOS > to get number of CPUs present at boot. However 1 byte is > not enough to handle more than 255 CPUs. So add a new > fw_cfg file that would allow QEMU to tell it. > For

[Qemu-devel] [PATCH v4 11/13] pc: add 'etc/boot-cpus' fw_cfg file for machine with more than 255 CPUs

2016-10-19 Thread Igor Mammedov
Currently firmware uses 1 byte at 0x5F offset in RTC CMOS to get number of CPUs present at boot. However 1 byte is not enough to handle more than 255 CPUs. So add a new fw_cfg file that would allow QEMU to tell it. For compat reasons add file only for machine types that support more than 255