[virtio-dev] RE: [PATCH v2] Add device reset timeout field

2021-10-11 Thread Cornelia Huck
On Mon, Oct 11 2021, Parav Pandit wrote: >> From: Michael S. Tsirkin >> Sent: Saturday, October 9, 2021 4:39 AM >> >> On Fri, Oct 08, 2021 at 01:23:52PM +, Parav Pandit wrote: >> > >> > >> > > From: Michael S. Tsirkin >> > > Sent: Friday, October 8, 2021 6:27 PM >> > >> > > > 2. A sriov

Re: [PATCH v3 1/1] virtio: write back F_VERSION_1 before validate

2021-10-11 Thread Cornelia Huck
m to be affected. > > Long term the right thing to do is to fix the hypervisors. > > Cc: #v4.11 > Signed-off-by: Halil Pasic > Fixes: 82e89ea077b9 ("virtio-blk: Add validation for block size in config > space") > Fixes: fe36cbe0671e ("virtio_net: clear MTU whe

Re: [PATCH v3 1/1] virtio: write back F_VERSION_1 before validate

2021-10-11 Thread Cornelia Huck
m to be affected. > > Long term the right thing to do is to fix the hypervisors. > > Cc: #v4.11 > Signed-off-by: Halil Pasic > Fixes: 82e89ea077b9 ("virtio-blk: Add validation for block size in config > space") > Fixes: fe36cbe0671e ("virtio_net: clear MTU whe

Re: [PATCH v2 1/1] virtio: write back F_VERSION_1 before validate

2021-10-08 Thread Cornelia Huck
gt; @@ -239,6 +239,17 @@ static int virtio_dev_probe(struct device *_d) >> >driver_features_legacy = driver_features; >> >} >> > >> > + /* >> > + * Some devices detect legacy solely via F_VERSION_1. Write >> > + * F_VERSION_1 to force LE config space accesses before >> > FEATURES_OK for >> > + * these when needed. >> > + */ >> > + if (drv->validate && !virtio_legacy_is_little_endian() >> > +&& device_features & >> > BIT_ULL(VIRTIO_F_VERSION_1)) { >> > + dev->features = BIT_ULL(VIRTIO_F_VERSION_1); >> > + dev->config->finalize_features(dev); >> > + } >> > + >> >if (device_features & (1ULL << VIRTIO_F_VERSION_1)) >> >dev->features = driver_features & device_features; >> >else >> > >> > base-commit: 60a9483534ed0d99090a2ee1d4bb0b8179195f51 FWIW, with the amends: Reviewed-by: Cornelia Huck

Re: [PATCH v2 1/1] virtio: write back F_VERSION_1 before validate

