From patchwork Sat Oct 20 21:11:58 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marc Orr X-Patchwork-Id: 10650597 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 960B5109C for ; Sat, 20 Oct 2018 21:12:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 84241286BF for ; Sat, 20 Oct 2018 21:12:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 75E09286C6; Sat, 20 Oct 2018 21:12:48 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI, USER_IN_DEF_DKIM_WL autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 20655286BF for ; Sat, 20 Oct 2018 21:12:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726819AbeJUFYc (ORCPT ); Sun, 21 Oct 2018 01:24:32 -0400 Received: from mail-vk1-f202.google.com ([209.85.221.202]:46719 "EHLO mail-vk1-f202.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726618AbeJUFYb (ORCPT ); Sun, 21 Oct 2018 01:24:31 -0400 Received: by mail-vk1-f202.google.com with SMTP id b192so3938951vkf.13 for ; Sat, 20 Oct 2018 14:12:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:message-id:mime-version:subject:from:to:cc; bh=jDuhUSnD0luqPzBsIcx7Xd6pektBXlwLjuszzLYl66g=; b=D6tRe1Gb1s9u1hc+41T5ET+4q+klC5P8LHpTSp4Vfb4Y06vz/E7SwUC47M/tZFtcLC SR6AhASqPBF7EPCukhcygl24HFPN5Srb4Y6dEFbCHv7+qKOWRJE6EeZKX0hQ1f3Ts9Qx PtwqBLJszrWPZa6v+BlbOTalqXiQyY2lREqLE746b+gydSy3poCZ1JsLVKIiKsqTj1pX ScyJNf9mqiF4Wa5U10iLp8cVzzq365JZx+MdDEbol+myV943uXmMpi+N/pb95ZzAhOva pzNcLFdXLaXw/si6Qp9FJFpTsiEbT7ASbuWpgHxPH6iMPaWpvQbrhxc3Vknj8YwMVzb6 D9Ag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc; bh=jDuhUSnD0luqPzBsIcx7Xd6pektBXlwLjuszzLYl66g=; b=XwJD1P6aZWci/0zpNg5qDmlP/gbI1JClSJLh3qJf1ZjgG9rKjH5B8z74K8rsPqMR1b vYnWev5VYUsYIqwx8XD8/WHdSn6Bpb/Ae3mIXSEtShRIMg1276Y7aCehtXQsMiXEG+4n 5dE+73dA+9PczGi4EMUFlxL3FCIClgToouda10vxBH9Mv3jC0Th+Gy6j900/xwMlPMLe LwamPyMb0DkkMBxi2CljDtEuIm1ujazXRq4xAUvM8vYn0DfkCqfx2F6rQCFXe9jkS9me ab6j3uEYnqJxXW1kO13GeLvwU02prt+I2kyVVZYssII8xPMnVCzeClJrcKr3yMoP1/qi mqFA== X-Gm-Message-State: ABuFfogRsrKXoaM1dc6s1xhEBNKKZHoNvcnFIu4dJOezlXNzCE7h/LL8 zxwf8MI0o44Weh+5dMvKA4d6j/WX1tZQ6VJkAyaURtZECahS7Jz4G+Emb+RDVZg9kGmnqYqFO5E fLMvWnYtrVwoJBHPj9LkSme7zRn4ztStVEZNS1NxH1T87KRUJPyuHuOZ6Vkvv X-Google-Smtp-Source: ACcGV61VM4o7m0ckCXjE5DFD2wE+tNq6vz/AFwZdkTFSlsqhZI8ELf5xeRyPYBD1yz+2RaJK3+Aepk2RG2wC X-Received: by 2002:a1f:5ed3:: with SMTP id s202mr36163781vkb.15.1540069965055; Sat, 20 Oct 2018 14:12:45 -0700 (PDT) Date: Sat, 20 Oct 2018 14:11:58 -0700 Message-Id: <20181020211200.255171-1-marcorr@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.19.1.568.g152ad8e336-goog Subject: [kvm PATCH 0/2] kvm: vmalloc vmx vcpus From: Marc Orr To: kvm@vger.kernel.org, jmattson@google.com, rientjes@google.com Cc: Marc Orr Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Patch series to allocate vmx vcpus with vmalloc() instead of kalloc(). This enables vendors to pack more VMs on a single host. Marc Orr (2): mm: export __vmalloc_node_range() kvm: vmx: use vmalloc() to allocate vcpus arch/x86/kvm/vmx.c | 98 +++++++++++++++++++++++++++++++++++++++++---- mm/vmalloc.c | 1 + virt/kvm/kvm_main.c | 28 +++++++------ 3 files changed, 107 insertions(+), 20 deletions(-)