Thanks Michael for the feedback!
On Tue, Dec 19, 2023 at 11:44 PM Michael S. Tsirkin wrote:
>
> > On Tue, Dec 19, 2023 at 11:32:27PM -0800, Changyuan Lyu wrote:
> >
> > + if (!have_shm) {
> > + dev_err(>dev, "failed to
physical address range of the pmem is then determined by the physical
address range of shared memory region 0.
[1]
https://docs.oasis-open.org/virtio/virtio/v1.2/csd01/virtio-v1.2-csd01.html#x1-6480002
Signed-off-by: Changyuan Lyu
---
v3:
* updated the patch description.
V2:
On Tue, Dec 19, 2023 at 7:57 PM Jason Wang wrote:
>
> On Tue, Dec 19, 2023 at 3:19 PM Changyuan Lyu wrote:
> >
> > +/* shmid of the shared memory region corresponding to the pmem */
> > +#define VIRTIO_PMEM_SHMCAP_ID 0
>
> NIT: not a native speaker, but an
As per virtio spec 1.2 section 5.19.5.2, if the feature
VIRTIO_PMEM_F_SHMEM_REGION has been negotiated, the driver MUST query
shared memory ID 0 for the physical address ranges.
Signed-off-by: Changyuan Lyu
---
drivers/nvdimm/virtio_pmem.c | 29 +
include/uapi
4 matches
Mail list logo