Commit d30d9ee
KVM: x86: Only advertise KVM_CAP_READONLY_MEM when supported by VM
Until recently, KVM_CAP_READONLY_MEM was unconditionally supported on
x86, but this is no longer the case for SEV-ES and SEV-SNP VMs.
When KVM_CHECK_EXTENSION is invoked on a VM, only advertise
KVM_CAP_READONLY_MEM when it's actually supported.
Fixes: 66155de ("KVM: x86: Disallow read-only memslots for SEV-ES and SEV-SNP (and TDX)")
Cc: Sean Christopherson <seanjc@google.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Michael Roth <michael.roth@amd.com>
Signed-off-by: Tom Dohrmann <erbse.13@gmx.de>
Message-ID: <20240902144219.3716974-1-erbse.13@gmx.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>1 parent 1ae9959 commit d30d9ee
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4656 | 4656 | | |
4657 | 4657 | | |
4658 | 4658 | | |
4659 | | - | |
4660 | 4659 | | |
4661 | 4660 | | |
4662 | 4661 | | |
| |||
4815 | 4814 | | |
4816 | 4815 | | |
4817 | 4816 | | |
| 4817 | + | |
| 4818 | + | |
4818 | 4819 | | |
4819 | 4820 | | |
4820 | 4821 | | |
| |||
0 commit comments