
On Tue, Jan 12, 2016 at 11:47 AM, Bin Meng bmeng.cn@gmail.com wrote:
On Thu, Jan 7, 2016 at 5:32 PM, Miao Yan yanmiaobest@gmail.com wrote:
The QEMU fw_cfg interface allows the guest to retrieve various data information from QEMU. For example, APCI/SMBios tables, number of online cpus, kernel data and command line, etc.
This patch adds support for QEMU fw_cfg interface.
Signed-off-by: Miao Yan yanmiaobest@gmail.com Reviewed-by: Simon Glass sjg@chromium.org Reviewed-by: Bin Meng bmeng.cn@gmail.com
Changes in v6:
- fix oneline comment
- do not update bootargs when kernel cmdline only contains '\0'
arch/x86/cpu/qemu/Makefile | 2 +- arch/x86/cpu/qemu/fw_cfg.c | 283 ++++++++++++++++++++++++++++++++++++++++++ arch/x86/cpu/qemu/qemu.c | 3 + arch/x86/include/asm/fw_cfg.h | 93 ++++++++++++++ 4 files changed, 380 insertions(+), 1 deletion(-) create mode 100644 arch/x86/cpu/qemu/fw_cfg.c create mode 100644 arch/x86/include/asm/fw_cfg.h
Tested-by: Bin Meng bmeng.cn@gmail.com
applied to u-boot-x86/next, thanks!