Discussion of the VIRTIO specification
 help / color / mirror / Atom feed
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: Mon, 24 Feb 2025 13:13:46 +0100	[thread overview]
Message-ID: <Z7xieowGXaZ3kqBc@fedora> (raw)
In-Reply-To: <4g74di7srjp45qxc4qwjo6phvbxixmpmwxhu35ujchuyqshjoz@j75ttnxcqtry>

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? 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?

> > > > > +The device MAY ignore the device status when executing
> > > > > +implementation-specific alarm actions.
> > > > > +
> > > > > +The device MAY ignore whether VIRTIO_RTC_F_ALARM was negotiated when
> > > > > +executing implementation-specific alarm actions.
> > > 
> > 
> > I wonder if these last three requirements are needed or we can just drop
> > them.
> > 
> > Matias
> > 
> 
> The intent of these requirements is to clarify that this is legitimate
> and expected behavior of the device. I can drop them if this is
> considered unnecessary as normative requirements. Or maybe one
> requirement would be enough:
> 
> 	While the device is not serving an alarm expiration event, the
> 	device MUST NOT execute implementation-specific alarm actions.


  reply	other threads:[~2025-02-24 12:13 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 [this message]
2025-02-25 11:18             ` Peter Hilber
2025-02-25 15:04               ` Matias Ezequiel Vara Larsen
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=Z7xieowGXaZ3kqBc@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox