All of lore.kernel.org
 help / color / mirror / Atom feed
* [virtio-dev] [PATCH] content: reserve device ID for virtio-pmem devices
@ 2019-04-12  5:03 Pankaj Gupta
  2019-04-12  7:57 ` [virtio-dev] " Cornelia Huck
  2019-04-15 13:54 ` Stefan Hajnoczi
  0 siblings, 2 replies; 10+ messages in thread
From: Pankaj Gupta @ 2019-04-12  5:03 UTC (permalink / raw)
  To: virtio-dev; +Cc: mst, stefanha, cohuck

We need a device ID for virtio-pmem devices. As 25 is  
requested by audio device, so requesting next available(26).
Also, updated the previously requested github issue[1] for
voting.

[1] https://github.com/oasis-tcs/virtio-spec/issues/38

Signed-off-by: Pankaj Gupta <pagupta@redhat.com>
---
 content.tex | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/content.tex b/content.tex
index 193b6e1..aef7476 100644
--- a/content.tex
+++ b/content.tex
@@ -2634,6 +2634,8 @@ \chapter{Device Types}\label{sec:Device Types}
 \hline
 24         &   Memory device \\
 \hline
+26         &   PMEM device \\
+\hline
 \end{tabular}
 
 Some of the devices above are unspecified by this document,
-- 
2.14.5


---------------------------------------------------------------------
To unsubscribe, e-mail: virtio-dev-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: virtio-dev-help@lists.oasis-open.org


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [virtio-dev] Re: [PATCH] content: reserve device ID for virtio-pmem devices
  2019-04-12  5:03 [virtio-dev] [PATCH] content: reserve device ID for virtio-pmem devices Pankaj Gupta
@ 2019-04-12  7:57 ` Cornelia Huck
  2019-04-15 13:54 ` Stefan Hajnoczi
  1 sibling, 0 replies; 10+ messages in thread
From: Cornelia Huck @ 2019-04-12  7:57 UTC (permalink / raw)
  To: Pankaj Gupta; +Cc: virtio-dev, mst, stefanha

On Fri, 12 Apr 2019 10:33:06 +0530
Pankaj Gupta <pagupta@redhat.com> wrote:

> We need a device ID for virtio-pmem devices. As 25 is  
> requested by audio device, so requesting next available(26).
> Also, updated the previously requested github issue[1] for
> voting.
> 
> [1] https://github.com/oasis-tcs/virtio-spec/issues/38
> 
> Signed-off-by: Pankaj Gupta <pagupta@redhat.com>
> ---
>  content.tex | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/content.tex b/content.tex
> index 193b6e1..aef7476 100644
> --- a/content.tex
> +++ b/content.tex
> @@ -2634,6 +2634,8 @@ \chapter{Device Types}\label{sec:Device Types}
>  \hline
>  24         &   Memory device \\
>  \hline
> +26         &   PMEM device \\
> +\hline
>  \end{tabular}
>  
>  Some of the devices above are unspecified by this document,

Reviewed-by: Cornelia Huck <cohuck@redhat.com>

---------------------------------------------------------------------
To unsubscribe, e-mail: virtio-dev-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: virtio-dev-help@lists.oasis-open.org


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [virtio-dev] Re: [PATCH] content: reserve device ID for virtio-pmem devices
  2019-04-12  5:03 [virtio-dev] [PATCH] content: reserve device ID for virtio-pmem devices Pankaj Gupta
  2019-04-12  7:57 ` [virtio-dev] " Cornelia Huck
@ 2019-04-15 13:54 ` Stefan Hajnoczi
  2019-04-18  4:39   ` Pankaj Gupta
  1 sibling, 1 reply; 10+ messages in thread
From: Stefan Hajnoczi @ 2019-04-15 13:54 UTC (permalink / raw)
  To: Pankaj Gupta; +Cc: virtio-dev, mst, cohuck

[-- Attachment #1: Type: text/plain, Size: 497 bytes --]

On Fri, Apr 12, 2019 at 10:33:06AM +0530, Pankaj Gupta wrote:
> We need a device ID for virtio-pmem devices. As 25 is  
> requested by audio device, so requesting next available(26).
> Also, updated the previously requested github issue[1] for
> voting.
> 
> [1] https://github.com/oasis-tcs/virtio-spec/issues/38
> 
> Signed-off-by: Pankaj Gupta <pagupta@redhat.com>
> ---
>  content.tex | 2 ++
>  1 file changed, 2 insertions(+)

Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 455 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [virtio-dev] Re: [PATCH] content: reserve device ID for virtio-pmem devices
  2019-04-15 13:54 ` Stefan Hajnoczi
