[virtio-dev] Re: [PATCH v3 1/4] Add virtio Admin virtqueue

2022-02-08 Thread Michael S. Tsirkin
On Tue, Feb 08, 2022 at 03:48:42PM +, Parav Pandit wrote: > > > From: Michael S. Tsirkin > > Sent: Tuesday, February 8, 2022 9:08 PM > > > > On Tue, Feb 08, 2022 at 03:35:58PM +, Parav Pandit wrote: > > > > > > > From: Michael S. Tsirkin > > > > Sent: Tuesday, February 8, 2022 8:56 PM

[virtio-dev] Re: [PATCH v3 1/4] Add virtio Admin virtqueue

2022-02-08 Thread Michael S. Tsirkin
On Tue, Feb 08, 2022 at 06:52:09PM +, Parav Pandit wrote: > > > From: Michael S. Tsirkin > > Sent: Tuesday, February 8, 2022 9:10 PM > > > > On Tue, Feb 08, 2022 at 03:06:16PM +, Parav Pandit wrote: > > > > > > > From: Michael S. Tsirkin > > > > Sent: Tuesday, February 8, 2022 7:29 PM

[virtio-dev] Re: [PATCH v3 1/4] Add virtio Admin virtqueue

2022-02-08 Thread Michael S. Tsirkin
On Tue, Feb 08, 2022 at 03:06:16PM +, Parav Pandit wrote: > > > From: Michael S. Tsirkin > > Sent: Tuesday, February 8, 2022 7:29 PM > > > > > Do we have a concrete example of a command that can be targeted for same > > device and a target device, which requires differentiating their > >

[virtio-dev] Re: [PATCH v3 1/4] Add virtio Admin virtqueue

2022-02-08 Thread Michael S. Tsirkin
On Tue, Feb 08, 2022 at 03:35:58PM +, Parav Pandit wrote: > > > From: Michael S. Tsirkin > > Sent: Tuesday, February 8, 2022 8:56 PM > > > > I might have been a bit too vague about what I had been thinking > > > about. Let's do a sketch (intentionally without concrete sizes): > > > > > >

[virtio-dev] Re: [PATCH v3 1/4] Add virtio Admin virtqueue

2022-02-08 Thread Michael S. Tsirkin
On Tue, Feb 08, 2022 at 03:33:36PM +, Parav Pandit wrote: > > > From: Michael S. Tsirkin > > Sent: Tuesday, February 8, 2022 8:58 PM > > On Tue, Feb 08, 2022 at 03:11:28PM +, Parav Pandit wrote: > > > > > > > From: Cornelia Huck > > > > Sent: Tuesday, February 8, 2022 8:29 PM > > > > >

[virtio-dev] Re: [PATCH v3 1/4] Add virtio Admin virtqueue

2022-02-08 Thread Cornelia Huck
On Tue, Feb 08 2022, "Michael S. Tsirkin" wrote: > On Tue, Feb 08, 2022 at 03:59:13PM +0100, Cornelia Huck wrote: >> On Tue, Feb 08 2022, "Michael S. Tsirkin" wrote: >> >> > On Tue, Feb 08, 2022 at 01:32:12PM +, Parav Pandit wrote: >> >> >> >> > From: Cornelia Huck >> >> > Sent: Tuesday,

[virtio-dev] Re: [PATCH v3 1/4] Add virtio Admin virtqueue

2022-02-08 Thread Michael S. Tsirkin
On Tue, Feb 08, 2022 at 03:11:28PM +, Parav Pandit wrote: > > > From: Cornelia Huck > > Sent: Tuesday, February 8, 2022 8:29 PM > > > very specific (essentially PCI-specific), we need to at least answer the > > question > > "how could this work for things that are not PCI?" > Why would one

[virtio-dev] Re: [PATCH v3 1/4] Add virtio Admin virtqueue

2022-02-08 Thread Michael S. Tsirkin
On Tue, Feb 08, 2022 at 03:59:13PM +0100, Cornelia Huck wrote: > On Tue, Feb 08 2022, "Michael S. Tsirkin" wrote: > > > On Tue, Feb 08, 2022 at 01:32:12PM +, Parav Pandit wrote: > >> > >> > From: Cornelia Huck > >> > Sent: Tuesday, February 8, 2022 6:50 PM > >> > > >> > On Tue, Feb 08

