From: Matias Ezequiel Vara Larsen <mvaralar@redhat.com>
To: Peter Hilber <quic_philber@quicinc.com>
Cc: virtio-comment@lists.linux.dev, Cornelia Huck <cohuck@redhat.com>,
Parav Pandit <parav@nvidia.com>, Jason Wang <jasowang@redhat.com>,
David Woodhouse <dwmw2@infradead.org>,
"Ridoux, Julien" <ridouxj@amazon.com>,
Trilok Soni <quic_tsoni@quicinc.com>,
Srivatsa Vaddagiri <quic_svaddagi@quicinc.com>
Subject: Re: [PATCH v7 4/4] virtio-rtc: Add normative statements for alarm feature
Date: Tue, 25 Feb 2025 16:04:44 +0100 [thread overview]
Message-ID: <Z73cDJ8i2jDHiU09@fedora> (raw)
In-Reply-To: <4wre24mz2dkf3xlokwrhrtyekgaprezwhkubsqts6ywicz74kh@5imrnci63tuc>
On Tue, Feb 25, 2025 at 12:18:51PM +0100, Peter Hilber wrote:
> On Mon, Feb 24, 2025 at 01:13:46PM +0100, Matias Ezequiel Vara Larsen wrote:
> > On Thu, Feb 20, 2025 at 06:06:38PM +0100, Peter Hilber wrote:
> > > On Wed, Feb 19, 2025 at 04:36:14PM +0100, Matias Ezequiel Vara Larsen wrote:
> > > > On Thu, Feb 13, 2025 at 07:14:30PM +0100, Peter Hilber wrote:
> > > > > On Tue, Feb 11, 2025 at 01:33:42PM +0100, Matias Ezequiel Vara Larsen wrote:
> > > > > > On Thu, Jan 23, 2025 at 11:16:15AM +0100, Peter Hilber wrote:
> > > > > > > Add the normative statements for the alarm feature added previously.
> > > > > > >
> > > > > > > Signed-off-by: Peter Hilber <quic_philber@quicinc.com>
> > > > > > > ---
> > > > > > >
> > > > > > > Notes:
> > > > > > > v7:
> > > > > > >
> > > > > > > - Remove inadvertent v6 changes, which should have been part of
> > > > > > > preceding patches.
> > > > > > >
> > > > > > > v4:
> > > > > > >
> > > > > > > - Update normative statements to match v4 changes to non-normative
> > > > > > > statements (patch 3).
> > > > > > >
> > > > > > > - Driver should read clock to confirm that alarm has expired.
> > > > > > >
> > > > > > > - Formatting and wording improvements.
> > > > > > >
> > > > > > > device-types/rtc/description.tex | 157 ++++++++++++++++++++++++
> > > > > > > device-types/rtc/device-conformance.tex | 4 +
> > > > > > > device-types/rtc/driver-conformance.tex | 2 +
> > > > > > > 3 files changed, 163 insertions(+)
> > > > > > >
> > >
> > > [...]
> > >
> > > > > > > +
> > > > > > > +If a clock C steps to a time previous to C's alarm time, the device MUST
> > > > > > > +stop serving any previous alarm expiration event for C, within a grace
> > > > > > > +period.
> > > > > > > +
> > > > > > > +If an alarm expiration event happens for clock C, the device MUST stop
> > > > > > > +serving any previous alarm expiration event for C, within a grace
> > > > > > > +period.
> > > > > > > +
> > > > > > > +If the device is currently serving an alarm expiration event E, the
> > > > > > > +device MUST send a single VIRTIO_RTC_NOTIF_ALARM notification for E, as
> > > > > > > +soon as an alarmq buffer is available for this purpose.
> > > > > > > +
> > > > > > > +While the device is serving an alarm expiration event, the device MAY
> > > > > > > +execute implementation-specific alarm actions.
> > > > > > > +
> >
> > Does not `serving` mean also that the device execute
> > implementation-specific alarm actions?
>
> As for `serving an alarm expiration event`, I intended this to be a
> speaking name for a state to which different requirements can refer.
> Maybe this was bad naming.
>
I just though that `serving an alarm expiration event` could include
executing implementation-specific alarm actions so that we do not need
to make a separation of the two concepts. I do not have a strong opinion
so we can keep it as it is.
> > Besides notifying the guest when
> > an alarm has expired, is not any other action or device behavior
> > implementation-specific and then not constrained by the spec?
>
> So this would imply that the below MUST NOT requirement should not be
> adopted? I chose to refer to implementation-specific alarm actions so
> that
>
> 1) it is clear to any spec reader that alarms may work even when an
> alarmq notification would not work and
>
> 2) an implementation's documentation can usually refer to the spec as to
> when the implementation-specific alarm actions may be executed.
>
> I find the references helpful, but I do not have a strong opinion about
> keeping them in the normative or non-normative parts.
>
I do not have a strong opinion either so we can keep it as it is.
Thanks, Matias.
next prev parent reply other threads:[~2025-02-25 15:04 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-23 10:16 [PATCH v7 0/4] virtio-rtc: Add device specification Peter Hilber
2025-01-23 10:16 ` [PATCH v7 1/4] virtio-rtc: Add initial " Peter Hilber
2025-02-10 13:52 ` Matias Ezequiel Vara Larsen
2025-02-13 18:12 ` Peter Hilber
2025-02-19 12:45 ` Matias Ezequiel Vara Larsen
2025-01-23 10:16 ` [PATCH v7 2/4] virtio-rtc: Add initial normative statements Peter Hilber
2025-02-10 16:33 ` Matias Ezequiel Vara Larsen
2025-02-13 18:13 ` Peter Hilber
2025-02-19 14:58 ` Matias Ezequiel Vara Larsen
2025-02-20 16:36 ` Peter Hilber
2025-02-24 11:09 ` Matias Ezequiel Vara Larsen
2025-01-23 10:16 ` [PATCH v7 3/4] virtio-rtc: Add alarm feature Peter Hilber
2025-02-11 11:51 ` Matias Ezequiel Vara Larsen
2025-02-13 18:13 ` Peter Hilber
2025-02-19 16:08 ` Matias Ezequiel Vara Larsen
2025-02-20 16:51 ` Peter Hilber
2025-02-24 11:58 ` Matias Ezequiel Vara Larsen
2025-01-23 10:16 ` [PATCH v7 4/4] virtio-rtc: Add normative statements for " Peter Hilber
2025-02-11 12:33 ` Matias Ezequiel Vara Larsen
2025-02-13 18:14 ` Peter Hilber
2025-02-19 15:36 ` Matias Ezequiel Vara Larsen
2025-02-20 17:06 ` Peter Hilber
2025-02-24 12:13 ` Matias Ezequiel Vara Larsen
2025-02-25 11:18 ` Peter Hilber
2025-02-25 15:04 ` Matias Ezequiel Vara Larsen [this message]
2025-02-25 15:47 ` Peter Hilber
2025-03-04 16:25 ` Peter Hilber
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=Z73cDJ8i2jDHiU09@fedora \
--to=mvaralar@redhat.com \
--cc=cohuck@redhat.com \
--cc=dwmw2@infradead.org \
--cc=jasowang@redhat.com \
--cc=parav@nvidia.com \
--cc=quic_philber@quicinc.com \
--cc=quic_svaddagi@quicinc.com \
--cc=quic_tsoni@quicinc.com \
--cc=ridouxj@amazon.com \
--cc=virtio-comment@lists.linux.dev \
/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.