@ 2019-04-18  4:39   ` Pankaj Gupta
  0 siblings, 0 replies; 10+ messages in thread
From: Pankaj Gupta @ 2019-04-18  4:39 UTC (permalink / raw)
  To: Stefan Hajnoczi; +Cc: virtio-dev, mst, cohuck


Hi Stefan,

Thank you for the review. 

After sending this patch I realized device ID 26 is already requested
by virtio-fs. So, I sent a v2[1] with a request to reserve id 27.
Could you please review this.

[1]
[PATCH v2] content: reserve device ID for virtio-pmem devices


Thanks,
Pankaj 

> 
> On Fri, Apr 12, 2019 at 10:33:06AM +0530, Pankaj Gupta wrote:
> > We need a device ID for virtio-pmem devices. As 25 is
> > requested by audio device, so requesting next available(26).
> > Also, updated the previously requested github issue[1] for
> > voting.
> > 
> > [1] https://github.com/oasis-tcs/virtio-spec/issues/38
> > 
> > Signed-off-by: Pankaj Gupta <pagupta@redhat.com>
> > ---
> >  content.tex | 2 ++
> >  1 file changed, 2 insertions(+)
> 
> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: virtio-dev-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: virtio-dev-help@lists.oasis-open.org


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [virtio-dev] [PATCH] content: reserve device ID for virtio-pmem devices
  2018-05-18  4:41 [virtio-dev] " Pankaj Gupta
  2018-05-22  9:42 ` Stefan Hajnoczi
@ 2019-03-15 11:00 ` Pankaj Gupta
  1 sibling, 0 replies; 10+ messages in thread
From: Pankaj Gupta @ 2019-03-15 11:00 UTC (permalink / raw)
  To: virtio-dev


ping. 

I have also opened a github issue[1] for the same.

[1] https://github.com/oasis-tcs/virtio-spec/issues/38

Thanks,
Pankaj

> 
> We need a device ID for virtio-pmem devices. As 24 is already
> requested by virtio-mem, so requesting next available(25)
> 
> Signed-off-by: Pankaj Gupta <pagupta@redhat.com>
> ---
>  content.tex | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/content.tex b/content.tex
> index 7a92cb1..ef75dc5 100644
> --- a/content.tex
> +++ b/content.tex
> @@ -2432,6 +2432,8 @@ Device ID  &  Virtio Device    \\
>  \hline
>  23         &   IOMMU device \\
>  \hline
> +25         &   PMEM device \\
> +\hline
>  \end{tabular}
>  
>  Some of the devices above are unspecified by this document,
> --
> 2.14.3
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: virtio-dev-unsubscribe@lists.oasis-open.org
> For additional commands, e-mail: virtio-dev-help@lists.oasis-open.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: virtio-dev-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: virtio-dev-help@lists.oasis-open.org


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [virtio-dev] [PATCH] content: reserve device ID for virtio-pmem devices
  2018-05-23  5:01     ` Pankaj Gupta
