From: Cornelia Huck <cohuck@redhat.com>
To: Peter Hilber <quic_philber@quicinc.com>
Cc: virtio-comment@lists.linux.dev, 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>,
Matias Ezequiel Vara Larsen <mvaralar@redhat.com>
Subject: Re: [PATCH v8 1/4] virtio-rtc: Add initial device specification
Date: Tue, 15 Apr 2025 16:38:55 +0200 [thread overview]
Message-ID: <87jz7lsd4w.fsf@redhat.com> (raw)
In-Reply-To: <5yakav2wrh2kaib7o5rmevzi7r4kgkgb6fnwpazjiath7mfu4q@p6pox5hylwhx>
On Tue, Apr 15 2025, Peter Hilber <quic_philber@quicinc.com> wrote:
> On Tue, Apr 15, 2025 at 03:43:30PM +0200, Cornelia Huck wrote:
>> On Thu, Mar 06 2025, Peter Hilber <quic_philber@quicinc.com> wrote:
>>
>> > The virtio-rtc device provides information about current time through
>> > one or more clocks. As such, it is a Real-Time Clock (RTC) device.
>> >
>> > The normative statements for this device follow in the next patch.
>> >
>> > For this device, there is an RFC Linux kernel driver which is being
>> > upstreamed, and a proprietary device implementation.
>> >
>> > Miscellaneous
>> > -------------
>> >
>> > The spec does not specify how a driver should interpret clock readings,
>> > esp. also not how to perform clock synchronization.
>> >
>> > The device uses the "Timer/Clock" device id which is already part of the
>> > specification. This device id was registered a long time ago and should
>> > be unused according to the author's information. The name "RTC" was
>> > determined to be the best for a device which focuses on current time.
>> >
>> > Signed-off-by: Peter Hilber <quic_philber@quicinc.com>
>>
>> (...)
>>
>> [First of all, apologies for the very late feedback...]
>>
>> > +The \field{status} field indicates whether the device successfully
>> > +executed the request. The device sets the \field{status} field to one of
>> > +the following values:
>> > +
>> > +\begin{lstlisting}
>> > +#define VIRTIO_RTC_S_OK 0
>> > +#define VIRTIO_RTC_S_EOPNOTSUPP 2
>> > +#define VIRTIO_RTC_S_ENODEV 3
>> > +#define VIRTIO_RTC_S_EINVAL 4
>> > +#define VIRTIO_RTC_S_EIO 5
>> > +\end{lstlisting}
>>
>> Any reason there's no status code 1 here? (I assume there used to be
>> one... not a real problem, I just stumbled over it.)
>>
>
> Status code 1 would be the same as VIRTIO_NET_ERR.
>
> In the past, there was some discussion about reusing the spec in the net
> device, so I changed the status values to align with the net control
> virtqueue ack values. I am not sure if this will be helpful, should the
> net device reuse ever materialize, since AFAIU the admin queue might
> be used instead of the net control virtqueue.
Thanks for the explanation -- I think it's fine to just leave it as it
is now, the important thing is that the values are specified.
next prev parent reply other threads:[~2025-04-15 14:39 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-06 9:51 [PATCH v8 0/4] virtio-rtc: Add device specification Peter Hilber
2025-03-06 9:51 ` [PATCH v8 1/4] virtio-rtc: Add initial " Peter Hilber
2025-04-15 13:43 ` Cornelia Huck
2025-04-15 14:17 ` Peter Hilber
2025-04-15 14:38 ` Cornelia Huck [this message]
2025-04-15 15:04 ` Matias Ezequiel Vara Larsen
2025-04-17 14:42 ` Peter Hilber
2025-04-16 15:33 ` Michael S. Tsirkin
2025-04-17 15:14 ` Peter Hilber
2025-04-17 16:14 ` Michael S. Tsirkin
2025-04-22 10:47 ` Peter Hilber
2025-04-22 10:52 ` Michael S. Tsirkin
2025-03-06 9:51 ` [PATCH v8 2/4] virtio-rtc: Add initial normative statements Peter Hilber
2025-04-15 13:46 ` Cornelia Huck
2025-04-15 14:28 ` Peter Hilber
2025-04-15 16:03 ` Matias Ezequiel Vara Larsen
2025-04-17 14:58 ` Peter Hilber
2025-04-16 15:42 ` Michael S. Tsirkin
2025-04-17 15:15 ` Peter Hilber
2025-03-06 9:51 ` [PATCH v8 3/4] virtio-rtc: Add alarm feature Peter Hilber
2025-04-16 8:17 ` Matias Ezequiel Vara Larsen
2025-04-17 15:04 ` Peter Hilber
2025-05-06 15:19 ` Peter Hilber
2025-03-06 9:51 ` [PATCH v8 4/4] virtio-rtc: Add normative statements for " Peter Hilber
2025-04-16 12:14 ` Matias Ezequiel Vara Larsen
2025-04-17 15:07 ` Peter Hilber
2025-04-15 12:46 ` [PATCH v8 0/4] virtio-rtc: Add device specification Peter Hilber
2025-04-16 13:02 ` Matias Ezequiel Vara Larsen
2025-04-16 14:44 ` Peter Hilber
2025-04-16 14:59 ` Matias Ezequiel Vara Larsen
2025-04-16 15:43 ` Michael S. Tsirkin
2025-04-17 15:08 ` 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=87jz7lsd4w.fsf@redhat.com \
--to=cohuck@redhat.com \
--cc=dwmw2@infradead.org \
--cc=jasowang@redhat.com \
--cc=mvaralar@redhat.com \
--cc=parav@nvidia.com \
--cc=quic_philber@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.