Skip to contentSkip to conversation

content: reserve device ID for virtio-pmem devices

PATCH In review Pankaj Gupta 3 participants 6 messages May 18, 2018 – Mar 15, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 content: reserve device ID for virtio-pmem devices

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

---
 content.tex | 2 ++
 1 file changed, 2 insertions(+)
content.tex +2 -0
index 7a92cb1..ef75dc5 100644
@@ -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,
Signature · 6 lines
2.14.3


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
#1 lore raw
Quoted 7 lines · Pankaj Gupta

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

---
 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

#2 lore raw
Quoted 9 lines · Stefan Hajnoczi
Quoted 7 lines · Pankaj Gupta

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

---
 content.tex | 2 ++
 1 file changed, 2 insertions(+)
Quoted 5 lines

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.

Signature · 7 lines
Thanks,

David / dhildenb

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
#3 lore raw

Hi Stefan,

Quoted 18 lines
Quoted 8 lines
Quoted 7 lines

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

---
 content.tex | 2 ++
 1 file changed, 2 insertions(+)
Quoted 5 lines

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.

Quoted 8 lines

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: [email protected] For additional commands, e-mail: [email protected]

#4 lore raw
Quoted 30 lines · Pankaj Gupta

Hi Stefan,

Quoted 18 lines
Quoted 8 lines
Quoted 7 lines

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

---
 content.tex | 2 ++
 1 file changed, 2 insertions(+)
Quoted 5 lines

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.

Quoted 8 lines

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.

Quoted 8 lines

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

#5 lore raw
In reply to Pankaj Gupta

ping.

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

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

Thanks,
Pankaj

Quoted 26 lines

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

---
 content.tex | 2 ++
 1 file changed, 2 insertions(+)
content.tex +2 -1
index 7a92cb1..ef75dc5 100644
@@ -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

Quoted 5 lines

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]