Skip to content

virtio-mem: prepare for granularity smaller than MAX_ORDER - 1

David Hildenbrand linux-mm lkml virtualization 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2virtio-mem: prepare page onlining code for granularity smaller than MAX_ORDER - 1drivers/virtio/virtio_mem.c+62 -241 reply
2/2virtio-mem: prepare fake page onlining code for granularity smaller than MAX_ORDER - 1drivers/virtio/virtio_mem.c+13 -132 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchEric Ren
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH v1 0/2] virtio-mem: prepare for granularity smaller than MAX_ORDER - 1

The virtio-mem driver currently supports logical hot(un)plug in MAX_ORDER - 1 granularity (4MiB on x86-64) or bigger. We want to support pageblock granularity (2MiB on x86-64), to make hot(un)plug even more flexible, and to improve hotunplug when using ZONE_NORMAL.

With pageblock granularity, we then have a granularity comparable to hugepage ballooning. Further, there are ideas to increase MAX_ORDER, so we really want to decouple it from MAX_ORDER.

While ZONE_MOVABLE should mostly work already, alloc_contig_range() still needs work to be able to properly handle pageblock granularity on ZONE_NORMAL. This support is in the works [1], so let's prepare virtio-mem for supporting smaller granularity than MAX_ORDER - 1.

Tested with ZONE_MOVABLE after removing the MAX_ORDER - 1 granularity limitation in virtio-mem, and using different device block sizes (2MiB, 4MiB, 8MiB).

[1] https://lkml.kernel.org/r/[email protected]

Cc "Michael S. Tsirkin" <[email protected]>
Cc Jason Wang <[email protected]>
Cc Zi Yan <[email protected]>
Cc Gavin Shan <[email protected]>
Cc Hui Zhu <[email protected]>
Cc Eric Ren <[email protected]>
Cc Sebastien Boeuf <[email protected]>
Cc Pankaj Gupta <[email protected]>
Cc Wei Yang <[email protected]>

David Hildenbrand (2):
virtio-mem: prepare page onlining code for granularity smaller than
MAX_ORDER - 1
virtio-mem: prepare fake page onlining code for granularity smaller
than MAX_ORDER - 1

 drivers/virtio/virtio_mem.c | 110 ++++++++++++++++++++++++------------
 1 file changed, 74 insertions(+), 36 deletions(-)
Signature · 6 lines
2.31.1

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