From patchwork Fri Nov 8 01:32:01 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoffer Dall X-Patchwork-Id: 3155031 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 187A79F407 for ; Fri, 8 Nov 2013 01:32:53 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1CF0A204A7 for ; Fri, 8 Nov 2013 01:32:52 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 22421204A0 for ; Fri, 8 Nov 2013 01:32:51 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VeavV-0006xA-2S; Fri, 08 Nov 2013 01:31:57 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VeavI-00081l-RO; Fri, 08 Nov 2013 01:31:44 +0000 Received: from mail-pd0-f174.google.com ([209.85.192.174]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Veav5-0007z7-3m for linux-arm-kernel@lists.infradead.org; Fri, 08 Nov 2013 01:31:32 +0000 Received: by mail-pd0-f174.google.com with SMTP id z10so1415338pdj.33 for ; Thu, 07 Nov 2013 17:31:09 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=r5ssUHXV69gerTCgh8MfGnBru/TgYmRiyQsKDXFquc0=; b=jDKjCvVG0e1BwizPK3W/2FJuItwSdFrGmVtLeu4xoonm8or1roT5sx7uVxctXM/odt gT8DusxA5EfyNQulGN6fC3kZKPiU9PhnBGmi3vBwKqJBOCdPoBZGhvmHrZtuhpicCZlM XN+aKD0u3C1ovfJ/DYjafAEyCD60/fBx2XXQ4de/MnlCAQb94C5v++dWqnggey/dhbAH qq1iSuHFzPLYB+VWVAf4FHAQ33dbnn2pQCn3NLTLyvjzuR5iXHcNP745NKx0WKZ+ceXk V3km9lQmdNqpuaupAGy3j6rEFqK/cX9XNt3HJpPlmDfkG5tR2+TS0zJuDGsmCZgR73Ug 4ngg== X-Gm-Message-State: ALoCoQmM1gqUE/qg5hpthph89DcS1BclQme5v0z7yq/VAQ0DRQCTzsnaPjrKzpUP6yIYILFw+DjU X-Received: by 10.67.21.130 with SMTP id hk2mr12958228pad.76.1383874269537; Thu, 07 Nov 2013 17:31:09 -0800 (PST) Received: from localhost.localdomain (c-67-169-181-221.hsd1.ca.comcast.net. [67.169.181.221]) by mx.google.com with ESMTPSA id i6sm8072833pbc.1.2013.11.07.17.31.07 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 07 Nov 2013 17:31:08 -0800 (PST) From: Christoffer Dall To: Gleb Natapov , Paolo Bonzini Subject: [PATCH 3/4] ARM: KVM: drop limitation to 4 CPU VMs Date: Thu, 7 Nov 2013 17:32:01 -0800 Message-Id: <1383874322-12328-4-git-send-email-christoffer.dall@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1383874322-12328-1-git-send-email-christoffer.dall@linaro.org> References: <1383874322-12328-1-git-send-email-christoffer.dall@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20131107_203131_306438_CAB6A797 X-CRM114-Status: UNSURE ( 9.92 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.9 (-) Cc: kvm@vger.kernel.org, patches@linaro.org, Marc Zyngier , linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, Christoffer Dall X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, 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 From: Marc Zyngier Now that the KVM/arm code knows about affinity, remove the hard limit of 4 vcpus per VM. Signed-off-by: Marc Zyngier Signed-off-by: Christoffer Dall --- arch/arm/kvm/reset.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/arch/arm/kvm/reset.c b/arch/arm/kvm/reset.c index d9bbd83..2c5add0 100644 --- a/arch/arm/kvm/reset.c +++ b/arch/arm/kvm/reset.c @@ -33,8 +33,6 @@ * Cortex-A15 and Cortex-A7 Reset Values */ -static const int cortexa_max_cpu_idx = 3; - static struct kvm_regs cortexa_regs_reset = { .usr_regs.ARM_cpsr = SVC_MODE | PSR_A_BIT | PSR_I_BIT | PSR_F_BIT, }; @@ -64,8 +62,6 @@ int kvm_reset_vcpu(struct kvm_vcpu *vcpu) switch (vcpu->arch.target) { case KVM_ARM_TARGET_CORTEX_A7: case KVM_ARM_TARGET_CORTEX_A15: - if (vcpu->vcpu_id > cortexa_max_cpu_idx) - return -EINVAL; cpu_reset = &cortexa_regs_reset; vcpu->arch.midr = read_cpuid_id(); cpu_vtimer_irq = &cortexa_vtimer_irq;