@ 2018-05-23 10:48       ` Stefan Hajnoczi
  0 siblings, 0 replies; 10+ messages in thread
From: Stefan Hajnoczi @ 2018-05-23 10:48 UTC (permalink / raw)
  To: Pankaj Gupta; +Cc: David Hildenbrand, virtio-dev

[-- Attachment #1: Type: text/plain, Size: 1633 bytes --]

On Wed, May 23, 2018 at 01:01:20AM -0400, Pankaj Gupta wrote:
> 
> Hi Stefan,
> 
> > >> We need a device ID for virtio-pmem devices. As 24 is already
> > >> requested by virtio-mem, so requesting next available(25)
> > >>
> > >> Signed-off-by: Pankaj Gupta <pagupta@redhat.com>
> > >> ---
> > >>  content.tex | 2 ++
> > >>  1 file changed, 2 insertions(+)
> > > 
> > > virtio-mem is designed for hotplug.  Does it make sense to merge
> > > virtio-pmem into virtio-mem since you'll need hotplug too?
> > > 
> > > Stefan
> > > 
> > Hi Stefan,
> > 
> > Initially I had (and even proposed during some discussion) the same
> > idea. But it turns out that they are fundamentally different.
> > 
> > They are memory devices, yes, but that's the point where they stop being
> > similar.
> > 
> > While virtio-pmem wants to expose a memory region as persistent memory
> > and adding a flushing interface, virtio-mem is all about managing
> > (add/remove/online/offline) sub-chunks and applying protection
> > mechanisms on the hypervisor side to make sure unplugged memory cannot
> > (or only in some limited sense) be accessed.
> 
> Yes, we discussed possibility of merging both these devices in the past.
> As rightly explained by David, both these devices solving different problems.
> Also, their architectures are different, common part is both use memory device 
> & VIRTIO.
> 
> Also, as we plan to add more features specific to each virtio{mem/pmem}, it 
> will be more confusing and difficult to maintain. I think it makes more sense to 
> keep both these devices separate. 

Okay.

Stefan

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 455 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [virtio-dev] [PATCH] content: reserve device ID for virtio-pmem devices
  2018-05-22 13:15   ` David Hildenbrand
@ 2018-05-23  5:01     ` Pankaj Gupta
  2018-05-23 10:48       ` Stefan Hajnoczi
  0 siblings, 1 reply; 10+ messages in thread
From: Pankaj Gupta @ 2018-05-23  5:01 UTC (permalink / raw)
  To: Stefan Hajnoczi, David Hildenbrand; +Cc: virtio-dev


Hi Stefan,

> >> We need a device ID for virtio-pmem devices. As 24 is already
> >> requested by virtio-mem, so requesting next available(25)
> >>
> >> Signed-off-by: Pankaj Gupta <pagupta@redhat.com>
> >> ---
> >>  content.tex | 2 ++
> >>  1 file changed, 2 insertions(+)
> > 
> > virtio-mem is designed for hotplug.  Does it make sense to merge
> > virtio-pmem into virtio-mem since you'll need hotplug too?
> > 
> > Stefan
> > 
> Hi Stefan,
> 
> Initially I had (and even proposed during some discussion) the same
> idea. But it turns out that they are fundamentally different.
> 
> They are memory devices, yes, but that's the point where they stop being
> similar.
> 
> While virtio-pmem wants to expose a memory region as persistent memory
> and adding a flushing interface, virtio-mem is all about managing
> (add/remove/online/offline) sub-chunks and applying protection
> mechanisms on the hypervisor side to make sure unplugged memory cannot
> (or only in some limited sense) be accessed.

Yes, we discussed possibility of merging both these devices in the past.
As rightly explained by David, both these devices solving different problems.
Also, their architectures are different, common part is both use memory device 
& VIRTIO.

Also, as we plan to add more features specific to each virtio{mem/pmem}, it 
will be more confusing and difficult to maintain. I think it makes more sense to 
keep both these devices separate. 

Thanks,
Pankaj