Re: [virtio-dev] RE: [PATCH v3 1/4] Add virtio Admin virtqueue

2022-02-08 Thread Cornelia Huck
On Tue, Feb 08 2022, Parav Pandit wrote: >> From: Cornelia Huck >> Sent: Tuesday, February 8, 2022 8:29 PM > >> very specific (essentially PCI-specific), we need to at least answer the >> question >> "how could this work for things that are not PCI?" > Why would one want to execute PCI VF

[virtio-dev] Re: [PATCH v3 1/4] Add virtio Admin virtqueue

2022-02-08 Thread Cornelia Huck
On Tue, Feb 08 2022, "Michael S. Tsirkin" wrote: > On Tue, Feb 08, 2022 at 01:32:12PM +, Parav Pandit wrote: >> >> > From: Cornelia Huck >> > Sent: Tuesday, February 8, 2022 6:50 PM >> > >> > On Tue, Feb 08 2022, Parav Pandit wrote: >> > >> > >> From: Michael S. Tsirkin >> > >> Sent:

[virtio-dev] Re: [PATCH v3 1/4] Add virtio Admin virtqueue

2022-02-08 Thread Michael S. Tsirkin
On Tue, Feb 08, 2022 at 10:34:24AM +0200, Max Gurtovoy wrote: > "Admin virtqueue is one of the management interface that used to send > administrative > commands to manipulate various features of the *device* and/or to manipulate > various features, if possible, of *another device* within the

[virtio-dev] Re: [PATCH v3 1/4] Add virtio Admin virtqueue

2022-02-08 Thread Michael S. Tsirkin
On Tue, Feb 08, 2022 at 01:32:12PM +, Parav Pandit wrote: > > > From: Cornelia Huck > > Sent: Tuesday, February 8, 2022 6:50 PM > > > > On Tue, Feb 08 2022, Parav Pandit wrote: > > > > >> From: Michael S. Tsirkin > > >> Sent: Tuesday, February 8, 2022 12:13 PM > > > > > >> On Tue, Feb

[virtio-dev] RE: [PATCH v3 1/4] Add virtio Admin virtqueue

2022-02-08 Thread Cornelia Huck
On Tue, Feb 08 2022, Parav Pandit wrote: >> From: Michael S. Tsirkin >> Sent: Tuesday, February 8, 2022 12:13 PM > >> On Tue, Feb 08, 2022 at 06:25:41AM +, Parav Pandit wrote: >> > >> > > From: Michael S. Tsirkin >> > > Sent: Monday, February 7, 2022 4:09 PM >> > > >> > > Next, trying to

[virtio-dev] Re: [PATCH v3 1/4] Add virtio Admin virtqueue

2022-02-08 Thread Cornelia Huck
On Tue, Feb 08 2022, Max Gurtovoy wrote: > On 2/8/2022 8:45 AM, Michael S. Tsirkin wrote: >> On Tue, Feb 08, 2022 at 02:41:44AM +0200, Max Gurtovoy wrote: >>> On 2/7/2022 6:18 PM, Michael S. Tsirkin wrote: On Mon, Feb 07, 2022 at 04:58:19PM +0200, Max Gurtovoy wrote: > On 2/7/2022 12:39

[virtio-dev] Re: [PATCH v3 1/4] Add virtio Admin virtqueue

2022-02-07 Thread Michael S. Tsirkin
On Tue, Feb 08, 2022 at 02:41:44AM +0200, Max Gurtovoy wrote: > > On 2/7/2022 6:18 PM, Michael S. Tsirkin wrote: > > On Mon, Feb 07, 2022 at 04:58:19PM +0200, Max Gurtovoy wrote: > > > On 2/7/2022 12:39 PM, Michael S. Tsirkin wrote: > > > > On Thu, Feb 03, 2022 at 09:57:13AM +0200, Max Gurtovoy

[virtio-dev] Re: [PATCH v3 1/4] Add virtio Admin virtqueue

