[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v4 08/21] microvm/acpi: add minimal acpi support
From: |
Michael S. Tsirkin |
Subject: |
Re: [PATCH v4 08/21] microvm/acpi: add minimal acpi support |
Date: |
Sun, 5 Jul 2020 07:48:14 -0400 |
On Fri, Jul 03, 2020 at 09:25:10PM +0200, Gerd Hoffmann wrote:
> On Fri, Jul 03, 2020 at 09:09:43AM -0400, Michael S. Tsirkin wrote:
> > On Thu, Jul 02, 2020 at 10:48:46PM +0200, Gerd Hoffmann wrote:
> > > + /* copy AML table into ACPI tables blob and patch header there */
> > > + g_array_append_vals(table_data, dsdt->buf->data, dsdt->buf->len);
> > > + build_header(linker, table_data,
> > > + (void *)(table_data->data + table_data->len - dsdt->buf->len),
> > > + "DSDT", dsdt->buf->len, 5, NULL, NULL);
> >
> > Why 5? Just curious ...
>
> IIRC because the hw reduced hardware profile needs acpi 5+ ...
>
> take care,
> Gerd
Well ACPI spec 5 says revision value is 2.
Let's use standard practice in ACPI code, and add comments near each
value documenting earliest spec revision where this appeared, chapter
where they came from and some verbatim text that both explains and can
be searched for in later spec revisions.
In fact, same applies to a bunch of other code in this patchset
which just uses macros which does not help all that much
as they don't appear in spec as is. Can you pls go over it
and add such comments where appropriate?
--
MST
- [PATCH v4 00/21] microvm: add acpi support, Gerd Hoffmann, 2020/07/02
- [PATCH v4 02/21] seabios: add microvm config, update build rules, Gerd Hoffmann, 2020/07/02
- [PATCH v4 01/21] microvm: name qboot binary qboot.rom, Gerd Hoffmann, 2020/07/02
- [PATCH v4 04/21] acpi: ged: add control regs, Gerd Hoffmann, 2020/07/02
- [PATCH v4 09/21] microvm/acpi: add acpi_dsdt_add_virtio() for x86, Gerd Hoffmann, 2020/07/02
- [PATCH v4 03/21] seabios: add bios-microvm.bin binary, Gerd Hoffmann, 2020/07/02
- [PATCH v4 08/21] microvm/acpi: add minimal acpi support, Gerd Hoffmann, 2020/07/02
[PATCH v4 21/21] tests/acpi: update expected data files for microvm, Gerd Hoffmann, 2020/07/02
[PATCH v4 07/21] microvm: make virtio irq base runtime configurable, Gerd Hoffmann, 2020/07/02
[PATCH v4 16/21] microvm: wire up hotplug, Gerd Hoffmann, 2020/07/02
[PATCH v4 19/21] tests/acpi: allow override blkdev, Gerd Hoffmann, 2020/07/02
[PATCH v4 15/21] x86: move cpu plug from pc to x86, Gerd Hoffmann, 2020/07/02
[PATCH v4 12/21] microvm/acpi: disable virtio-mmio cmdline hack, Gerd Hoffmann, 2020/07/02
[PATCH v4 13/21] x86: constify x86_machine_is_*_enabled, Gerd Hoffmann, 2020/07/02
[PATCH v4 20/21] tests/acpi: add microvm test, Gerd Hoffmann, 2020/07/02
[PATCH v4 14/21] x86: move acpi_dev from pc/microvm, Gerd Hoffmann, 2020/07/02