From patchwork Wed Jul 29 14:29:23 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Igor Mammedov X-Patchwork-Id: 6894761 Return-Path: X-Original-To: patchwork-kvm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 88EB39F380 for ; Wed, 29 Jul 2015 14:29:59 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C105A2066F for ; Wed, 29 Jul 2015 14:29:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6EDE42065D for ; Wed, 29 Jul 2015 14:29:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753990AbbG2O3l (ORCPT ); Wed, 29 Jul 2015 10:29:41 -0400 Received: from mx1.redhat.com ([209.132.183.28]:47808 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753996AbbG2O33 (ORCPT ); Wed, 29 Jul 2015 10:29:29 -0400 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (Postfix) with ESMTPS id A659E4C09F; Wed, 29 Jul 2015 14:29:29 +0000 (UTC) Received: from dell-r430-03.lab.eng.brq.redhat.com (dell-r430-03.lab.eng.brq.redhat.com [10.34.112.60]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t6TETPNK009041; Wed, 29 Jul 2015 10:29:28 -0400 From: Igor Mammedov To: linux-kernel@vger.kernel.org Cc: mst@redhat.com, pbonzini@redhat.com, kvm@vger.kernel.org Subject: [PATCH 2/2] vhost: increase default limit of nregions from 64 to 509 Date: Wed, 29 Jul 2015 16:29:23 +0200 Message-Id: <1438180163-275465-3-git-send-email-imammedo@redhat.com> In-Reply-To: <1438180163-275465-1-git-send-email-imammedo@redhat.com> References: <1438180163-275465-1-git-send-email-imammedo@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.26 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Spam-Status: No, score=-8.3 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP although now there is vhost module max_mem_regions option to set custom limit it doesn't help for default setups, since it requires administrator manually set a higher limit on each host. Which complicates servers deployments and management. Rise limit to the same value as KVM has (509 slots max), so that default deployments would work out of box. Signed-off-by: Igor Mammedov --- PS: Users that would want to lock down vhost could still use max_mem_regions option to set lower limit, but I expect it would be minority. --- include/uapi/linux/vhost.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/uapi/linux/vhost.h b/include/uapi/linux/vhost.h index 2511954..92657bf 100644 --- a/include/uapi/linux/vhost.h +++ b/include/uapi/linux/vhost.h @@ -140,7 +140,7 @@ struct vhost_memory { #define VHOST_MEM_MAX_NREGIONS_NONE 0 /* We support at least as many nregions in VHOST_SET_MEM_TABLE: * for use on legacy kernels without VHOST_GET_MEM_MAX_NREGIONS support. */ -#define VHOST_MEM_MAX_NREGIONS_DEFAULT 64 +#define VHOST_MEM_MAX_NREGIONS_DEFAULT 509 /* VHOST_NET specific defines */