Re: [PATCH v3 14/16] virtio-mem: Expose device memory via multiple memslots if enabled

2023-09-19 Thread David Hildenbrand
On 17.09.23 13:47, Maciej S. Szmigiero wrote: On 8.09.2023 16:21, David Hildenbrand wrote: Having large virtio-mem devices that only expose little memory to a VM is currently a problem: we map the whole sparse memory region into the guest using a single memslot, resulting in one gigantic memslot

Re: [PATCH v3 14/16] virtio-mem: Expose device memory via multiple memslots if enabled

2023-09-17 Thread Maciej S. Szmigiero
On 8.09.2023 16:21, David Hildenbrand wrote: Having large virtio-mem devices that only expose little memory to a VM is currently a problem: we map the whole sparse memory region into the guest using a single memslot, resulting in one gigantic memslot in KVM. KVM allocates metadata for the whole m

[PATCH v3 14/16] virtio-mem: Expose device memory via multiple memslots if enabled

2023-09-08 Thread David Hildenbrand
Having large virtio-mem devices that only expose little memory to a VM is currently a problem: we map the whole sparse memory region into the guest using a single memslot, resulting in one gigantic memslot in KVM. KVM allocates metadata for the whole memslot, which can result in quite some memory w