[U-Boot] [PATCH v6 3/8] x86: qemu: add a cpu uclass driver for qemu target
Bin Meng
bmeng.cn at gmail.com
Tue Jan 12 05:00:25 CET 2016
On Tue, Jan 12, 2016 at 11:48 AM, Bin Meng <bmeng.cn at gmail.com> wrote:
> On Thu, Jan 7, 2016 at 5:32 PM, Miao Yan <yanmiaobest at gmail.com> wrote:
>> Add a cpu uclass driver for qemu. Previously, the qemu target gets cpu
>> number from board dts files, which are manually created at compile time.
>> This does not scale when more cpus are assigned to guest as the dts files
>> must be modified as well.
>>
>> This patch adds a cpu uclass driver for qemu targets to directly read
>> online cpu number from firmware.
>>
>> Signed-off-by: Miao Yan <yanmiaobest at gmail.com>
>> Reviewed-by: Bin Meng <bmeng.cn at gmail.com>
>> Reviewed-by: Simon Glass <sjg at chromium.org>
>> ---
>> arch/x86/cpu/qemu/Makefile | 2 +-
>> arch/x86/cpu/qemu/cpu.c | 57 ++++++++++++++++++++++++++++++++++++++++
>> arch/x86/dts/qemu-x86_i440fx.dts | 4 +--
>> arch/x86/dts/qemu-x86_q35.dts | 4 +--
>> 4 files changed, 62 insertions(+), 5 deletions(-)
>> create mode 100644 arch/x86/cpu/qemu/cpu.c
>>
>
> Tested-by: Bin Meng <bmeng.cn at gmail.com>
applied to u-boot-x86/next, thanks!
More information about the U-Boot
mailing list