2021-10-08 Thread Cornelia Huck
gt; @@ -239,6 +239,17 @@ static int virtio_dev_probe(struct device *_d) >> >driver_features_legacy = driver_features; >> >} >> > >> > + /* >> > + * Some devices detect legacy solely via F_VERSION_1. Write >> > + * F_

[virtio-dev] Re: [PATCH v2] Add device reset timeout field

2021-10-08 Thread Cornelia Huck
On Fri, Oct 08 2021, "Michael S. Tsirkin" wrote: > On Fri, Oct 08, 2021 at 10:59:02AM +, Parav Pandit wrote: >> It may be even a pre-boot environment where 100msec or 10msec may be too >> short interval as other extreme of VM boot time example. > > I don't really know what this means. We

[virtio-dev] RE: [PATCH v2] Add device reset timeout field

2021-10-08 Thread Cornelia Huck
On Thu, Oct 07 2021, Parav Pandit wrote: >> From: Cornelia Huck >> Sent: Thursday, October 7, 2021 9:41 PM >> On Thu, Oct 07 2021, Parav Pandit wrote: >> >> >> From: Michael S. Tsirkin >> >> Sent: Thursday, October 7, 2021 2:23 AM On Wed, Oct

Re: [PATCH 1/1] virtio: write back F_VERSION_1 before validate

2021-10-07 Thread Cornelia Huck
On Thu, Oct 07 2021, Halil Pasic wrote: > On Thu, 07 Oct 2021 17:25:52 +0200 > Cornelia Huck wrote: > >> On Thu, Oct 07 2021, Halil Pasic wrote: >> >> > On Thu, 07 Oct 2021 13:52:24 +0200 >> > Cornelia Huck wrote: >> >

[virtio-dev] RE: [PATCH v2] Add device reset timeout field

2021-10-07 Thread Cornelia Huck
On Thu, Oct 07 2021, Parav Pandit wrote: >> From: Michael S. Tsirkin >> Sent: Thursday, October 7, 2021 2:23 AM >> On Wed, Oct 06, 2021 at 04:11:19PM +, Parav Pandit wrote: >> > >> > > From: Michael S. Tsirkin >> > > Sent: Wednesday, October 6, 2021 8:52 PM >> > > second, I don't see a

Re: [PATCH 1/1] virtio: write back F_VERSION_1 before validate

2021-10-07 Thread Cornelia Huck
On Thu, Oct 07 2021, Halil Pasic wrote: > On Thu, 07 Oct 2021 17:25:52 +0200 > Cornelia Huck wrote: > >> On Thu, Oct 07 2021, Halil Pasic wrote: >> >> > On Thu, 07 Oct 2021 13:52:24 +0200 >> > Cornelia Huck wrote: >> >

Re: [PATCH 1/1] virtio: write back F_VERSION_1 before validate

2021-10-07 Thread Cornelia Huck
On Thu, Oct 07 2021, Halil Pasic wrote: > On Thu, 07 Oct 2021 13:52:24 +0200 > Cornelia Huck wrote: > >> On Wed, Oct 06 2021, Halil Pasic wrote: >> >> > The virtio specification virtio-v1.1-cs01 states: Transitional devices >> > MUST detect Legacy drive

Re: [PATCH 1/1] virtio: write back F_VERSION_1 before validate

2021-10-07 Thread Cornelia Huck
On Thu, Oct 07 2021, Halil Pasic wrote: > On Thu, 07 Oct 2021 13:52:24 +0200 > Cornelia Huck wrote: > >> On Wed, Oct 06 2021, Halil Pasic wrote: >> >> > The virtio specification virtio-v1.1-cs01 states: Transitional devices >> > MUST detect Legacy drive

Re: [PATCH 1/1] virtio: write back F_VERSION_1 before validate

2021-10-07 Thread Cornelia Huck
On Wed, Oct 06 2021, Halil Pasic wrote: > The virtio specification virtio-v1.1-cs01 states: Transitional devices > MUST detect Legacy drivers by detecting that VIRTIO_F_VERSION_1 has not > been acknowledged by the driver. This is exactly what QEMU as of 6.1 > has done relying solely on

Re: [PATCH 1/1] virtio: write back F_VERSION_1 before validate

2021-10-07 Thread Cornelia Huck
On Wed, Oct 06 2021, Halil Pasic wrote: > The virtio specification virtio-v1.1-cs01 states: Transitional devices > MUST detect Legacy drivers by detecting that VIRTIO_F_VERSION_1 has not > been acknowledged by the driver. This is exactly what QEMU as of 6.1 > has done relying solely on

[virtio-dev] Re: [PATCH v2] content: Remove duplicate paragraph

2021-10-07 Thread Cornelia Huck
On Wed, Oct 06 2021, Jean-Philippe Brucker wrote: > It looks like commit 356aeeb40d7a ("content: add vendor specific cfg > type") had a merge issue. It includes the device normative paragraph for > Shared memory capability, which was already added right above it by > commit 855ad7af2bd6 ("shared

[virtio-dev] Re: [PATCH v2] content: Remove duplicate paragraph

2021-10-07 Thread Cornelia Huck
On Wed, Oct 06 2021, Jean-Philippe Brucker wrote: > It looks like commit 356aeeb40d7a ("content: add vendor specific cfg > type") had a merge issue. It includes the device normative paragraph for > Shared memory capability, which was already added right above it by > commit 855ad7af2bd6 ("shared

Re: [virtio-dev] Fwd: [PATCH v2] Provide detailed specification of virtio-blk lifetime metrics

2021-10-06 Thread Cornelia Huck
On Fri, Aug 06 2021, Enrico Granata wrote: > Hi folks, > I am back from my leave of absence, so thank you everyone for your patience > > This proposal has been outstanding for a while and didn't seem to > receive pushback, especially compared to the initial proposal > > Would it be the right

Re: [virtio-dev] Fwd: [PATCH v2] Provide detailed specification of virtio-blk lifetime metrics

2021-10-06 Thread Cornelia Huck
On Fri, Aug 06 2021, Enrico Granata wrote: > Hi folks, > I am back from my leave of absence, so thank you everyone for your patience > > This proposal has been outstanding for a while and didn't seem to > receive pushback, especially compared to the initial proposal > > Would it be the right

Re: [virtio-dev] Re: [PATCH v5] virtio-pmem: PMEM device spec

2021-10-06 Thread Cornelia Huck
On Wed, Oct 06 2021, Pankaj Gupta wrote: >> >> > +\subsubsection{ Workload specific mapping}\label{sec:Device Types / >> >> > PMEM Device / Possible Security Implications / Countermeasures / >> >> > Workload} >> >> > +For SHARED mappings, for the workload is a single application inside >> >> >

Re: [RFC PATCH 1/1] virtio: write back features before verify

2021-10-06 Thread Cornelia Huck
On Mon, Oct 04 2021, "Michael S. Tsirkin" wrote: > On Mon, Oct 04, 2021 at 05:50:44PM +0200, Cornelia Huck wrote: >> On Mon, Oct 04 2021, "Michael S. Tsirkin" wrote: >> >> > On Mon, Oct 04, 2021 at 04:33:21PM +0200, Cornelia Huck wrote: >> &

Re: [RFC PATCH 1/1] virtio: write back features before verify

2021-10-06 Thread Cornelia Huck
On Mon, Oct 04 2021, "Michael S. Tsirkin" wrote: > On Mon, Oct 04, 2021 at 05:50:44PM +0200, Cornelia Huck wrote: >> On Mon, Oct 04 2021, "Michael S. Tsirkin" wrote: >> >> > On Mon, Oct 04, 2021 at 04:33:21PM +0200, Cornelia Huck wrote: >> &

[virtio-dev] Re: [PATCH v1] Add device reset timeout field

2021-10-06 Thread Cornelia Huck
rav Pandit > Reviewed-by: Max Gurtovoy > > --- > changelog: > v0->v1: > - v0: https://lists.oasis-open.org/archives/virtio-dev/202109/msg00133.html > - Addressed below comments from Cornelia Huck > - renamed VIRTIO_F_DEV_RESET_TO to VIRTIO_F_DEV_RESET_TIMEOUT > - rem

Re: [virtio-dev] Re: [PATCH v5] virtio-pmem: PMEM device spec

2021-10-06 Thread Cornelia Huck
On Wed, Oct 06 2021, Pankaj Gupta wrote: >> > +\subsubsection{ Workload specific mapping}\label{sec:Device Types / PMEM >> > Device / Possible Security Implications / Countermeasures / Workload} >> > +For SHARED mappings, for the workload is a single application inside >> > +the driver and

[virtio-dev] Re: [PATCH v5] virtio-pmem: PMEM device spec

2021-10-06 Thread Cornelia Huck
On Wed, Oct 06 2021, Pankaj Gupta wrote: > Posting virtio specification for virtio pmem device. Virtio pmem is a > paravirtualized device which allows the guest to bypass page cache. > Virtio pmem kernel driver is merged in Upstream Kernel 5.3. Also, Qemu > device is merged in Qemu 4.1. > >

[virtio-dev] Re: [PATCH] virtio-iommu: Rework the bypass feature

2021-10-06 Thread Cornelia Huck
On Tue, Oct 05 2021, "Michael S. Tsirkin" wrote: > On Tue, Oct 05, 2021 at 06:57:50PM +0200, Cornelia Huck wrote: >> On Thu, Sep 30 2021, Jean-Philippe Brucker wrote: >> > \item[VIRTIO_IOMMU_F_BYPASS (3)] >> > - When not attached to a domain, endpoint

[virtio-dev] Re: [PATCH] virtio-iommu: Rework the bypass feature

2021-10-05 Thread Cornelia Huck
On Thu, Sep 30 2021, Jean-Philippe Brucker wrote: > The VIRTIO_IOMMU_F_BYPASS feature is awkward to use and incomplete. > Although it is implemented by QEMU, it is not supported by any driver as > far as I know. Replace it with a new VIRTIO_IOMMU_F_BYPASS_CONFIG > feature. The old feature bit is

Re: [RFC PATCH 1/1] virtio: write back features before verify

2021-10-05 Thread Cornelia Huck
On Tue, Oct 05 2021, Halil Pasic wrote: > On Tue, 05 Oct 2021 13:13:31 +0200 > Cornelia Huck wrote: >> Or am I misunderstanding what you're getting at? >> > > Probably. I'm talking about pre- "do transport specific legacy detection > in the device inst

Re: [virtio-dev] Re: [RFC PATCH 1/1] virtio: write back features before verify

2021-10-05 Thread Cornelia Huck
On Tue, Oct 05 2021, "Michael S. Tsirkin" 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" wrote: >> >> > > >> > > Ok, so what about something like >> > > >> > > "If FEATURES_OK is not set, the driver MAY

Re: [RFC PATCH 1/1] virtio: write back features before verify

2021-10-05 Thread Cornelia Huck
On Tue, Oct 05 2021, Halil Pasic wrote: > On Tue, 05 Oct 2021 13:13:31 +0200 > Cornelia Huck wrote: >> Or am I misunderstanding what you're getting at? >> > > Probably. I'm talking about pre- "do transport specific legacy detection > in the device inst

Re: [virtio-dev] Re: [RFC PATCH 1/1] virtio: write back features before verify

2021-10-05 Thread Cornelia Huck
On Tue, Oct 05 2021, "Michael S. Tsirkin" 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" wrote: >> >> > > >> > > Ok, so what about something like >> > > >> > > "If FEATURES_OK is not set, the driver MAY

Re: [virtio-dev] Re: [RFC PATCH 1/1] virtio: write back features before verify

2021-10-05 Thread Cornelia Huck
On Tue, Oct 05 2021, "Michael S. Tsirkin" 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" wrote: >> >> > > >> > > Ok, so what about something like >> > > >> > > "If FEATURES_OK is not set, the driver MAY

Re: [RFC PATCH 1/1] virtio: write back features before verify

2021-10-05 Thread Cornelia Huck
On Tue, Oct 05 2021, Halil Pasic wrote: > On Mon, 4 Oct 2021 05:07:13 -0400 > "Michael S. Tsirkin" wrote: >> Well we established that we can know. Here's an alternative explanation: > > > I thin we established how this should be in the future, where a transport > specific mechanism is used to

Re: [RFC PATCH 1/1] virtio: write back features before verify

2021-10-05 Thread Cornelia Huck
On Tue, Oct 05 2021, Halil Pasic wrote: > On Mon, 4 Oct 2021 05:07:13 -0400 > "Michael S. Tsirkin" wrote: >> Well we established that we can know. Here's an alternative explanation: > > > I thin we established how this should be in the future, where a transport > specific mechanism is used to

Re: [RFC PATCH 1/1] virtio: write back features before verify

2021-10-05 Thread Cornelia Huck
On Mon, Oct 04 2021, "Michael S. Tsirkin" wrote: > On Mon, Oct 04, 2021 at 04:23:23AM +0200, Halil Pasic wrote: >> --8<- >> >> From: Halil Pasic >> Date: Thu, 30 Sep 2021 02:38:47 +0200 >> Subject: [PATCH] virtio: write back feature VERSION_1 before

Re: [RFC PATCH 1/1] virtio: write back features before verify

2021-10-05 Thread Cornelia Huck
On Mon, Oct 04 2021, "Michael S. Tsirkin" wrote: > On Mon, Oct 04, 2021 at 04:23:23AM +0200, Halil Pasic wrote: >> --8<- >> >> From: Halil Pasic >> Date: Thu, 30 Sep 2021 02:38:47 +0200 >> Subject: [PATCH] virtio: write back feature VERSION_1 before

Re: [virtio-dev] Re: [RFC PATCH 1/1] virtio: write back features before verify

2021-10-05 Thread Cornelia Huck
On Mon, Oct 04 2021, "Michael S. Tsirkin" wrote: > On Mon, Oct 04, 2021 at 05:45:06PM +0200, Cornelia Huck wrote: >> On Mon, Oct 04 2021, "Michael S. Tsirkin" wrote: >> >> > On Mon, Oct 04, 2021 at 04:27:23PM +0200, Cornelia Huck wrote: >> &

Re: [virtio-dev] Re: [RFC PATCH 1/1] virtio: write back features before verify

2021-10-05 Thread Cornelia Huck
On Mon, Oct 04 2021, "Michael S. Tsirkin" wrote: > On Mon, Oct 04, 2021 at 05:45:06PM +0200, Cornelia Huck wrote: >> On Mon, Oct 04 2021, "Michael S. Tsirkin" wrote: >> >> > On Mon, Oct 04, 2021 at 04:27:23PM +0200, Cornelia Huck wrote: >> &

RE: [virtio-dev] [PATCH] Add device reset timeout field

2021-10-05 Thread Cornelia Huck
On Tue, Oct 05 2021, Parav Pandit wrote: >> From: Cornelia Huck >> Sent: Monday, October 4, 2021 9:09 PM > > >> On Fri, Oct 01 2021, Parav Pandit wrote: >> >> >> From: Cornelia Huck >> >> Sent: Friday, October 1, 2021 5:31 P

Re: [RFC PATCH 1/1] virtio: write back features before verify

2021-10-04 Thread Cornelia Huck
On Mon, Oct 04 2021, "Michael S. Tsirkin" wrote: > On Mon, Oct 04, 2021 at 04:33:21PM +0200, Cornelia Huck wrote: >> On Mon, Oct 04 2021, "Michael S. Tsirkin" wrote: >> >> > On Mon, Oct 04, 2021 at 02:19:55PM +0200, Cornelia Huck wrote: >> >

Re: [RFC PATCH 1/1] virtio: write back features before verify

2021-10-04 Thread Cornelia Huck
On Mon, Oct 04 2021, "Michael S. Tsirkin" wrote: > On Mon, Oct 04, 2021 at 04:33:21PM +0200, Cornelia Huck wrote: >> On Mon, Oct 04 2021, "Michael S. Tsirkin" wrote: >> >> > On Mon, Oct 04, 2021 at 02:19:55PM +0200, Cornelia Huck wrote: >> >

Re: [virtio-dev] Re: [RFC PATCH 1/1] virtio: write back features before verify

2021-10-04 Thread Cornelia Huck
On Mon, Oct 04 2021, "Michael S. Tsirkin" wrote: > On Mon, Oct 04, 2021 at 04:27:23PM +0200, Cornelia Huck wrote: >> On Mon, Oct 04 2021, "Michael S. Tsirkin" wrote: >> >> > On Mon, Oct 04, 2021 at 02:01:14PM +0200, Cornelia Huck wrote: >> &

Re: [virtio-dev] Re: [RFC PATCH 1/1] virtio: write back features before verify

2021-10-04 Thread Cornelia Huck
On Mon, Oct 04 2021, "Michael S. Tsirkin" wrote: > On Mon, Oct 04, 2021 at 04:27:23PM +0200, Cornelia Huck wrote: >> On Mon, Oct 04 2021, "Michael S. Tsirkin" wrote: >> >> > On Mon, Oct 04, 2021 at 02:01:14PM +0200, Cornelia Huck wrote: >> &

RE: [virtio-dev] [PATCH] Add device reset timeout field

2021-10-04 Thread Cornelia Huck
On Fri, Oct 01 2021, Parav Pandit wrote: >> From: Cornelia Huck >> Sent: Friday, October 1, 2021 5:31 PM >> >> On Thu, Sep 30 2021, Parav Pandit wrote: >> > [..] > >> > +Once the driver initiates a reset, the device may not be able to >> &g

Re: [RFC PATCH 1/1] virtio: write back features before verify

2021-10-04 Thread Cornelia Huck
On Mon, Oct 04 2021, "Michael S. Tsirkin" wrote: > On Mon, Oct 04, 2021 at 02:19:55PM +0200, Cornelia Huck wrote: >> >> [cc:qemu-devel] >> >> On Sat, Oct 02 2021, "Michael S. Tsirkin" wrote: >> >> > On Fri, Oct 01, 2021 at 09:21:

Re: [RFC PATCH 1/1] virtio: write back features before verify

2021-10-04 Thread Cornelia Huck
On Mon, Oct 04 2021, "Michael S. Tsirkin" wrote: > On Mon, Oct 04, 2021 at 02:19:55PM +0200, Cornelia Huck wrote: >> >> [cc:qemu-devel] >> >> On Sat, Oct 02 2021, "Michael S. Tsirkin" wrote: >> >> > On Fri, Oct 01, 2021 at 09:21:

Re: [RFC PATCH 1/1] virtio: write back features before verify

2021-10-04 Thread Cornelia Huck
On Mon, Oct 04 2021, "Michael S. Tsirkin" wrote: > On Mon, Oct 04, 2021 at 02:01:14PM +0200, Cornelia Huck wrote: >> On Sun, Oct 03 2021, "Michael S. Tsirkin" wrote: >> > @@ -160,6 +163,33 @@ \subsection{Legacy Interface: A Note on Feature >>

[virtio-dev] Re: [RFC PATCH 1/1] virtio: write back features before verify

2021-10-04 Thread Cornelia Huck
On Mon, Oct 04 2021, "Michael S. Tsirkin" wrote: > On Mon, Oct 04, 2021 at 02:01:14PM +0200, Cornelia Huck wrote: >> On Sun, Oct 03 2021, "Michael S. Tsirkin" wrote: >> > @@ -160,6 +163,33 @@ \subsection{Legacy Interface: A Note on Feature >>

Re: [RFC PATCH 1/1] virtio: write back features before verify

2021-10-04 Thread Cornelia Huck
[cc:qemu-devel] On Sat, Oct 02 2021, "Michael S. Tsirkin" wrote: > On Fri, Oct 01, 2021 at 09:21:25AM +0200, Halil Pasic wrote: >> On Thu, 30 Sep 2021 07:12:21 -0400 >> "Michael S. Tsirkin" wrote: >> >> > On Thu, Sep 30, 2021 at 03:20:49AM +0200, Halil Pasic wrote: >> > > This patch fixes a

Re: [RFC PATCH 1/1] virtio: write back features before verify

2021-10-04 Thread Cornelia Huck
[cc:qemu-devel] On Sat, Oct 02 2021, "Michael S. Tsirkin" wrote: > On Fri, Oct 01, 2021 at 09:21:25AM +0200, Halil Pasic wrote: >> On Thu, 30 Sep 2021 07:12:21 -0400 >> "Michael S. Tsirkin" wrote: >> >> > On Thu, Sep 30, 2021 at 03:20:49AM +0200, Halil Pasic wrote: >> > > This patch fixes a

Re: [RFC PATCH 1/1] virtio: write back features before verify

2021-10-04 Thread Cornelia Huck
On Sun, Oct 03 2021, "Michael S. Tsirkin" wrote: > Sent too early. So here's what I propose. Could you pls take a look > and if you like this, post a ccw section? We have not talked about the mmio transport so far, but I guess it should be fine as legacy and standard are separated. > There's

[virtio-dev] Re: [RFC PATCH 1/1] virtio: write back features before verify

2021-10-04 Thread Cornelia Huck
On Sun, Oct 03 2021, "Michael S. Tsirkin" wrote: > Sent too early. So here's what I propose. Could you pls take a look > and if you like this, post a ccw section? We have not talked about the mmio transport so far, but I guess it should be fine as legacy and standard are separated. > There's

[virtio-dev] Re: [PATCH] content: Remove duplicate paragraph

2021-10-04 Thread Cornelia Huck
On Thu, Sep 30 2021, Jean-Philippe Brucker wrote: > It looks like commit 356aeeb40d7a ("content: add vendor specific cfg > type") had a merge issue. It includes the device normative paragraph for > Shared memory capability, which was already added right above it by > commit 855ad7af2bd6 ("shared

Re: [RFC PATCH 1/1] virtio: write back features before verify

2021-10-04 Thread Cornelia Huck
On Mon, Oct 04 2021, Halil Pasic wrote: > On Mon, 04 Oct 2021 09:01:42 +0200 > Cornelia Huck wrote: > >> On Sat, Oct 02 2021, "Michael S. Tsirkin" wrote: >> >> > On Fri, Oct 01, 2021 at 05:18:46PM +0200, Cornelia Huck wrote: >> >> I'd say

Re: [RFC PATCH 1/1] virtio: write back features before verify

2021-10-04 Thread Cornelia Huck
On Sat, Oct 02 2021, "Michael S. Tsirkin" wrote: > On Fri, Oct 01, 2021 at 05:18:46PM +0200, Cornelia Huck wrote: >> I'd say we need a hack here so that we assume little-endian config space >> if VERSION_1 has been offered; if your patch here works, I assume QE

Re: [RFC PATCH 1/1] virtio: write back features before verify

2021-10-01 Thread Cornelia Huck
On Fri, Oct 01 2021, Halil Pasic wrote: > On Thu, 30 Sep 2021 13:31:04 +0200 > Cornelia Huck wrote: > >> On Thu, Sep 30 2021, Halil Pasic wrote: >> >> > On Thu, 30 Sep 2021 11:28:23 +0200 >> > Cornelia Huck wrote: >> > >> >>

Re: [virtio-dev] [PATCH] Add device reset timeout field

2021-10-01 Thread Cornelia Huck
On Thu, Sep 30 2021, Parav Pandit wrote: > Motivation: > == > Currently when driver initiates a device reset operation, a device may > not be able finish the reset operation immediately. In such case driver > waits for an arbitrary amount of time in a hope that device will finish > the

Re: [virtio-dev] [PATCH v5 1/3] virtio: introduce virtqueue reset as basic facility

2021-10-01 Thread Cornelia Huck
On Fri, Oct 01 2021, Xuan Zhuo wrote: > This patch allows the driver to reset a queue individually. > > This is very common on general network equipment. By disabling a queue, > you can quickly reclaim the buffer currently on the queue. If necessary, > we can reinitialize the queue separately. >

Re: [RFC PATCH 1/1] virtio: write back features before verify

2021-09-30 Thread Cornelia Huck
On Thu, Sep 30 2021, "Michael S. Tsirkin" wrote: > On Thu, Sep 30, 2021 at 03:20:49AM +0200, Halil Pasic wrote: >> This patch fixes a regression introduced by commit 82e89ea077b9 >> ("virtio-blk: Add validation for block size in config space") and >> enables similar checks in verify() on big

Re: [RFC PATCH 1/1] virtio: write back features before verify

2021-09-30 Thread Cornelia Huck
On Thu, Sep 30 2021, Halil Pasic wrote: > On Thu, 30 Sep 2021 11:28:23 +0200 > Cornelia Huck wrote: > >> On Thu, Sep 30 2021, Halil Pasic wrote: >> >> > This patch fixes a regression introduced by commit 82e89ea077b9 >> > ("virtio-blk: A

[virtio-dev] Re: [PATCH v4 2/3] virtio: pci support virtqueue reset

2021-09-30 Thread Cornelia Huck
On Thu, Sep 30 2021, Jason Wang wrote: > On Thu, Sep 30, 2021 at 12:33 AM Cornelia Huck wrote: >> >> On Wed, Sep 29 2021, Xuan Zhuo wrote: >> >> > On Tue, 28 Sep 2021 12:20:46 +0200, Cornelia Huck >> > wrote: >> >> On Tue, Sep 28 202

Re: [virtio-dev] Re: [PATCH v4 1/3] virtio: introduce virtqueue reset as basic facility

2021-09-30 Thread Cornelia Huck
On Thu, Sep 30 2021, Jason Wang wrote: > On Thu, Sep 30, 2021 at 12:24 AM Cornelia Huck wrote: >> >> On Wed, Sep 29 2021, Jason Wang wrote: >> >> > On Wed, Sep 29, 2021 at 10:01 AM Xuan Zhuo >> > wrote: >> >> >> >>

Re: [RFC PATCH 1/1] virtio: write back features before verify

2021-09-30 Thread Cornelia Huck
On Thu, Sep 30 2021, Halil Pasic wrote: > This patch fixes a regression introduced by commit 82e89ea077b9 > ("virtio-blk: Add validation for block size in config space") and > enables similar checks in verify() on big endian platforms. > > The problem with checking multi-byte config fields in

[virtio-dev] Re: [PATCH v4 2/3] virtio: pci support virtqueue reset

2021-09-29 Thread Cornelia Huck
On Wed, Sep 29 2021, Xuan Zhuo wrote: > On Tue, 28 Sep 2021 12:20:46 +0200, Cornelia Huck wrote: >> On Tue, Sep 28 2021, Xuan Zhuo wrote: >> > +The device MUST reset the queue when 1 is written to \field{queue_reset}, >> > and >> > +present a 1 in \field{q

Re: [virtio-dev] Re: [PATCH v4 1/3] virtio: introduce virtqueue reset as basic facility

2021-09-29 Thread Cornelia Huck
On Wed, Sep 29 2021, Jason Wang wrote: > On Wed, Sep 29, 2021 at 10:01 AM Xuan Zhuo wrote: >> >> On Tue, 28 Sep 2021 12:06:01 +0200, Cornelia Huck wrote: >> > On Tue, Sep 28 2021, Xuan Zhuo wrote: >> > >> > > This patch al

RE: [RFC 03/20] vfio: Add vfio_[un]register_device()

2021-09-29 Thread Cornelia Huck
On Wed, Sep 29 2021, "Tian, Kevin" wrote: >> From: David Gibson >> Sent: Wednesday, September 29, 2021 10:44 AM >> >> > One alternative option is to arrange device nodes in sub-directories based >> > on the device type. But doing so also adds one trouble to userspace. The >> > current vfio

[virtio-dev] Re: [PATCH v4 3/3] virtio: mmio support virtqueue reset

2021-09-28 Thread Cornelia Huck
On Tue, Sep 28 2021, Xuan Zhuo wrote: > mmio support virtqueue reset. > > MMIO Device Register Layout "QueueReady" to support virtqueue reset. > The driver uses this to selectively reset the queue. > > Signed-off-by: Xuan Zhuo > --- > content.tex | 29 - > 1 file

[virtio-dev] Re: [PATCH v4 2/3] virtio: pci support virtqueue reset

2021-09-28 Thread Cornelia Huck
On Tue, Sep 28 2021, Xuan Zhuo wrote: > PCI support virtqueue reset. > > virtio_pci_common_cfg add "queue_reset" to support virtqueue reset. > The driver uses this to selectively reset the queue. > > Signed-off-by: Xuan Zhuo > --- > content.tex | 28 > 1 file

[virtio-dev] Re: [PATCH v4 1/3] virtio: introduce virtqueue reset as basic facility

2021-09-28 Thread Cornelia Huck
On Tue, Sep 28 2021, Xuan Zhuo wrote: > This patch allows the driver to reset a queue individually. > > This is very common on general network equipment. By disabling a queue, > you can quickly reclaim the buffer currently on the queue. If necessary, > we can reinitialize the queue separately. >

Re: [virtio-dev] [PATCH v3 2/2] virtio: pci support virtqueue reset

2021-09-28 Thread Cornelia Huck
On Tue, Sep 28 2021, Xuan Zhuo wrote: > On Mon, 27 Sep 2021 16:51:43 +0200, Cornelia Huck wrote: >> MMIO can probably use a similar mechanism. >> >> For CCW, maybe we can add a payload to the existing RESET command if the >> feature has been negotiated; the queue can

Re: [virtio-dev] [PATCH v3 2/2] virtio: pci support virtqueue reset

2021-09-28 Thread Cornelia Huck
On Tue, Sep 28 2021, Jason Wang wrote: > On Mon, Sep 27, 2021 at 10:51 PM Cornelia Huck wrote: >> For CCW, maybe we can add a payload to the existing RESET command if the >> feature has been negotiated; > > I wonder if it's better for a new dedicated command. Co

Re: [virtio-dev] [PATCH v3 2/2] virtio: pci support virtqueue reset

2021-09-27 Thread Cornelia Huck
On Mon, Sep 27 2021, Xuan Zhuo wrote: > PCI support virtqueue reset. > > virtio_pci_common_cfg add "queue_reset" to support virtqueue reset. > The driver uses this to selectively reset the queue. > > Signed-off-by: Xuan Zhuo > --- > content.tex | 21 + > 1 file changed, 21

Re: [virtio-dev] [PATCH v3 1/2] virtio: introduce virtqueue reset as basic facility

2021-09-27 Thread Cornelia Huck
On Mon, Sep 27 2021, Xuan Zhuo wrote: > This patch allows the driver to reset a queue individually. > > This is very common on general network equipment. By disabling a queue, > you can quickly reclaim the buffer currently on the queue. If necessary, > we can reinitialize the queue separately. >

Re: [PATCH v3 1/3] hw/virtio: Comment virtqueue_flush() must be called with RCU read lock

2021-09-27 Thread Cornelia Huck
On Mon, Sep 27 2021, Philippe Mathieu-Daudé wrote: > On 9/27/21 12:18, Cornelia Huck wrote: >> On Mon, Sep 06 2021, Philippe Mathieu-Daudé wrote: >> >>> Reported-by: Stefano Garzarella >>> Suggested-by: Stefan Hajnoczi >>> Signed-off-by: Philippe Mat

Re: [PATCH v3 1/3] hw/virtio: Comment virtqueue_flush() must be called with RCU read lock

2021-09-27 Thread Cornelia Huck
On Mon, Sep 06 2021, Philippe Mathieu-Daudé wrote: > Reported-by: Stefano Garzarella > Suggested-by: Stefan Hajnoczi > Signed-off-by: Philippe Mathieu-Daudé > --- > include/hw/virtio/virtio.h | 7 +++ > hw/virtio/virtio.c | 1 + > 2 files changed, 8 insertions(+) > > diff --git

[virtio-dev] Re: [PATCH] Reserve device id for RDMA device

2021-09-24 Thread Cornelia Huck
On Thu, Sep 23 2021, Junji Wei wrote: >> On Sep 22, 2021, at 7:28 PM, Cornelia Huck wrote: >> >> On Fri, Sep 03 2021, Junji Wei wrote: >> >>> Use device ID 42 >>> >>> Signed-off-by: Junji Wei >>> --- >>> conte

[virtio-dev] Re: [PATCH v4] virtio-pmem: PMEM device spec

2021-09-23 Thread Cornelia Huck
On Tue, Sep 21 2021, Pankaj Gupta wrote: > Posting virtio specification for virtio pmem device. Virtio pmem is a > paravirtualized device which allows the guest to bypass page cache. > Virtio pmem kernel driver is merged in Upstream Kernel 5.3. Also, Qemu > device is merged in Qemu 4.1. > >

[virtio-dev] Re: [PATCH] Reserve device id for RDMA device

2021-09-22 Thread Cornelia Huck
On Fri, Sep 03 2021, Junji Wei wrote: > Use device ID 42 > > Signed-off-by: Junji Wei > --- > content.tex | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/content.tex b/content.tex > index 3aeb4a4..b57c997 100644 > --- a/content.tex > +++ b/content.tex > @@ -2878,6 +2878,8 @@

[virtio-dev] Re: [PATCH V3] virtio: i2c: Allow zero-length transactions

2021-09-22 Thread Cornelia Huck
On Wed, Sep 01 2021, Viresh Kumar wrote: > The I2C protocol allows zero-length requests with no data, like the > SMBus Quick command, where the command is inferred based on the > read/write flag itself. > > In order to allow such a request, allocate another bit, > VIRTIO_I2C_FLAGS_M_RD(1), in

Re: [PATCH 1/1] virtio/s390: fix vritio-ccw device teardown

2021-09-21 Thread Cornelia Huck
On Tue, Sep 21 2021, Halil Pasic wrote: > On Mon, 20 Sep 2021 12:07:23 +0200 > Cornelia Huck wrote: > >> On Mon, Sep 20 2021, Vineeth Vijayan wrote: >> >> > On Mon, 2021-09-20 at 00:39 +0200, Halil Pasic wrote: >> >> On Fri, 17 Sep 2021

Re: [Intel-gfx] [PATCH v2 6/9] vfio/mdev: Add mdev available instance checking to the core

2021-09-20 Thread Cornelia Huck
On Thu, Sep 09 2021, Jason Gunthorpe wrote: > Many of the mdev drivers use a simple counter for keeping track of the > available instances. Move this code to the core code and store the counter > in the mdev_type. Implement it using correct locking, fixing mdpy. > > Drivers provide a

Re: [PATCH v2 6/9] vfio/mdev: Add mdev available instance checking to the core

2021-09-20 Thread Cornelia Huck
On Thu, Sep 09 2021, Jason Gunthorpe wrote: > Many of the mdev drivers use a simple counter for keeping track of the > available instances. Move this code to the core code and store the counter > in the mdev_type. Implement it using correct locking, fixing mdpy. > > Drivers provide a

Re: [Intel-gfx] [PATCH v2 4/9] vfio/ccw: Make the FSM complete and synchronize it to the mdev

2021-09-20 Thread Cornelia Huck
On Thu, Sep 09 2021, Jason Gunthorpe wrote: > The subchannel should be left in a quiescent state unless the VFIO device > FD is opened. When the FD is opened bring the chanel to active and allow > the VFIO device to operate. When the device FD is closed then quiesce the > channel. > > To make

Re: [PATCH v2 4/9] vfio/ccw: Make the FSM complete and synchronize it to the mdev

2021-09-20 Thread Cornelia Huck
On Thu, Sep 09 2021, Jason Gunthorpe wrote: > The subchannel should be left in a quiescent state unless the VFIO device > FD is opened. When the FD is opened bring the chanel to active and allow > the VFIO device to operate. When the device FD is closed then quiesce the > channel. > > To make

Re: [PATCH v2 2/9] vfio/ccw: Pass vfio_ccw_private not mdev_device to various functions

2021-09-20 Thread Cornelia Huck
gt; drivers/s390/cio/vfio_ccw_ops.c | 37 + > 1 file changed, 15 insertions(+), 22 deletions(-) Reviewed-by: Cornelia Huck

Re: [Intel-gfx] [PATCH v2 2/9] vfio/ccw: Pass vfio_ccw_private not mdev_device to various functions

2021-09-20 Thread Cornelia Huck
gt; drivers/s390/cio/vfio_ccw_ops.c | 37 + > 1 file changed, 15 insertions(+), 22 deletions(-) Reviewed-by: Cornelia Huck

Re: [PATCH 1/1] virtio/s390: fix vritio-ccw device teardown

2021-09-20 Thread Cornelia Huck
On Mon, Sep 20 2021, Halil Pasic wrote: > On Fri, 17 Sep 2021 10:40:20 +0200 > Cornelia Huck wrote: > >> On Thu, Sep 16 2021, Halil Pasic wrote: >> >> > On Thu, 16 Sep 2021 10:59:15 +0200 >> > Cornelia Huck wrote: >> > >> >> >

Re: [PATCH 1/1] virtio/s390: fix vritio-ccw device teardown

2021-09-20 Thread Cornelia Huck
On Mon, Sep 20 2021, Vineeth Vijayan wrote: > On Mon, 2021-09-20 at 00:39 +0200, Halil Pasic wrote: >> On Fri, 17 Sep 2021 10:40:20 +0200 >> Cornelia Huck wrote: >> > ...snip... >> > > >> > > Thanks, if I find time for it, I will try to un

Re: [PATCH v2 0/9] Move vfio_ccw to the new mdev API

2021-09-17 Thread Cornelia Huck
On Fri, Sep 17 2021, Jason Gunthorpe wrote: > On Fri, Sep 17, 2021 at 01:59:16PM +0200, Cornelia Huck wrote: >> >ret = cio_cancel_halt_clear(sch, ); >> > - >> >if (ret == -EIO) { >> >pr_err("vfio_ccw: cou

Re: [Intel-gfx] [PATCH v2 0/9] Move vfio_ccw to the new mdev API

2021-09-17 Thread Cornelia Huck
On Fri, Sep 17 2021, Jason Gunthorpe wrote: > On Fri, Sep 17, 2021 at 01:59:16PM +0200, Cornelia Huck wrote: >> >ret = cio_cancel_halt_clear(sch, ); >> > - >> >if (ret == -EIO) { >> >pr_err("vfio_ccw: cou

Re: [hpx-users] Generate OTF2 traces of distributed runs with APEX, re-revisited

2021-09-17 Thread Kevin Huck
onsible for the APEX + HPX integration, but I think it is great. > > Best regards, > Kor > > > On 9/17/21 12:09 AM, Kevin Huck wrote: >> Kor - >> Sorry I didn’t reply sooner… I’m glad things are working for you now! >> The thread naming is a bit odd, be

Re: [PATCH v2 0/9] Move vfio_ccw to the new mdev API

2021-09-17 Thread Cornelia Huck
On Tue, Sep 14 2021, Jason Gunthorpe wrote: > On Mon, Sep 13, 2021 at 04:31:54PM -0400, Eric Farman wrote: >> > I rebased it and fixed it up here: >> > >> > https://github.com/jgunthorpe/linux/tree/vfio_ccw >> > >> > Can you try again? >> >> That does address the crash, but then why is it

Re: [Intel-gfx] [PATCH v2 0/9] Move vfio_ccw to the new mdev API

2021-09-17 Thread Cornelia Huck
On Tue, Sep 14 2021, Jason Gunthorpe wrote: > On Mon, Sep 13, 2021 at 04:31:54PM -0400, Eric Farman wrote: >> > I rebased it and fixed it up here: >> > >> > https://github.com/jgunthorpe/linux/tree/vfio_ccw >> > >> > Can you try again? >> >> That does address the crash, but then why is it

Re: Rust in Qemu BoF followup: Rust vs. qemu platform support

2021-09-17 Thread Cornelia Huck
On Fri, Sep 17 2021, David Gibson wrote: > Hi all, > > At the qemu-in-rust BoF at KVM Forum, I volunteered to look into > whether Rust supported all the host/build platforms that qemu does, > which is obviously vital if we want to make Rust a non-optional > component of the build. > > I've added

Re: [PATCH 1/1] virtio/s390: fix vritio-ccw device teardown

2021-09-17 Thread Cornelia Huck
On Thu, Sep 16 2021, Halil Pasic wrote: > On Thu, 16 Sep 2021 10:59:15 +0200 > Cornelia Huck wrote: > >> > Since commit 48720ba56891 ("virtio/s390: use DMA memory for ccw I/O and >> > classic notifiers") we were supposed to make sure that >> > vir

Re: [PATCH 1/1] virtio/s390: fix vritio-ccw device teardown

2021-09-16 Thread Cornelia Huck
On Wed, Sep 15 2021, Halil Pasic wrote: > Since commit 48720ba56891 ("virtio/s390: use DMA memory for ccw I/O and > classic notifiers") we were supposed to make sure that > virtio_ccw_release_dev() completes before the ccw device, and the > attached dma pool are torn down, but unfortunately we

Re: [PATCH v2 1/9] vfio/ccw: Use functions for alloc/free of the vfio_ccw_private

2021-09-14 Thread Cornelia Huck
On Fri, Sep 10 2021, Christoph Hellwig wrote: > On Thu, Sep 09, 2021 at 04:38:41PM -0300, Jason Gunthorpe wrote: >> + >> +private = kzalloc(sizeof(*private), GFP_KERNEL | GFP_DMA); >> +if (!private) >> +return ERR_PTR(-ENOMEM); > > Nit: there is no need to add GFP_KERNEL when

Re: [Intel-gfx] [PATCH v2 1/9] vfio/ccw: Use functions for alloc/free of the vfio_ccw_private

2021-09-14 Thread Cornelia Huck
On Fri, Sep 10 2021, Christoph Hellwig wrote: > On Thu, Sep 09, 2021 at 04:38:41PM -0300, Jason Gunthorpe wrote: >> + >> +private = kzalloc(sizeof(*private), GFP_KERNEL | GFP_DMA); >> +if (!private) >> +return ERR_PTR(-ENOMEM); > > Nit: there is no need to add GFP_KERNEL when

Re: [hpx-users] Generate OTF2 traces of distributed runs with APEX, re-revisited

2021-09-03 Thread Kevin Huck
of nodes you use (works only for one locality >>> per node). This should get rid of the "every locality thinks its rank 0" >>> problem. Please let me know if it works and the two issues were indeed >>> related. >>> >>> Kind regards, >>&g

Re: [PATCH 2/2] docs/about: Unify the subject format

2021-08-20 Thread Cornelia Huck
> 2 files changed, 42 insertions(+), 42 deletions(-) Unrelated to your patch, line 143 in removed-features.rst reads ``-vnc ...,tls=...``, ``-vnc ...,x509=...`` & ``-vnc ...,x509verify=...`` and is missing the release it was removed in (presumably 3.1?) Anyway, Reviewed-by: Cornelia Huck

Re: [PATCH 2/2] docs/about: Unify the subject format

2021-08-20 Thread Cornelia Huck
> 2 files changed, 42 insertions(+), 42 deletions(-) Unrelated to your patch, line 143 in removed-features.rst reads ``-vnc ...,tls=...``, ``-vnc ...,x509=...`` & ``-vnc ...,x509verify=...`` and is missing the release it was removed in (presumably 3.1?) Anyway, Reviewed-by: Cornelia Huck

<    3   4   5   6   7   8   9   10   11   12   >