All of lore.kernel.org
 help / color / mirror / Atom feed
From: Taylor Stark <tstark@linux.microsoft.com>
To: David Hildenbrand <david@redhat.com>, Cornelia Huck <cohuck@redhat.com>
Cc: Cornelia Huck <cohuck@redhat.com>,
	virtio-comment@lists.oasis-open.org, grahamwo@microsoft.com,
	benhill@microsoft.com, mst@redhat.com, pankaj.gupta@ionos.com,
	Taylor Stark <tstark@microsoft.com>
Subject: Re: [virtio-comment] [PATCH 1/1] virtio-pmem: Support PCI BAR-relative addresses
Date: Fri, 23 Jul 2021 11:38:26 -0700	[thread overview]
Message-ID: <20210723183826.GA11436@linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net> (raw)
In-Reply-To: <30dd175a-e9da-0f18-0f45-3317bd7f0b8f@redhat.com>

On Fri, Jul 23, 2021 at 09:01:48AM +0200, David Hildenbrand wrote:
> On 23.07.21 01:26, Taylor Stark wrote:
> >On Thu, Jul 22, 2021 at 01:24:17PM +0200, Cornelia Huck wrote:
> >>On Wed, Jul 21 2021, tstark@linux.microsoft.com wrote:
> >>
> >>>From: Taylor Stark <tstark@microsoft.com>
> >>>
> >>>Update the virtio-pmem RFC spec to add support for describing the pmem region
> >>>via PCI BARs. Shared memory windows are used to accomplish this, similar to
> >>>virtio-fs and virtio-gpu. This is required to support virtio-pmem in Hyper-V,
> >>>since Hyper-V only allows PCI devices to operate on memory ranges defined via
> >>>BARs.
> >>
> >>Given that we already have pmem support out there (even though the spec
> >>has not been included yet, should this get a feature?
> >
> >I wasn't sure if we needed to handle backwards compatibility given that pmem
> >hasn't been merged into the spec yet. If we do, then yes I think it makes sense
> >to add a feature bit. How about VIRTIO_PMEM_F_SHMEM_REGION?
> 
> The implementations that are upstream win, and usually we get a spec
> after the implementation is mature. The spec merely documents what
> the existing implementations are doing. Of course, one can plan
> ahead and propose additions to the spec that won't break existing
> setups.
> 
> The feature seems to be glued to PCI BARs, right? Maybe that should
> be part of the feature name.
> 
> -- 
> Thanks,
> 
> David / dhildenb

I had to do a bit of research to develop an opinion on including BAR in
the name. Using BARs is the implementation for the PCI transport, but there
are other transports that have support for shared memory regions but don't
use BARs (e.g. mmio - see vm_get_shm_region). Using shared memory regions
was initially a convenient way to use PCI BARs, but I think it could be
valuable for other transports as well (it adds similarity with other virtio
devices). So I think it makes sense to leave BAR out of the name, since
that's transport specific. Maybe I should retitle the patch? Let me know
your thoughts (especially since I'm learning on the fly).

Thanks,
Taylor


  reply	other threads:[~2021-07-23 18:38 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-21 20:59 [virtio-comment] [PATCH 0/1] virtio-pmem: Support PCI BAR-relative addresses tstark
2021-07-21 20:59 ` [virtio-comment] [PATCH 1/1] " tstark
2021-07-22 11:24   ` Cornelia Huck
2021-07-22 23:26     ` Taylor Stark
2021-07-23  6:59       ` Cornelia Huck
2021-07-23  7:01       ` David Hildenbrand
2021-07-23 18:38         ` Taylor Stark [this message]
2021-07-23 19:18           ` David Hildenbrand
2021-07-27  4:21             ` Taylor Stark
2021-07-22 11:14 ` [virtio-comment] [PATCH 0/1] " Cornelia Huck
2021-07-22 11:30   ` Pankaj Gupta
2021-07-22 11:41     ` Cornelia Huck

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=20210723183826.GA11436@linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net \
    --to=tstark@linux.microsoft.com \
    --cc=benhill@microsoft.com \
    --cc=cohuck@redhat.com \
    --cc=david@redhat.com \
    --cc=grahamwo@microsoft.com \
    --cc=mst@redhat.com \
    --cc=pankaj.gupta@ionos.com \
    --cc=tstark@microsoft.com \
    --cc=virtio-comment@lists.oasis-open.org \
    /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.