2022-02-07 Thread Michael S. Tsirkin
On Tue, Feb 08, 2022 at 06:25:41AM +, Parav Pandit wrote: > > > From: Michael S. Tsirkin > > Sent: Monday, February 7, 2022 4:09 PM > > > > Next, trying to think about scalable iov extensions. So we will have groups > > of > > VFs and then SFs as the next level. > > How does one

[virtio-dev] Re: [PATCH v3 1/4] Add virtio Admin virtqueue

2022-02-07 Thread Michael S. Tsirkin
On Mon, Feb 07, 2022 at 04:08:41PM +0100, Cornelia Huck wrote: > On Mon, Feb 07 2022, Max Gurtovoy wrote: > > > On 2/7/2022 1:51 PM, Cornelia Huck wrote: > >> On Mon, Feb 07 2022, "Michael S. Tsirkin" wrote: > >> > >>> On Mon, Feb 07, 2022 at 12:14:33PM +0200, Max Gurtovoy wrote: > On

[virtio-dev] Re: [PATCH v3 1/4] Add virtio Admin virtqueue

2022-02-07 Thread Michael S. Tsirkin
On Mon, Feb 07, 2022 at 04:58:19PM +0200, Max Gurtovoy wrote: > > On 2/7/2022 12:39 PM, Michael S. Tsirkin wrote: > > On Thu, Feb 03, 2022 at 09:57:13AM +0200, Max Gurtovoy wrote: > > > +\begin{lstlisting} > > > +struct virtio_admin_cmd { > > > +/* Device-readable part */ > > > +

[virtio-dev] Re: [PATCH v3 1/4] Add virtio Admin virtqueue

2022-02-07 Thread Cornelia Huck
On Mon, Feb 07 2022, Max Gurtovoy wrote: > On 2/7/2022 1:51 PM, Cornelia Huck wrote: >> On Mon, Feb 07 2022, "Michael S. Tsirkin" wrote: >> >>> On Mon, Feb 07, 2022 at 12:14:33PM +0200, Max Gurtovoy wrote: On 2/3/2022 3:09 PM, Cornelia Huck wrote: > On Thu, Feb 03 2022, Max Gurtovoy

[virtio-dev] Re: [PATCH v3 1/4] Add virtio Admin virtqueue

2022-02-07 Thread Cornelia Huck
On Mon, Feb 07 2022, "Michael S. Tsirkin" wrote: > On Mon, Feb 07, 2022 at 12:14:33PM +0200, Max Gurtovoy wrote: >> >> On 2/3/2022 3:09 PM, Cornelia Huck wrote: >> > On Thu, Feb 03 2022, Max Gurtovoy wrote: >> > > +commands to manipulate various features of the device and/or to >> > >

[virtio-dev] Re: [PATCH v3 1/4] Add virtio Admin virtqueue

2022-02-07 Thread Michael S. Tsirkin
On Thu, Feb 03, 2022 at 09:57:13AM +0200, Max Gurtovoy wrote: > +\begin{lstlisting} > +struct virtio_admin_cmd { > +/* Device-readable part */ > +u16 command; > +u8 command_specific_data[]; > + > +/* Device-writable part */ > +u8 status; > +u8

[virtio-dev] Re: [PATCH v3 1/4] Add virtio Admin virtqueue

2022-02-07 Thread Michael S. Tsirkin
On Mon, Feb 07, 2022 at 12:14:33PM +0200, Max Gurtovoy wrote: > > On 2/3/2022 3:09 PM, Cornelia Huck wrote: > > On Thu, Feb 03 2022, Max Gurtovoy wrote: > > > > > In one of the many use cases a user wants to manipulate features and > > > configuration of the virtio devices regardless of the

[virtio-dev] Re: [PATCH v3 1/4] Add virtio Admin virtqueue

2022-02-03 Thread Cornelia Huck
On Thu, Feb 03 2022, Max Gurtovoy wrote: > In one of the many use cases a user wants to manipulate features and > configuration of the virtio devices regardless of the device type > (net/block/console). Some of this configuration is generic enough. i.e > Number of MSI-X vectors of a virtio PCI