[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 19/23] hw/i386: Move pc_madt_cpu_entry() to acpi-pc.c
From: |
Philippe Mathieu-Daudé |
Subject: |
Re: [PATCH v2 19/23] hw/i386: Move pc_madt_cpu_entry() to acpi-pc.c |
Date: |
Mon, 21 Jun 2021 10:41:32 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 |
On 6/19/21 11:32 PM, Michael S. Tsirkin wrote:
> On Sat, Jun 19, 2021 at 10:45:17AM +0200, Philippe Mathieu-Daudé wrote:
>> On 6/18/21 1:37 PM, Igor Mammedov wrote:
>>> On Wed, 16 Jun 2021 22:43:24 +0200
>>> Philippe Mathieu-Daudé <philmd@redhat.com> wrote:
>>>
>>>> pc_madt_cpu_entry() is specific to QEMU 'PC' machines,
>>>> move it to acpi-pc.c.
>>>>
>>>> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
>>>> ---
>>>> hw/i386/acpi-common.c | 40 ----------------------------------------
>>>> hw/i386/acpi-pc.c | 39 +++++++++++++++++++++++++++++++++++++++
>>>
>>> it's used not only by PC machines but also microvm,
>>> which didn't use acpi-build.c (aka acpi-pc.c)
>>> it only links fine by virtue that PC machines
>>> are object files are also included.
>>
>> Is that something new? I can't see this in mainstream,
>> the microvm machine builds fine without this code.
>
> I think Igor means this:
>
> hw/i386/generic_event_device_x86.c: adevc->madt_cpu = pc_madt_cpu_entry;
>
> and
>
> hw/i386/microvm.c: DeviceState *dev = qdev_new(TYPE_ACPI_GED_X86);
Oh I missed that, indeed I didn't runtime test.
Thanks Michael.
> Admittedly given it's not limited to pc the function name is wrong ...
>
- [PATCH v2 18/23] hw/i386: Rename acpi-build.c -> acpi-pc.c, (continued)
- [PATCH v2 18/23] hw/i386: Rename acpi-build.c -> acpi-pc.c, Philippe Mathieu-Daudé, 2021/06/16
- [PATCH v2 20/23] hw/acpi: Do not restrict ACPI core routines to x86 architecture, Philippe Mathieu-Daudé, 2021/06/16
- [PATCH v2 21/23] hw/i386: Introduce X86_FW_OVMF Kconfig symbol, Philippe Mathieu-Daudé, 2021/06/16
- [PATCH v2 22/23] hw/acpi/Kconfig: Add missing Kconfig dependencies (build error), Philippe Mathieu-Daudé, 2021/06/16
- [PATCH v2 19/23] hw/i386: Move pc_madt_cpu_entry() to acpi-pc.c, Philippe Mathieu-Daudé, 2021/06/16
[PATCH v2 23/23] hw/i386/Kconfig: Add missing Kconfig dependency (runtime error), Philippe Mathieu-Daudé, 2021/06/16
Re: [PATCH v2 00/23] target/i386/sev: Housekeeping (OVMF + SEV-disabled binaries), Michael S. Tsirkin, 2021/06/17
Re: [PATCH v2 00/23] target/i386/sev: Housekeeping (OVMF + SEV-disabled binaries), Laszlo Ersek, 2021/06/23