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: 21406 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qa0-f71.google.com (mail-qa0-f71.google.com [209.85.216.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 2546625E16 for ; Fri, 8 Nov 2013 01:31:11 +0000 (UTC) Received: by mail-qa0-f71.google.com with SMTP id w5sf2039895qac.6 for ; Thu, 07 Nov 2013 17:31:11 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=r5ssUHXV69gerTCgh8MfGnBru/TgYmRiyQsKDXFquc0=; b=cbJntz20C5P1n3rzMentMB8XQbI1l+OtX+OgGQrNXB4XtZfsmohdXL691Qw9ZH+MoY nDULd9Umot907wJRzkTxePDUC5ZleAQuwZkwVe31+xiZKk3YfpmsbXzWW+Bc3EcHNLwK /VB/aUc22Cy/gjRXyP2MetywxZt383xOYQzWB8DEPqW24+ptSWUXEUAI6w9wddOlQf3B K/bXilmw+CZzzJDD0FL4RajlM3Ac7t+5TBhYKwECTaacSr/usOGwwCsg5rQ82PhCy3MP jZMtNJX4TylPDoX/+XSMxVny04rz7DPsxjpZbSSsrJq3KJeMyVJuJVP97JXnUqLxWHvH ZN8Q== X-Gm-Message-State: ALoCoQnidfesgSw0qEqCcYCBW28SQUbDlTQNpR3GdYT/rpPjxwyAw7RePa9Y6VtZq5rxguYsM1mI X-Received: by 10.236.111.73 with SMTP id v49mr1464310yhg.46.1383874271009; Thu, 07 Nov 2013 17:31:11 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.99.10 with SMTP id em10ls1310382qeb.82.gmail; Thu, 07 Nov 2013 17:31:10 -0800 (PST) X-Received: by 10.220.86.69 with SMTP id r5mr9357339vcl.9.1383874270901; Thu, 07 Nov 2013 17:31:10 -0800 (PST) Received: from mail-vb0-f52.google.com (mail-vb0-f52.google.com [209.85.212.52]) by mx.google.com with ESMTPS id a15si2773214vew.83.2013.11.07.17.31.10 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 07 Nov 2013 17:31:10 -0800 (PST) Received-SPF: neutral (google.com: 209.85.212.52 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.52; Received: by mail-vb0-f52.google.com with SMTP id f12so947027vbg.25 for ; Thu, 07 Nov 2013 17:31:10 -0800 (PST) X-Received: by 10.58.11.73 with SMTP id o9mr9293659veb.8.1383874270817; Thu, 07 Nov 2013 17:31:10 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp62526vcz; Thu, 7 Nov 2013 17:31:10 -0800 (PST) X-Received: by 10.66.217.166 with SMTP id oz6mr12924938pac.22.1383874269922; Thu, 07 Nov 2013 17:31:09 -0800 (PST) Received: from mail-pa0-f44.google.com (mail-pa0-f44.google.com [209.85.220.44]) by mx.google.com with ESMTPS id kn3si4511847pbc.124.2013.11.07.17.31.09 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 07 Nov 2013 17:31:09 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.44 is neither permitted nor denied by best guess record for domain of christoffer.dall@linaro.org) client-ip=209.85.220.44; Received: by mail-pa0-f44.google.com with SMTP id fb1so1456970pad.17 for ; Thu, 07 Nov 2013 17:31:09 -0800 (PST) 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 Cc: Marc Zyngier , kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, patches@linaro.org, Christoffer Dall 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-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: christoffer.dall@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.52 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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;