All of lore.kernel.org
 help / color / mirror / Atom feed
From: Markus Armbruster <armbru@redhat.com>
To: "Philippe Mathieu-Daudé" <philmd@linaro.org>
Cc: Daniil Tatianin <d-tatianin@yandex-team.ru>,
	 "Michael S. Tsirkin" <mst@redhat.com>,
	 Paolo Bonzini <pbonzini@redhat.com>,
	 Eric Blake <eblake@redhat.com>,
	 qemu-devel@nongnu.org,  Peter Maydell <peter.maydell@linaro.org>
Subject: Re: [PATCH] mc146818rtc: add a way to generate RTC interrupts via QMP
Date: Mon, 29 Apr 2024 16:02:16 +0200	[thread overview]
Message-ID: <87zftcfes7.fsf@pond.sub.org> (raw)
In-Reply-To: <40bee8cc-6cad-4c5b-a319-49dcbb2b82f1@linaro.org> ("Philippe Mathieu-Daudé"'s message of "Mon, 29 Apr 2024 15:39:57 +0200")

Philippe Mathieu-Daudé <philmd@linaro.org> writes:

> (+Peter who has more experience on such design).
>
> On 29/4/24 13:32, Markus Armbruster wrote:
>> Philippe Mathieu-Daudé <philmd@linaro.org> writes:

[...]

>>> IMO to avoid any future ambiguity (in heterogeneous machines), this
>>> command must take a QOM device path (or a list of) and only notify
>>> those.
>> 
>> Let's compare:
>> 
>> • With QOM path:
>> 
>>    · You need to know the machine's RTC device(s).
>> 
>>      Unfortunately, this is bothersome, as the QOM path is not stable.
>
> But we'll need more of that with dynamic machines...

I view /machine/unattached a technical debt (see "hate" right below).

It saved us the trouble of coming up with sensible names for onboard
devices.

And now the interest is about to be due.

>>      For Q35, it's generally "/machine/unattached/device[N]/rtc", but N
>>      varies with configuration (TCG N=2, KVM N=3 for me), and it might
>>      vary with machine type version.  That's because the machine code
>>      creates ICH9-LPC without a proper name.  We do that a lot.  I hate
>>      it.
>> 
>>      Likewise for i440FX with PIIX3 instead of ICH9-LPC.
>> 
>>      For isapc, it's /machine/unattached/device[3].  I suspect the 3
>>      isn't reliable there, either.
>> 
>>      microvm doesn't seem to have an RTC by default.

[...]



  reply	other threads:[~2024-04-29 14:03 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-25 13:37 [PATCH] mc146818rtc: add a way to generate RTC interrupts via QMP Daniil Tatianin
2024-04-26  8:39 ` Markus Armbruster
2024-04-26  9:28   ` Daniil Tatianin
2024-04-26  9:47     ` Markus Armbruster
2024-04-26  9:48   ` Philippe Mathieu-Daudé
2024-04-29  9:43     ` Philippe Mathieu-Daudé
2024-04-29 11:32     ` Markus Armbruster
2024-04-29 13:39       ` Philippe Mathieu-Daudé
2024-04-29 14:02         ` Markus Armbruster [this message]
2024-05-02  7:30         ` Daniil Tatianin

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=87zftcfes7.fsf@pond.sub.org \
    --to=armbru@redhat.com \
    --cc=d-tatianin@yandex-team.ru \
    --cc=eblake@redhat.com \
    --cc=mst@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=philmd@linaro.org \
    --cc=qemu-devel@nongnu.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.