From: Paolo Bonzini Subject: Re: [kvm-unit-tests PATCH 4/4] lib/x86/vm: enable malloc and friends Date: Tue, 1 Nov 2016 15:48:54 +0100 Message-ID: References: <1477939906-28802-1-git-send-email-drjones@redhat.com> <1477939906-28802-5-git-send-email-drjones@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: lvivier@redhat.com, thuth@redhat.com To: Andrew Jones , kvm@vger.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:59654 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1033997AbcKAOs6 (ORCPT ); Tue, 1 Nov 2016 10:48:58 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 6F01D4AEAF for ; Tue, 1 Nov 2016 14:48:58 +0000 (UTC) In-Reply-To: <1477939906-28802-5-git-send-email-drjones@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On 31/10/2016 19:51, Andrew Jones wrote: > We've had malloc, calloc, free, and memalign available for quite a > while, and arm and powerpc make use of them. x86 hasn't yet, but > let's give it the option. arm and powerpc use the early_alloc_ops, > built on phys_alloc, but x86 already has virtual memory management, > so we can build on that instead. What are your plans for using them? vmalloc imposes a pretty large alignment and is quite different from early_alloc_ops, so I'm not sure it's a good idea to conflate the two into the same high-level API. Thanks, Paolo