Skip to contentSkip to conversation

drivers/virtio: Enable virtio mem for ARM64

PATCH Superseded Gavin Shan 3 participants 6 messages Jan 18, 2022 1 message not in the archive virtio core

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Gavin Shan

author
#0 lore raw

PATCH 1/1 drivers/virtio: Enable virtio mem for ARM64

This enables virtio-mem device support by allowing to enable the corresponding kernel config option (CONFIG_VIRTIO_MEM) on the architecture.

---
 drivers/virtio/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/virtio/Kconfig +1 -1
index 34f80b7a8a64..bf3f6ebdaa3b 100644
@@ -106,7 +106,7 @@ config VIRTIO_BALLOON
 config VIRTIO_MEM
 	tristate "Virtio mem driver"
 	default m
-	depends on X86_64
+	depends on X86_64 || ARM64
 	depends on VIRTIO
 	depends on MEMORY_HOTPLUG
 	depends on MEMORY_HOTREMOVE
Signature · 6 lines
2.23.0

_______________________________________________
Virtualization mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/virtualization
Acked-by on v1 1/1
#1 lore raw
Quoted 14 lines · Gavin Shan

This enables virtio-mem device support by allowing to enable the corresponding kernel config option (CONFIG_VIRTIO_MEM) on the architecture.

---
 drivers/virtio/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/virtio/Kconfig +0 -0
index 34f80b7a8a64..bf3f6ebdaa3b 100644

drivers/virtio/Kconfig config VIRTIO_BALLOON · line 112

Quoted 8 lines
drivers/virtio/Kconfig +1 -1
@@ -106,7 +106,7 @@ config VIRTIO_BALLOON
 config VIRTIO_MEM
 	tristate "Virtio mem driver"
 	default m
-	depends on X86_64
+	depends on X86_64 || ARM64
 	depends on VIRTIO
 	depends on MEMORY_HOTPLUG
 	depends on MEMORY_HOTREMOVE

With MEMBLOCK_DRIVER_MANAGED in place upstream, kexec should be fine.

Can you adjust/rephrase the comment as well? Like

drivers/virtio/Kconfig +3 -2
index 34f80b7a8a64..88028ca01c8f 100644
@@ -116,8 +116,9 @@ config VIRTIO_MEM
         This driver provides access to virtio-mem paravirtualized memory
         devices, allowing to hotplug and hotunplug memory.
 
-        This driver was only tested under x86-64, but should theoretically
-        work on all architectures that support memory hotplug and hotremove.
+        This driver was only tested under x86-64 and arm64, but should
+        theoretically work on all architectures that support memory hotplug and
+        hotremove.
 
         If unsure, say M.
 
Signature · 8 lines
Thanks,

David / dhildenb

_______________________________________________
Virtualization mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/virtualization
author
#2 lore raw
Quoted 47 lines · David Hildenbrand
Quoted 14 lines · Gavin Shan

This enables virtio-mem device support by allowing to enable the corresponding kernel config option (CONFIG_VIRTIO_MEM) on the architecture.

---
  drivers/virtio/Kconfig | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/virtio/Kconfig +0 -0
index 34f80b7a8a64..bf3f6ebdaa3b 100644

drivers/virtio/Kconfig config VIRTIO_BALLOON · line 112

Quoted 8 lines
drivers/virtio/Kconfig +1 -1
@@ -106,7 +106,7 @@ config VIRTIO_BALLOON
  config VIRTIO_MEM
  	tristate "Virtio mem driver"
  	default m
-	depends on X86_64
+	depends on X86_64 || ARM64
  	depends on VIRTIO
  	depends on MEMORY_HOTPLUG
  	depends on MEMORY_HOTREMOVE

With MEMBLOCK_DRIVER_MANAGED in place upstream, kexec should be fine.

Can you adjust/rephrase the comment as well? Like

drivers/virtio/Kconfig +3 -2
index 34f80b7a8a64..88028ca01c8f 100644
@@ -116,8 +116,9 @@ config VIRTIO_MEM
          This driver provides access to virtio-mem paravirtualized memory
          devices, allowing to hotplug and hotunplug memory.
 
-        This driver was only tested under x86-64, but should theoretically
-        work on all architectures that support memory hotplug and hotremove.
+        This driver was only tested under x86-64 and arm64, but should
+        theoretically work on all architectures that support memory hotplug and
+        hotremove.
 
          If unsure, say M.
 
Quoted 2 lines

Yup, It was obviously missed from the original patch. v2 will include the changes.

Thanks,
Gavin

_______________________________________________
Virtualization mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/virtualization

author
#4 lore raw
In reply to a message not in the archive
Quoted 5 lines · Jonathan Cameron
Quoted 2 lines · On Tue, 18 Jan 2022 16:42:55 +0800 Gavin Shan <[email protected]> wrote:
Quoted 1 line · David Hildenbrand

On 18.01.22 02:34, Gavin Shan wrote:

Quoted 9 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

This enables virtio-mem device support by allowing to enable the corresponding kernel config option (CONFIG_VIRTIO_MEM) on the architecture.

Probably wroth a +CC for [email protected] so a wider crowd have visibility.

Yes, but v2 was posted. Let me reply to v2 to include [email protected].

Thanks,
Gavin

Quoted 41 lines
Quoted 41 lines
Quoted 41 lines
Quoted 9 lines
---
   drivers/virtio/Kconfig | 2 +-
   1 file changed, 1 insertion(+), 1 deletion(-)
