virtualization.lists.linux-foundation.org archive mirror
 help / color / mirror / Atom feed
From: "Michael S. Tsirkin" <mst@redhat.com>
To: Jason Wang <jasowang@redhat.com>
Cc: "Jianguo Sun (QUIC)" <quic_jianguos@quicinc.com>,
	"xuanzhuo@linux.alibaba.com" <xuanzhuo@linux.alibaba.com>,
	"eperezma@redhat.com" <eperezma@redhat.com>,
	"virtualization@lists.linux.dev" <virtualization@lists.linux.dev>,
	"Anant Goel (QUIC)" <quic_anantg@quicinc.com>
Subject: Re: [PATCH 1/2] Virtio: Add CONFIG_VIRTIO_MMIO_POLL_RESET
Date: Thu, 26 Sep 2024 02:10:47 -0400	[thread overview]
Message-ID: <20240926020950-mutt-send-email-mst@kernel.org> (raw)
In-Reply-To: <CACGkMEuLdxbRxZYqKW1akHJ_Jjse4OatLEVmH4QFsM_K+iAr_w@mail.gmail.com>

On Thu, Sep 26, 2024 at 11:50:32AM +0800, Jason Wang wrote:
> On Thu, Sep 26, 2024 at 11:31 AM Jianguo Sun (QUIC)
> <quic_jianguos@quicinc.com> wrote:
> >
> > Hi @Jason
> >
> > Both hypervisor and backend device may need to support virtio-mmio device reset
> 
> Then you need to patch the virtio spec first. Or it is already
> supported by the spec?
> 
> > Adding CONFIG_VIRTIO_MMIO_POLL_RESET is for the system that has such support.
> 
> And we will probably have a feature or transport bit/flag for this.
> 
> Thanks

feature bits can't affect reset.
I don't know what a transport bit/flag is, in the context of MMIO.

We can just make it a recommendation.


> >
> > A config option (feature bit) is a better approach.
> > Thanks for the review.
> >
> > BR
> > Jianguo
> >
> > -----Original Message-----
> > From: Jason Wang <jasowang@redhat.com>
> > Sent: Tuesday, September 24, 2024 3:39 PM
> > To: Jianguo Sun (QUIC) <quic_jianguos@quicinc.com>
> > Cc: mst@redhat.com; xuanzhuo@linux.alibaba.com; eperezma@redhat.com; virtualization@lists.linux.dev; Anant Goel (QUIC) <quic_anantg@quicinc.com>
> > Subject: Re: [PATCH 1/2] Virtio: Add CONFIG_VIRTIO_MMIO_POLL_RESET
> >
> > On Sun, Sep 22, 2024 at 8:35 PM Jianguo Sun <quic_jianguos@quicinc.com> wrote:
> > >
> > > Add CONFIG_VIRTIO_MMIO_POLL_RESET to as an option to enable
> > > synchronous reset for the MMIO based transport for virtio.
> > >
> > > Change-Id: Ifa7e29b4c0cfa26922535f921c6ab69eacdc4cfc
> > > Signed-off-by: Jianguo Sun <quic_jianguos@quicinc.com>
> > > Signed-off-by: Anant Goel <quic_anantg@quicinc.com>
> >
> > Any reason this is not a feature but a config option?
> >
> > > ---
> > >  drivers/virtio/Kconfig | 8 ++++++++
> > >  1 file changed, 8 insertions(+)
> > >
> > > diff --git a/drivers/virtio/Kconfig b/drivers/virtio/Kconfig index
> > > 42a48ac763ee..fb17b1078d53 100644
> > > --- a/drivers/virtio/Kconfig
> > > +++ b/drivers/virtio/Kconfig
> > > @@ -188,4 +188,12 @@ config VIRTIO_DEBUG
> > >
> > >           If unsure, say N.
> > >
> > > +config VIRTIO_MMIO_POLL_RESET
> > > +       bool "Virti-mmio device synchronous reset support"
> > > +       depends on VIRTIO_MMIO
> > > +       help
> > > +         Say y here to enable synchronous reset for the MMIO transport based
> > > +         virtio device. After writing 0 to device_status, the driver must
> > > +         wait for a read of device_status to return 0 before reinitializing
> > > +         the device.
> > >  endif # VIRTIO_MENU
> > > --
> > > 2.17.1
> > >
> >
> > Thanks
> >


  reply	other threads:[~2024-09-26  6:10 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-22 12:34 [PATCH 1/2] Virtio: Add CONFIG_VIRTIO_MMIO_POLL_RESET Jianguo Sun
2024-09-22 12:34 ` [PATCH 2/2] virtio: Add polling virtio-mmio device reset completion Jianguo Sun
2024-09-24  7:40   ` Jason Wang
2024-09-26  6:46   ` Michael S. Tsirkin
2024-09-24  7:38 ` [PATCH 1/2] Virtio: Add CONFIG_VIRTIO_MMIO_POLL_RESET Jason Wang
2024-09-26  3:30   ` Jianguo Sun (QUIC)
2024-09-26  3:50     ` Jason Wang
2024-09-26  6:10       ` Michael S. Tsirkin [this message]
2024-09-26  6:46 ` Michael S. Tsirkin

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=20240926020950-mutt-send-email-mst@kernel.org \
    --to=mst@redhat.com \
    --cc=eperezma@redhat.com \
    --cc=jasowang@redhat.com \
    --cc=quic_anantg@quicinc.com \
    --cc=quic_jianguos@quicinc.com \
    --cc=virtualization@lists.linux.dev \
    --cc=xuanzhuo@linux.alibaba.com \
    /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).