From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Jones Subject: [kvm-unit-tests PATCH v2 0/6] x86: enable malloc and friends Date: Wed, 2 Nov 2016 21:52:40 +0100 Message-ID: <1478119966-13252-1-git-send-email-drjones@redhat.com> Cc: pbonzini@redhat.com, lvivier@redhat.com, thuth@redhat.com To: kvm@vger.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:56950 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756401AbcKBUwu (ORCPT ); Wed, 2 Nov 2016 16:52:50 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (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 529C88FCF4 for ; Wed, 2 Nov 2016 20:52:50 +0000 (UTC) Sender: kvm-owner@vger.kernel.org List-ID: And do some other alloc related things too... v2: - introduced alloc_zeroed_page [Paolo] - kept spinlocks in phys_alloc_init [Thomas] - added more improvements to alloc/free_page, e.g locks [drew] - force phys_alloc alignment to be set once [drew] - new patch that renames alloc.c's state [drew] - fix vmalloc-based memalign v1 bug. Didn't consider size offset [drew] - added huge commit message for "lib/x86/vm: enable malloc and friends" to try to justify it [drew] Didn't take Thomas' r-b for "move heap management to lib", because it changed too much. Andrew Jones (6): lib/x86/vm: collection of improvements lib/alloc: improve init lib/alloc: prepare to extend alloc.c's purpose x86: lib/alloc: move heap management to lib x86: lib/alloc: introduce alloc_zeroed_page lib/x86/vm: enable malloc and friends lib/alloc.c | 160 +++++++++++++++++++++++++++++++++++++--------------- lib/alloc.h | 18 +++++- lib/arm/setup.c | 2 +- lib/powerpc/setup.c | 2 +- lib/x86/asm/page.h | 2 + lib/x86/vm.c | 105 ++++++++++++++++++++-------------- lib/x86/vm.h | 2 +- x86/Makefile.common | 1 + x86/vmx.c | 19 +++---- x86/vmx_tests.c | 28 ++++----- 10 files changed, 217 insertions(+), 122 deletions(-) -- 2.7.4