acpi: Move setters/getters of oem fields to X86MachineState
commitd07b22863b8e0981bdc9384a787a703f1fd4ba42
authorMarian Postevca <posteuca@mutex.one>
Sun, 21 Feb 2021 00:17:36 +0000 (21 02:17 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 22 Mar 2021 22:58:19 +0000 (22 18:58 -0400)
treec58dcec6e3517523f9084dd783389f2e4cd2f13d
parent50337286b796f3866d1880f6e8a895fa5853b543
acpi: Move setters/getters of oem fields to X86MachineState

The code that sets/gets oem fields is duplicated in both PC and MICROVM
variants. This commit moves it to X86MachineState so that all x86
variants can use it and duplication is removed.

Signed-off-by: Marian Postevca <posteuca@mutex.one>
Message-Id: <20210221001737.24499-2-posteuca@mutex.one>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/i386/acpi-build.c
hw/i386/acpi-microvm.c
hw/i386/microvm.c
hw/i386/pc.c
hw/i386/x86.c
include/hw/i386/microvm.h
include/hw/i386/pc.h
include/hw/i386/x86.h