commit | 60de433d4cb17211dbea5c1e6b74d476dec16370 | [log] [tgz] |
---|---|---|
author | Paolo Bonzini <pbonzini@redhat.com> | Fri Oct 11 10:39:58 2024 +0200 |
committer | Paolo Bonzini <pbonzini@redhat.com> | Thu Oct 17 19:41:30 2024 +0200 |
tree | 28312f85103f2291a18c414631d61a298c50b654 | |
parent | 64e0e63ea16aa0122dc0c41a0679da0ae4616208 [diff] |
accel/kvm: check for KVM_CAP_MULTI_ADDRESS_SPACE on vm KVM_CAP_MULTI_ADDRESS_SPACE used to be a global capability, but with the introduction of AMD SEV-SNP confidential VMs, the number of address spaces can vary by VM type. Query the extension on the VM level instead of on the KVM level. Inspired by an analogous patch by Tom Dohrmann. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>