Skip to content

Conversation

@TasmiyaNalatwad
Copy link

@TasmiyaNalatwad TasmiyaNalatwad commented Dec 2, 2025

The fix is provided to settle with maxmemory value changes after performing hotplug operation when hugepages are included.

When you add a memory device (model="dimm"), libvirt ensures the max memory is aligned to memory block size (usually 64 MiB or 128 MiB). This is normal behavior for hotplug support.

I have hugepages assigned with 2048kib in the test and test fails when validating max_memory value before and after hotplug operation was performed. The max_memory value had changed after hotplug and the test was failing. After analyses i found that max_memory value got increased by 64Mib to align to memory block size. This is because hotplugging a memory DIMM changes the VM’s runtime maximum memory, and libvirt automatically adjusts internally.

…orming hotplug operation when hugepages are included.

When you add a memory device (model="dimm"), libvirt ensures the max memory is aligned to memory block size (usually 64 MiB or 128 MiB). This is normal behavior for hotplug support.

I have hugepages assigned with 2048kib in the test and test fails when validating max_memory value before and after hotplug operation was performed. The max_memory value had changed after hotplug and the test was failing. After analyses i found that max_memory value got increased by 64Mib to align to memory block size. This is because hotplugging a memory DIMM changes the VM’s runtime maximum memory, and libvirt automatically adjusts <maxMemory> internally.

Signed-off-by: Tasmiya Nalatwad <Tasmiya.Nalatwad@ibm.com>
@TasmiyaNalatwad
Copy link
Author

Ref : autotest#6695

@TasmiyaNalatwad TasmiyaNalatwad changed the title The fix is provided to settle with maxmemory value changes after perf… The fix is provided to settle with maxmemory value changes after performing hotplug operation when hugepages are included. Dec 2, 2025
@TasmiyaNalatwad
Copy link
Author

Ref : autotest#6695

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant