lkml.org 
[lkml]   [2023]   [Jul]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [RFC PATCH v11 13/29] KVM: Add transparent hugepage support for dedicated guest memory
From
On 7/19/23 01:44, Sean Christopherson wrote:
>
> @@ -413,6 +454,9 @@ int kvm_gmem_create(struct kvm *kvm, struct kvm_create_guest_memfd *args)
> u64 flags = args->flags;
> u64 valid_flags = 0;
>
> + if (IS_ENABLED(CONFIG_TRANSPARENT_HUGEPAGE))
> + valid_flags |= KVM_GUEST_MEMFD_ALLOW_HUGEPAGE;
> +

I think it should be always allowed. The outcome would just be "never
have a hugepage" if thp is not enabled in the kernel.

Paolo

\
 
 \ /
  Last update: 2023-07-21 17:10    [W:0.633 / U:23.480 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site