On 7/18/2025 12:27 AM, Fuad Tabba wrote:
-/* SMM is currently unsupported for guests with private memory. */ +/* SMM is currently unsupported for guests with guest_memfd private memory. */ # define kvm_arch_nr_memslot_as_ids(kvm) (kvm_arch_has_private_mem(kvm) ? 1 : 2)
As I commented in the v14, please don't change the comment.It is checking kvm_arch_has_private_mem(), *not* kvm_arch_supports_gmem(). So why bother mentioning guest_memfd here?