drivers/virtio/Kconfig +0 -0
index 34f80b7a8a64..bf3f6ebdaa3b 100644

drivers/virtio/Kconfig config VIRTIO_BALLOON · line 112

Quoted 8 lines
drivers/virtio/Kconfig +1 -1
@@ -106,7 +106,7 @@ config VIRTIO_BALLOON
   config VIRTIO_MEM
   	tristate "Virtio mem driver"
   	default m
-	depends on X86_64
+	depends on X86_64 || ARM64
   	depends on VIRTIO
   	depends on MEMORY_HOTPLUG
   	depends on MEMORY_HOTREMOVE

With MEMBLOCK_DRIVER_MANAGED in place upstream, kexec should be fine.

Can you adjust/rephrase the comment as well? Like

drivers/virtio/Kconfig +3 -2
index 34f80b7a8a64..88028ca01c8f 100644
@@ -116,8 +116,9 @@ config VIRTIO_MEM
           This driver provides access to virtio-mem paravirtualized memory
           devices, allowing to hotplug and hotunplug memory.
 
-        This driver was only tested under x86-64, but should theoretically
-        work on all architectures that support memory hotplug and hotremove.
+        This driver was only tested under x86-64 and arm64, but should
+        theoretically work on all architectures that support memory hotplug and
+        hotremove.
 
           If unsure, say M.
 
Quoted 9 lines
Quoted 8 lines
Quoted 2 lines

Yup, It was obviously missed from the original patch. v2 will include the changes.

Thanks,
Gavin

_______________________________________________
Virtualization mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/virtualization

maintainer Acked-by
#5 lore raw
In reply to David Hildenbrand
Quoted 47 lines · David Hildenbrand
Quoted 14 lines · Gavin Shan

This enables virtio-mem device support by allowing to enable the corresponding kernel config option (CONFIG_VIRTIO_MEM) on the architecture.

---
 drivers/virtio/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/virtio/Kconfig +0 -0
index 34f80b7a8a64..bf3f6ebdaa3b 100644

drivers/virtio/Kconfig config VIRTIO_BALLOON · line 112

Quoted 8 lines
drivers/virtio/Kconfig +1 -1
@@ -106,7 +106,7 @@ config VIRTIO_BALLOON
 config VIRTIO_MEM
 	tristate "Virtio mem driver"
 	default m
-	depends on X86_64
+	depends on X86_64 || ARM64
 	depends on VIRTIO
 	depends on MEMORY_HOTPLUG
 	depends on MEMORY_HOTREMOVE

With MEMBLOCK_DRIVER_MANAGED in place upstream, kexec should be fine.

Can you adjust/rephrase the comment as well? Like

drivers/virtio/Kconfig +3 -2
index 34f80b7a8a64..88028ca01c8f 100644
@@ -116,8 +116,9 @@ config VIRTIO_MEM
         This driver provides access to virtio-mem paravirtualized memory
         devices, allowing to hotplug and hotunplug memory.
 
-        This driver was only tested under x86-64, but should theoretically
-        work on all architectures that support memory hotplug and hotremove.
+        This driver was only tested under x86-64 and arm64, but should
+        theoretically work on all architectures that support memory hotplug and
+        hotremove.
 
         If unsure, say M.
 
Quoted 1 line

with this:

I guess I will merge this? It's a small change so - let's go for this release straight away?

Quoted 4 lines
Signature · 3 lines
Thanks,

David / dhildenb

_______________________________________________
Virtualization mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/virtualization

#6 lore raw
Quoted 48 lines · Michael S. Tsirkin
Quoted 47 lines · David Hildenbrand
Quoted 14 lines · Gavin Shan

This enables virtio-mem device support by allowing to enable the corresponding kernel config option (CONFIG_VIRTIO_MEM) on the architecture.

---
 drivers/virtio/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/virtio/Kconfig +0 -0
index 34f80b7a8a64..bf3f6ebdaa3b 100644

drivers/virtio/Kconfig config VIRTIO_BALLOON · line 112

Quoted 8 lines
drivers/virtio/Kconfig +1 -1
@@ -106,7 +106,7 @@ config VIRTIO_BALLOON
 config VIRTIO_MEM
 	tristate "Virtio mem driver"
 	default m
-	depends on X86_64
+	depends on X86_64 || ARM64
 	depends on VIRTIO
 	depends on MEMORY_HOTPLUG
 	depends on MEMORY_HOTREMOVE

With MEMBLOCK_DRIVER_MANAGED in place upstream, kexec should be fine.

Can you adjust/rephrase the comment as well? Like

drivers/virtio/Kconfig +3 -2
index 34f80b7a8a64..88028ca01c8f 100644
@@ -116,8 +116,9 @@ config VIRTIO_MEM
         This driver provides access to virtio-mem paravirtualized memory
         devices, allowing to hotplug and hotunplug memory.
 
-        This driver was only tested under x86-64, but should theoretically
-        work on all architectures that support memory hotplug and hotremove.
+        This driver was only tested under x86-64 and arm64, but should
+        theoretically work on all architectures that support memory hotplug and
+        hotremove.
 
         If unsure, say M.
 
Quoted 7 lines
Quoted 1 line

with this:

I guess I will merge this? It's a small change so - let's go for this release straight away?

Yes, no need to wait for the next cycle.

Signature · 8 lines
Thanks,

David / dhildenb

_______________________________________________
Virtualization mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/virtualization