Skip to contentSkip to conversation

KVM_SET_USER_MEMORY_REGION after VM has booted?

virtio-dev Srivatsa Vaddagiri 2 participants 3 messages Oct 14, 2022

lore
Share & tools
lore
#0 lore raw

I have been checking in what scenario we may see KVM_SET_USER_MEMORY_REGION being invoked to modify memory mapping (add or remove region of memory from VM) *after* VM has booted. Memory hotplug may be one? Any other scenario?

Thanks
vatsa

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

#1 lore raw
Quoted 3 lines · Srivatsa Vaddagiri

I have been checking in what scenario we may see KVM_SET_USER_MEMORY_REGION being invoked to modify memory mapping (add or remove region of memory from VM) *after* VM has booted. Memory hotplug may be one? Any other scenario?

I think virtio-fs (DAX) could be another example?

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

#2 lore raw
In reply to Srivatsa Vaddagiri
Quoted 3 lines · Srivatsa Vaddagiri

I have been checking in what scenario we may see KVM_SET_USER_MEMORY_REGION being invoked to modify memory mapping (add or remove region of memory from VM) *after* VM has booted. Memory hotplug may be one? Any other scenario?

Turning ROM BARs on and off, and PCI hotplug of passthrough devices (because BARs are backed by host physical addresses).

Paolo

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]