---------------------------------------------------------------------
To unsubscribe, e-mail: virtio-dev-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: virtio-dev-help@lists.oasis-open.org


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [virtio-dev] [PATCH] content: reserve device ID for virtio-pmem devices
  2018-05-22  9:42 ` Stefan Hajnoczi
@ 2018-05-22 13:15   ` David Hildenbrand
  2018-05-23  5:01     ` Pankaj Gupta
  0 siblings, 1 reply; 10+ messages in thread
From: David Hildenbrand @ 2018-05-22 13:15 UTC (permalink / raw)
  To: Stefan Hajnoczi, Pankaj Gupta; +Cc: virtio-dev

On 22.05.2018 11:42, Stefan Hajnoczi wrote:
> On Fri, May 18, 2018 at 10:11:06AM +0530, Pankaj Gupta wrote:
>> We need a device ID for virtio-pmem devices. As 24 is already 
>> requested by virtio-mem, so requesting next available(25)
>>
>> Signed-off-by: Pankaj Gupta <pagupta@redhat.com>
>> ---
>>  content.tex | 2 ++
>>  1 file changed, 2 insertions(+)
> 
> virtio-mem is designed for hotplug.  Does it make sense to merge
> virtio-pmem into virtio-mem since you'll need hotplug too?
> 
> Stefan
> 
Hi Stefan,

Initially I had (and even proposed during some discussion) the same
idea. But it turns out that they are fundamentally different.

They are memory devices, yes, but that's the point where they stop being
similar.

While virtio-pmem wants to expose a memory region as persistent memory
and adding a flushing interface, virtio-mem is all about managing
(add/remove/online/offline) sub-chunks and applying protection
mechanisms on the hypervisor side to make sure unplugged memory cannot
(or only in some limited sense) be accessed.

-- 

Thanks,

David / dhildenb

---------------------------------------------------------------------
To unsubscribe, e-mail: virtio-dev-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: virtio-dev-help@lists.oasis-open.org


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [virtio-dev] [PATCH] content: reserve device ID for virtio-pmem devices
  2018-05-18  4:41 [virtio-dev] " Pankaj Gupta
@ 2018-05-22  9:42 ` Stefan Hajnoczi
  2018-05-22 13:15   ` David Hildenbrand
  2019-03-15 11:00 ` Pankaj Gupta
  1 sibling, 1 reply; 10+ messages in thread
From: Stefan Hajnoczi @ 2018-05-22  9:42 UTC (permalink / raw)
  To: Pankaj Gupta; +Cc: virtio-dev

[-- Attachment #1: Type: text/plain, Size: 450 bytes --]

On Fri, May 18, 2018 at 10:11:06AM +0530, Pankaj Gupta wrote:
> We need a device ID for virtio-pmem devices. As 24 is already 
> requested by virtio-mem, so requesting next available(25)
> 
> Signed-off-by: Pankaj Gupta <pagupta@redhat.com>
> ---
>  content.tex | 2 ++
>  1 file changed, 2 insertions(+)

virtio-mem is designed for hotplug.  Does it make sense to merge
virtio-pmem into virtio-mem since you'll need hotplug too?

Stefan

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 455 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [virtio-dev] [PATCH] content: reserve device ID for virtio-pmem devices
@ 2018-05-18  4:41 Pankaj Gupta
  2018-05-22  9:42 ` Stefan Hajnoczi
  2019-03-15 11:00 ` Pankaj Gupta
  0 siblings, 2 replies; 10+ messages in thread
From: Pankaj Gupta @ 2018-05-18  4:41 UTC (permalink / raw)
  To: virtio-dev

We need a device ID for virtio-pmem devices. As 24 is already 
requested by virtio-mem, so requesting next available(25)

Signed-off-by: Pankaj Gupta <pagupta@redhat.com>
---
 content.tex | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/content.tex b/content.tex
index 7a92cb1..ef75dc5 100644
--- a/content.tex
+++ b/content.tex
@@ -2432,6 +2432,8 @@ Device ID  &  Virtio Device    \\
 \hline
 23         &   IOMMU device \\
 \hline
+25         &   PMEM device \\
+\hline
 \end{tabular}
 
 Some of the devices above are unspecified by this document,
-- 
2.14.3


---------------------------------------------------------------------
To unsubscribe, e-mail: virtio-dev-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: virtio-dev-help@lists.oasis-open.org


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2019-04-18  4:39 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-12  5:03 [virtio-dev] [PATCH] content: reserve device ID for virtio-pmem devices Pankaj Gupta
2019-04-12  7:57 ` [virtio-dev] " Cornelia Huck
2019-04-15 13:54 ` Stefan Hajnoczi
2019-04-18  4:39   ` Pankaj Gupta
  -- strict thread matches above, loose matches on Subject: below --
2018-05-18  4:41 [virtio-dev] " Pankaj Gupta
2018-05-22  9:42 ` Stefan Hajnoczi
2018-05-22 13:15   ` David Hildenbrand
2018-05-23  5:01     ` Pankaj Gupta
2018-05-23 10:48       ` Stefan Hajnoczi
2019-03-15 11:00 ` Pankaj Gupta

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.