From: Laszlo Ersek <lersek@redhat.com>
To: Wei Huang <wei@redhat.com>, qemu-devel@nongnu.org
Cc: peter.maydell@linaro.org, drjones@redhat.com,
ard.biesheuvel@linaro.org, ehabkost@redhat.com,
ivan.khoronzhuk@linaro.org, mst@redhat.com, somlo@cmu.edu,
zhaoshenglong@huawei.com, roy.franz@linaro.org,
pbonzini@redhat.com, imammedo@redhat.com, jdelvare@suse.de,
rth@twiddle.net
Subject: Re: [Qemu-devel] [ARM SMBIOS V2 PATCH 4/6] smbios: move smbios code into a common folder
Date: Fri, 7 Aug 2015 18:48:40 +0200 [thread overview]
Message-ID: <55C4E168.1090201@redhat.com> (raw)
In-Reply-To: <1438881300-21738-5-git-send-email-wei@redhat.com>
On 08/06/15 19:14, Wei Huang wrote:
> To share smbios among different architectures, this patch moves SMBIOS
> code (smbios.c and smbios.h) from x86 specific folders into new
> hw/smbios directories.
Makes sense to me; "acpi" is also under "hw".
> As a result, CONFIG_SMBIOS=y is defined in
> x86 default config files.
>
> Signed-off-by: Wei Huang <wei@redhat.com>
> ---
> arch_init.c | 2 +-
> default-configs/i386-softmmu.mak | 1 +
> default-configs/x86_64-softmmu.mak | 1 +
> hw/Makefile.objs | 1 +
> hw/i386/Makefile.objs | 2 +-
> hw/i386/pc.c | 2 +-
> hw/i386/pc_piix.c | 2 +-
> hw/i386/pc_q35.c | 2 +-
> hw/smbios/Makefile.objs | 1 +
> hw/{i386 => smbios}/smbios.c | 2 +-
> include/hw/{i386 => smbios}/smbios.h | 0
> tests/bios-tables-test.c | 2 +-
> vl.c | 2 +-
> 13 files changed, 12 insertions(+), 8 deletions(-)
> create mode 100644 hw/smbios/Makefile.objs
> rename hw/{i386 => smbios}/smbios.c (99%)
> rename include/hw/{i386 => smbios}/smbios.h (100%)
>
> diff --git a/arch_init.c b/arch_init.c
> index 725c638..38f5fb9 100644
> --- a/arch_init.c
> +++ b/arch_init.c
> @@ -26,7 +26,7 @@
> #include "sysemu/arch_init.h"
> #include "hw/pci/pci.h"
> #include "hw/audio/audio.h"
> -#include "hw/i386/smbios.h"
> +#include "hw/smbios/smbios.h"
> #include "qemu/config-file.h"
> #include "qemu/error-report.h"
> #include "qmp-commands.h"
> diff --git a/default-configs/i386-softmmu.mak b/default-configs/i386-softmmu.mak
> index 48b5762..5eaafa1 100644
> --- a/default-configs/i386-softmmu.mak
> +++ b/default-configs/i386-softmmu.mak
> @@ -49,3 +49,4 @@ CONFIG_MEM_HOTPLUG=y
> CONFIG_XIO3130=y
> CONFIG_IOH3420=y
> CONFIG_I82801B11=y
> +CONFIG_SMBIOS=y
> diff --git a/default-configs/x86_64-softmmu.mak b/default-configs/x86_64-softmmu.mak
> index 4962ed7..28e2099 100644
> --- a/default-configs/x86_64-softmmu.mak
> +++ b/default-configs/x86_64-softmmu.mak
> @@ -50,3 +50,4 @@ CONFIG_MEM_HOTPLUG=y
> CONFIG_XIO3130=y
> CONFIG_IOH3420=y
> CONFIG_I82801B11=y
> +CONFIG_SMBIOS=y
> diff --git a/hw/Makefile.objs b/hw/Makefile.objs
> index 73afa41..7e7c241 100644
> --- a/hw/Makefile.objs
> +++ b/hw/Makefile.objs
> @@ -31,6 +31,7 @@ devices-dirs-$(CONFIG_VIRTIO) += virtio/
> devices-dirs-$(CONFIG_SOFTMMU) += watchdog/
> devices-dirs-$(CONFIG_SOFTMMU) += xen/
> devices-dirs-$(CONFIG_MEM_HOTPLUG) += mem/
> +devices-dirs-$(CONFIG_SMBIOS) += smbios/
> devices-dirs-y += core/
> common-obj-y += $(devices-dirs-y)
> obj-y += $(devices-dirs-y)
> diff --git a/hw/i386/Makefile.objs b/hw/i386/Makefile.objs
> index bd4f147..723a4d8 100644
> --- a/hw/i386/Makefile.objs
> +++ b/hw/i386/Makefile.objs
> @@ -1,5 +1,5 @@
> obj-$(CONFIG_KVM) += kvm/
> -obj-y += multiboot.o smbios.o
> +obj-y += multiboot.o
> obj-y += pc.o pc_piix.o pc_q35.o
> obj-y += pc_sysfw.o
> obj-y += intel_iommu.o
> diff --git a/hw/i386/pc.c b/hw/i386/pc.c
> index 944d5b1..80291fe 100644
> --- a/hw/i386/pc.c
> +++ b/hw/i386/pc.c
> @@ -33,7 +33,7 @@
> #include "hw/pci/pci_bus.h"
> #include "hw/nvram/fw_cfg.h"
> #include "hw/timer/hpet.h"
> -#include "hw/i386/smbios.h"
> +#include "hw/smbios/smbios.h"
> #include "hw/loader.h"
> #include "elf.h"
> #include "multiboot.h"
> diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c
> index a896624..653c710 100644
> --- a/hw/i386/pc_piix.c
> +++ b/hw/i386/pc_piix.c
> @@ -28,7 +28,7 @@
> #include "hw/loader.h"
> #include "hw/i386/pc.h"
> #include "hw/i386/apic.h"
> -#include "hw/i386/smbios.h"
> +#include "hw/smbios/smbios.h"
> #include "hw/pci/pci.h"
> #include "hw/pci/pci_ids.h"
> #include "hw/usb.h"
> diff --git a/hw/i386/pc_q35.c b/hw/i386/pc_q35.c
> index 974aead..d83df14 100644
> --- a/hw/i386/pc_q35.c
> +++ b/hw/i386/pc_q35.c
> @@ -39,7 +39,7 @@
> #include "hw/pci-host/q35.h"
> #include "exec/address-spaces.h"
> #include "hw/i386/ich9.h"
> -#include "hw/i386/smbios.h"
> +#include "hw/smbios/smbios.h"
> #include "hw/ide/pci.h"
> #include "hw/ide/ahci.h"
> #include "hw/usb.h"
> diff --git a/hw/smbios/Makefile.objs b/hw/smbios/Makefile.objs
> new file mode 100644
> index 0000000..f69a92f
> --- /dev/null
> +++ b/hw/smbios/Makefile.objs
> @@ -0,0 +1 @@
> +common-obj-$(CONFIG_SMBIOS) += smbios.o
> diff --git a/hw/i386/smbios.c b/hw/smbios/smbios.c
> similarity index 99%
> rename from hw/i386/smbios.c
> rename to hw/smbios/smbios.c
> index 12aee90..08ba62a 100644
> --- a/hw/i386/smbios.c
> +++ b/hw/smbios/smbios.c
> @@ -19,7 +19,7 @@
> #include "qemu/error-report.h"
> #include "sysemu/sysemu.h"
> #include "sysemu/cpus.h"
> -#include "hw/i386/smbios.h"
> +#include "hw/smbios/smbios.h"
> #include "hw/loader.h"
> #include "exec/cpu-common.h"
>
> diff --git a/include/hw/i386/smbios.h b/include/hw/smbios/smbios.h
> similarity index 100%
> rename from include/hw/i386/smbios.h
> rename to include/hw/smbios/smbios.h
> diff --git a/tests/bios-tables-test.c b/tests/bios-tables-test.c
> index 0de1742..613867a 100644
> --- a/tests/bios-tables-test.c
> +++ b/tests/bios-tables-test.c
> @@ -18,7 +18,7 @@
> #include "libqtest.h"
> #include "qemu/compiler.h"
> #include "hw/acpi/acpi-defs.h"
> -#include "hw/i386/smbios.h"
> +#include "hw/smbios/smbios.h"
> #include "qemu/bitmap.h"
>
> #define MACHINE_PC "pc"
> diff --git a/vl.c b/vl.c
> index 0adbbd6..584ca88 100644
> --- a/vl.c
> +++ b/vl.c
> @@ -68,7 +68,7 @@ int main(int argc, char **argv)
> #include "hw/isa/isa.h"
> #include "hw/bt.h"
> #include "sysemu/watchdog.h"
> -#include "hw/i386/smbios.h"
> +#include "hw/smbios/smbios.h"
> #include "hw/xen/xen.h"
> #include "hw/qdev.h"
> #include "hw/loader.h"
>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
next prev parent reply other threads:[~2015-08-07 16:48 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-06 17:14 [Qemu-devel] [ARM SMBIOS V2 PATCH 0/6] SMBIOS Support for ARM Wei Huang
2015-08-06 17:14 ` [Qemu-devel] [ARM SMBIOS V2 PATCH 1/6] smbios: extract x86 smbios building code into a function Wei Huang
2015-08-07 16:04 ` Laszlo Ersek
2015-08-06 17:14 ` [Qemu-devel] [ARM SMBIOS V2 PATCH 2/6] smbios: remove dependency on x86 e820 tables Wei Huang
2015-08-07 16:28 ` Laszlo Ersek
2015-08-06 17:14 ` [Qemu-devel] [ARM SMBIOS V2 PATCH 3/6] smbios: pass ram size as a parameter to build smbios tables Wei Huang
2015-08-07 16:41 ` Laszlo Ersek
2015-08-07 16:56 ` Wei Huang
2015-08-06 17:14 ` [Qemu-devel] [ARM SMBIOS V2 PATCH 4/6] smbios: move smbios code into a common folder Wei Huang
2015-08-07 16:48 ` Laszlo Ersek [this message]
2015-08-06 17:14 ` [Qemu-devel] [ARM SMBIOS V2 PATCH 5/6] smbios: add smbios 3.0 support Wei Huang
2015-08-07 17:22 ` Laszlo Ersek
2015-08-07 17:59 ` Laszlo Ersek
2015-08-06 17:15 ` [Qemu-devel] [ARM SMBIOS V2 PATCH 6/6] smbios: implement smbios support for mach-virt Wei Huang
2015-08-07 1:41 ` Shannon Zhao
2015-08-07 18:22 ` Laszlo Ersek
2015-08-06 18:58 ` [Qemu-devel] [ARM SMBIOS V2 PATCH 0/6] SMBIOS Support for ARM Gabriel L. Somlo
2015-08-08 0:14 ` Leif Lindholm
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=55C4E168.1090201@redhat.com \
--to=lersek@redhat.com \
--cc=ard.biesheuvel@linaro.org \
--cc=drjones@redhat.com \
--cc=ehabkost@redhat.com \
--cc=imammedo@redhat.com \
--cc=ivan.khoronzhuk@linaro.org \
--cc=jdelvare@suse.de \
--cc=mst@redhat.com \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=roy.franz@linaro.org \
--cc=rth@twiddle.net \
--cc=somlo@cmu.edu \
--cc=wei@redhat.com \
--cc=zhaoshenglong@huawei.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).