Re: [PATCH] accel/kvm: check for KVM_CAP_MEMORY_ATTRIBUTES on vm

2024-10-11 Thread Gupta, Pankaj
On 10/11/2024 10:59 AM, Paolo Bonzini wrote: The exact set of available memory attributes can vary by VM. In the future it might vary depending on enabled capabilities, too. Query the extension on the VM level instead of on the KVM level, and only after architecture-specific initialization. In

[PATCH] accel/kvm: check for KVM_CAP_MEMORY_ATTRIBUTES on vm

2024-10-11 Thread Paolo Bonzini
The exact set of available memory attributes can vary by VM. In the future it might vary depending on enabled capabilities, too. Query the extension on the VM level instead of on the KVM level, and only after architecture-specific initialization. Inspired by an analogous patch by Tom Dohrmann.