x86: qemu: add fw_cfg support
authorMiao Yan <yanmiaobest@gmail.com>
Thu, 7 Jan 2016 09:32:00 +0000 (01:32 -0800)
committerBin Meng <bmeng.cn@gmail.com>
Wed, 13 Jan 2016 04:20:15 +0000 (12:20 +0800)
commitf60df20aa966c3de850afafe3cce70a51d0b261c
tree9a21ee8258c606f021cc575208a0055ee09be2f6
parentece5c37f0cae1277a147e1c17f9d1bfabc3d2e95
x86: qemu: add fw_cfg support

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>
Tested-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/cpu/qemu/Makefile
arch/x86/cpu/qemu/fw_cfg.c [new file with mode: 0644]
arch/x86/cpu/qemu/qemu.c
arch/x86/include/asm/fw_cfg.h [new file with mode: 0644]