qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* Re: [virtio-dev] Re: [RFC PATCH 1/1] virtio: write back features before verify
       [not found]                   ` <20211005072110-mutt-send-email-mst@kernel.org>
@ 2021-10-05 15:20                     ` Cornelia Huck
  0 siblings, 0 replies; only message in thread
From: Cornelia Huck @ 2021-10-05 15:20 UTC (permalink / raw)
  To: Michael S. Tsirkin, Halil Pasic
  Cc: linux-s390, markver, Christian Borntraeger, qemu-devel,
	Jason Wang, linux-kernel, virtualization, Xie Yongji, virtio-dev

On Tue, Oct 05 2021, "Michael S. Tsirkin" <mst@redhat.com> wrote:

> On Tue, Oct 05, 2021 at 01:17:51PM +0200, Halil Pasic wrote:
>> On Mon, 4 Oct 2021 16:01:12 -0400
>> "Michael S. Tsirkin" <mst@redhat.com> wrote:
>> 
>> > > 
>> > > Ok, so what about something like
>> > > 
>> > > "If FEATURES_OK is not set, the driver MAY change the set of features it
>> > > accepts."
>> > > 
>> > > in the device initialization section?  
>> > 
>> > Maybe "as long as". However Halil implied that some features are not
>> > turned off properly if that happens. Halil could you pls provide
>> > some examples?
>> 
>> 
>> 
>> static void virtio_net_set_features(VirtIODevice *vdev, uint64_t features)
>> {
>> ...
>>     if (virtio_has_feature(features, VIRTIO_NET_F_STANDBY)) {
>>         qapi_event_send_failover_negotiated(n->netclient_name);
>>         qatomic_set(&n->failover_primary_hidden, false);
>>         failover_add_primary(n, &err);
>>         if (err) {
>>             warn_report_err(err);
>>         }
>>     }
>> }
>> 
>> This is probably the only one in QEMU. Back then I stopped looking
>> after the first hit.

After some grepping, I agree that this seems to be the only one.

>> 
>> Regards,
>> Halil
>
> Hmm ok more failover issues :(
> This stuff really should be moved to set_status.

Yes, F_STANDBY does not exist for legacy, so performing those actions
when FEATURES_OK is set looks like the right thing to do.



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-10-05 15:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20211003070030.658fc94e.pasic@linux.ibm.com>
     [not found] ` <20211003021027-mutt-send-email-mst@kernel.org>
     [not found]   ` <20211003032253-mutt-send-email-mst@kernel.org>
     [not found]     ` <87ee912e45.fsf@redhat.com>
     [not found]       ` <20211004083455-mutt-send-email-mst@kernel.org>
     [not found]         ` <878rz83lx0.fsf@redhat.com>
     [not found]           ` <20211004110152-mutt-send-email-mst@kernel.org>
     [not found]             ` <87zgro23r1.fsf@redhat.com>
     [not found]               ` <20211004160005-mutt-send-email-mst@kernel.org>
     [not found]                 ` <20211005131751.53175b10.pasic@linux.ibm.com>
     [not found]                   ` <20211005072110-mutt-send-email-mst@kernel.org>
2021-10-05 15:20                     ` [virtio-dev] Re: [RFC PATCH 1/1] virtio: write back features before verify Cornelia Huck

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).