Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
accel/kvm: check for KVM_CAP_READONLY_MEM on VM
KVM_CAP_READONLY_MEM used to be a global capability, but with the introduction of AMD SEV-SNP confidential VMs, this extension is not always available on all VM types [1,2]. Query the extension on the VM level instead of on the KVM level. [1] https://patchwork.kernel.org/project/kvm/patch/[email protected]/ [2] https://patchwork.kernel.org/project/kvm/patch/[email protected]/ Cc: Paolo Bonzini <[email protected]> Signed-off-by: Tom Dohrmann <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Paolo Bonzini <[email protected]> Reviewed-by: Pankaj Gupta <[email protected]>
- Loading branch information