Thread (85 messages) 85 messages, 15 authors, 2023-09-06

Re: [RFC PATCH v11 13/29] KVM: Add transparent hugepage support for dedicated guest memory

From: Paolo Bonzini <pbonzini@redhat.com>
Date: 2023-07-21 15:08:40
Also in: kvm, kvm-riscv, kvmarm, linux-fsdevel, linux-mips, linux-mm, linux-riscv, linux-security-module, linuxppc-dev, lkml

On 7/19/23 01:44, Sean Christopherson wrote:
quoted hunk ↗ jump to hunk
  
@@ -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


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help