[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH RFC] PCMachineState: introduce acpi_build_enable
From: |
Wei Liu |
Subject: |
Re: [Qemu-devel] [PATCH RFC] PCMachineState: introduce acpi_build_enabled field |
Date: |
Tue, 1 Nov 2016 16:53:17 +0000 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
On Tue, Nov 01, 2016 at 02:48:27PM -0200, Eduardo Habkost wrote:
[...]
> > static void pc_machine_set_nvdimm(Object *obj, bool value, Error **errp)
> > {
> > PCMachineState *pcms = PC_MACHINE(obj);
> > @@ -2159,6 +2173,8 @@ static void pc_machine_initfn(Object *obj)
> > pcms->vmport = ON_OFF_AUTO_AUTO;
> > /* nvdimm is disabled on default. */
> > pcms->acpi_nvdimm_state.is_enabled = false;
> > + /* acpi build is enabled by default. */
> > + pcms->acpi_build_enabled = true;
>
> If you set:
> pcms->acpi_build_enabled = PC_MACHINE_GET_CLASS(pcms)->has_acpi_build;
> the default value will be more consistent with the actual results
> (where pc-1.6 and older don't have ACPI build). Then you would
> probably be able to remove the pcmc->has_acpi_build check from
> acpi_setup() and only check pcms->acpi_build_enabled.
>
Thank you for your good advice.
I take it that you're ok with the name of the field and the code in
general? If so I will drop RFC tag in my next submission.
Wei.