From: "Philippe Mathieu-Daudé" <philmd@linaro.org>
To: David Woodhouse <dwmw2@infradead.org>, qemu-devel@nongnu.org
Cc: Paolo Bonzini <pbonzini@redhat.com>,
"Michael S. Tsirkin" <mst@redhat.com>,
Igor Mammedov <imammedo@redhat.com>,
Ani Sinha <anisinha@redhat.com>,
Marcel Apfelbaum <marcel.apfelbaum@gmail.com>,
Richard Henderson <richard.henderson@linaro.org>,
Eduardo Habkost <eduardo@habkost.net>,
Cornelia Huck <cohuck@redhat.com>,
Peter Hilber <quic_philber@quicinc.com>,
"Mohamed Abuelfotoh, Hazem" <abuehaze@amazon.com>,
paul <paul@xen.org>
Subject: Re: [PATCH v7 3/3] hw/acpi: Add vmclock device
Date: Thu, 16 Jan 2025 16:57:34 +0100 [thread overview]
Message-ID: <c6c34207-a59f-43f0-92d8-1af3b101e0c5@linaro.org> (raw)
In-Reply-To: <b5850fa317e89e4e0de1bfe478a7d2cfd9422c37.camel@infradead.org>
On 16/1/25 16:32, David Woodhouse wrote:
> On Thu, 2025-01-16 at 16:15 +0100, Philippe Mathieu-Daudé wrote:
>>
>>> --- a/hw/acpi/Kconfig
>>> +++ b/hw/acpi/Kconfig
>>> @@ -60,6 +60,11 @@ config ACPI_VMGENID
>>> default y
>>> depends on PC
>>>
>>> +config ACPI_VMCLOCK
>>> + bool
>>> + default y
>>> + depends on PC
>>
>> This doesn't look right (apparently the kernel side also build on ARM).
>
> I don't think it's strictly wrong; there are no circumstances in which
> PC is set not I386 && ACPI, or vice versa? I was just going from the
> existing setup for VMGENID, which I think could also theoretically
> exist on Arm too?
Unfortunately PC (and MALTA) are bad examples, beeing ones of the
oldest QEMU machines. Their code is spaghetti.
ACPI_VMGENID seems over-restricted. IIUC it should be:
select ACPI
select FW_CFG
The idea is to keep the smallest dependency, i.e. if someone wants
to build a binary with only microvm machine and use vmclock in it,
it shouldn't have to build the PC machines.
>> I'm only seeing e820_add_entry (I386) and ACPI API called. So:
>>
>> depends on I386 && ACPI
Actually the Kconfig should be:
select ACPI
depends on I386
>> If later we want ARM support we'll have to rework the e820_add_entry()
>> call.
>
> Sure, that certainly makes it easier to add Arm later, and I really do
> intend to do so. I've done it in my tree. Thanks.
next prev parent reply other threads:[~2025-01-16 15:58 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-16 13:59 [PATCH v7 0/3] hw/acpi: Add vmclock device David Woodhouse
2025-01-16 13:59 ` [PATCH v7 1/3] linux-headers: Add vmclock-abi.h David Woodhouse
2025-01-16 15:52 ` Cornelia Huck
2025-01-16 13:59 ` [PATCH v7 2/3] linux-headers: Update to Linux 6.13-rc7 David Woodhouse
2025-01-16 14:07 ` Paul Durrant
2025-01-16 14:10 ` David Woodhouse
2025-01-16 15:57 ` Cornelia Huck
2025-01-16 13:59 ` [PATCH v7 3/3] hw/acpi: Add vmclock device David Woodhouse
2025-01-16 15:15 ` Philippe Mathieu-Daudé
2025-01-16 15:32 ` David Woodhouse
2025-01-16 15:57 ` Philippe Mathieu-Daudé [this message]
2025-01-16 16:01 ` David Woodhouse
2025-01-17 10:44 ` David Woodhouse
2025-02-04 13:49 ` Peter Maydell
2025-02-04 14:17 ` David Woodhouse
2025-02-04 14:52 ` Peter Maydell
2025-02-06 15:11 ` David Woodhouse
2025-02-07 14:34 ` [PATCH] hw/acpi: Remove legacy reset handling from vmclock David Woodhouse
2025-03-29 7:27 ` David Woodhouse
2025-03-30 4:52 ` Ani Sinha
2025-04-09 4:23 ` Ani Sinha
2025-04-09 4:35 ` Ani Sinha
2025-02-04 18:17 ` [PATCH v7 3/3] hw/acpi: Add vmclock device Philippe Mathieu-Daudé
2025-02-04 18:19 ` Philippe Mathieu-Daudé
2025-01-16 14:44 ` [PATCH v7 0/3] " Michael S. Tsirkin
2025-01-16 14:54 ` David Woodhouse
2025-01-17 8:26 ` David Woodhouse
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=c6c34207-a59f-43f0-92d8-1af3b101e0c5@linaro.org \
--to=philmd@linaro.org \
--cc=abuehaze@amazon.com \
--cc=anisinha@redhat.com \
--cc=cohuck@redhat.com \
--cc=dwmw2@infradead.org \
--cc=eduardo@habkost.net \
--cc=imammedo@redhat.com \
--cc=marcel.apfelbaum@gmail.com \
--cc=mst@redhat.com \
--cc=paul@xen.org \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=quic_philber@quicinc.com \
--cc=richard.henderson@linaro.org \
/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).