Skip to contentSkip to conversation

drivers/virtio: Enable virtio mem for ARM64

PATCH Superseded Gavin Shan 2 participants 4 messages Jan 18, 2022 – Jan 19, 2022 virtio core

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Gavin Shan

author
#0 lore raw

PATCH v2 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.

---
v2: Improved the comments about the kernel config option (David)

---
 drivers/virtio/Kconfig | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
drivers/virtio/Kconfig +4 -3
index 34f80b7a8a64..74c8b0c7bc33 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
@@ -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 · 6 lines
2.23.0

_______________________________________________
Virtualization mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/virtualization
author
#1 lore raw
Quoted 11 lines · Gavin Shan

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

---
v2: Improved the comments about the kernel config option (David)

---
  drivers/virtio/Kconfig | 7 ++++---
  1 file changed, 4 insertions(+), 3 deletions(-)

My git-sendemail should have been broken. A list of receivers are dropped automatically though they were explicitly specified, but [email protected] was missed to be copied. Fixing all of them through thunderbird :)

Thanks,
Gavin

Quoted 17 lines
drivers/virtio/Kconfig +1 -1
index 34f80b7a8a64..74c8b0c7bc33 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
@@ -116,8 +116,9 @@ config VIRTIO_MEM
  	 This driver provides access to virtio-mem paravirtualized memory

drivers/virtio/Kconfig config VIRTIO_MEM · line 124

Quoted 10 lines
drivers/virtio/Kconfig +3 -2
  	 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.
 

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

#2 lore raw
Quoted 13 lines · Gavin Shan
Quoted 11 lines · Gavin Shan

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

---
v2: Improved the comments about the kernel config option (David)

---
  drivers/virtio/Kconfig | 7 ++++---
  1 file changed, 4 insertions(+), 3 deletions(-)
Quoted 7 lines

My git-sendemail should have been broken. A list of receivers are dropped automatically though they were explicitly specified, but [email protected] was missed to be copied. Fixing all of them through thunderbird :)

Thanks,
Gavin

Pls bounce the original patch to me so I can queue it.

Quoted 15 lines
Quoted 15 lines
drivers/virtio/Kconfig +1 -1
index 34f80b7a8a64..74c8b0c7bc33 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
@@ -116,8 +116,9 @@ config VIRTIO_MEM
  	 This driver provides access to virtio-mem paravirtualized memory
Quoted 8 lines

drivers/virtio/Kconfig config VIRTIO_MEM · line 124

Quoted 8 lines
drivers/virtio/Kconfig +3 -2
  	 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.
 

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

author
#3 lore raw
Quoted 19 lines · Michael S. Tsirkin
Quoted 18 lines · Gavin Shan
Quoted 11 lines · Gavin Shan

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

---
v2: Improved the comments about the kernel config option (David)

---
   drivers/virtio/Kconfig | 7 ++++---
   1 file changed, 4 insertions(+), 3 deletions(-)

My git-sendemail should have been broken. A list of receivers are dropped automatically though they were explicitly specified, but [email protected] was missed to be copied. Fixing all of them through thunderbird :)

Quoted 5 lines
Quoted 2 lines

Thanks,
Gavin

Pls bounce the original patch to me so I can queue it.

Yes, Please merge the following one, which was just posted. The ack-by tags from Jonathan and you are also added to v3.

[PATCH v3] drivers/virtio: Enable virtio mem for ARM64

Thanks,
Gavin

Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
drivers/virtio/Kconfig +1 -1
index 34f80b7a8a64..74c8b0c7bc33 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
@@ -116,8 +116,9 @@ config VIRTIO_MEM
   	 This driver provides access to virtio-mem paravirtualized memory
Quoted 9 lines
Quoted 8 lines

drivers/virtio/Kconfig config VIRTIO_MEM · line 124

Quoted 8 lines
drivers/virtio/Kconfig +3 -2
   	 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.
 

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