From patchwork Tue Feb 4 09:48:16 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anup Patel X-Patchwork-Id: 24088 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ob0-f197.google.com (mail-ob0-f197.google.com [209.85.214.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C37BB20445 for ; Tue, 4 Feb 2014 09:49:00 +0000 (UTC) Received: by mail-ob0-f197.google.com with SMTP id gq1sf33167611obb.4 for ; Tue, 04 Feb 2014 01:48:59 -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=f86nfvCxQYzpbUxICjFXSDDaCbVXPEH2x0O2G+pixgw=; b=ZVwp+glWGaDQQI4PWgZrLTfwxBNbXRQvgR3uBziuuCjkB7nIzbXdLGY3yNisFksADE pXaAL6SEG8uvxM3njXhQoKdzJ2oZwZ0iyPxT9+2wTr78Grz6bL5G3VI99kbLzCxiWA/P WTUarwrTJ0KNj7+Sfczo8UB501BhmbsGO6AYomrAEAPgfcZYE+WAgPxigB7ERtH/aOUC ft0CHLZu3VT8i0LgZ9QBp6E57Oy/7TDFKJjcSHK+pA7ze+kScpmvYq9l0Mou0tDIt0Pz PhbReYptu/rHk0v2qAEh2pDcZ0XIFNK6leF0SXMRUtuas/K56KLSMzWcjcGlin6lPF91 9aag== X-Gm-Message-State: ALoCoQkyR3fETPld/yyUVXrzp1AtjjylwdwtwNSgmIgck4SWag0CQObCShRos5yxwrn2eOO78THQ X-Received: by 10.182.98.230 with SMTP id el6mr15811050obb.10.1391507339808; Tue, 04 Feb 2014 01:48:59 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.81.209 with SMTP id f75ls2320503qgd.48.gmail; Tue, 04 Feb 2014 01:48:59 -0800 (PST) X-Received: by 10.58.255.233 with SMTP id at9mr9104341ved.20.1391507339735; Tue, 04 Feb 2014 01:48:59 -0800 (PST) Received: from mail-vc0-f172.google.com (mail-vc0-f172.google.com [209.85.220.172]) by mx.google.com with ESMTPS id l2si7939718vcf.43.2014.02.04.01.48.59 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 04 Feb 2014 01:48:59 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.172 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.172; Received: by mail-vc0-f172.google.com with SMTP id lf12so5648875vcb.31 for ; Tue, 04 Feb 2014 01:48:59 -0800 (PST) X-Received: by 10.53.13.44 with SMTP id ev12mr27068225vdd.17.1391507339653; Tue, 04 Feb 2014 01:48:59 -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 u4csp221566vcz; Tue, 4 Feb 2014 01:48:59 -0800 (PST) X-Received: by 10.68.184.194 with SMTP id ew2mr42993217pbc.100.1391507338774; Tue, 04 Feb 2014 01:48:58 -0800 (PST) Received: from mail-pd0-f180.google.com (mail-pd0-f180.google.com [209.85.192.180]) by mx.google.com with ESMTPS id sj5si23937006pab.226.2014.02.04.01.48.58 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 04 Feb 2014 01:48:58 -0800 (PST) Received-SPF: neutral (google.com: 209.85.192.180 is neither permitted nor denied by best guess record for domain of anup.patel@linaro.org) client-ip=209.85.192.180; Received: by mail-pd0-f180.google.com with SMTP id x10so8033964pdj.11 for ; Tue, 04 Feb 2014 01:48:58 -0800 (PST) X-Received: by 10.66.248.194 with SMTP id yo2mr37165057pac.51.1391507337941; Tue, 04 Feb 2014 01:48:57 -0800 (PST) Received: from pnqlab006.amcc.com ([182.73.239.130]) by mx.google.com with ESMTPSA id gg10sm64586644pbc.46.2014.02.04.01.48.53 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 04 Feb 2014 01:48:56 -0800 (PST) From: Anup Patel To: kvmarm@lists.cs.columbia.edu Cc: linux-arm-kernel@lists.infradead.org, linaro-kernel@lists.linaro.org, patches@linaro.org, patches@apm.com, Marc Zyngier , Christoffer Dall , Mark Rutland , Pranavkumar Sawargaonkar , Anup Patel Subject: [PATCH v3 4/4] ARM/ARM64: KVM: Allow KVM_ARM_VCPU_PSCI_0_2 feature for user space Date: Tue, 4 Feb 2014 15:18:16 +0530 Message-Id: <1391507296-2099-5-git-send-email-anup.patel@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1391507296-2099-1-git-send-email-anup.patel@linaro.org> References: <1391507296-2099-1-git-send-email-anup.patel@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: anup.patel@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.172 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: , Allow user space to set KVM_ARM_VCPU_PSCI_0_2 feature because all mandatory PSCI v0.2 functions (i.e. complete PSCI v0.2) are available. Signed-off-by: Anup Patel Signed-off-by: Pranavkumar Sawargaonkar --- arch/arm/kvm/guest.c | 3 --- arch/arm64/kvm/guest.c | 3 --- 2 files changed, 6 deletions(-) diff --git a/arch/arm/kvm/guest.c b/arch/arm/kvm/guest.c index 89929b6..b23a59c 100644 --- a/arch/arm/kvm/guest.c +++ b/arch/arm/kvm/guest.c @@ -307,9 +307,6 @@ int kvm_vcpu_set_target(struct kvm_vcpu *vcpu, if (test_bit(i, (void *)init->features)) { if (i >= KVM_VCPU_MAX_FEATURES) return -ENOENT; - /* Don't allow setting experimental features */ - if (i == KVM_ARM_VCPU_PSCI_0_2) - return -ENOENT; set_bit(i, vcpu->arch.features); } } diff --git a/arch/arm64/kvm/guest.c b/arch/arm64/kvm/guest.c index b27877c..0874557 100644 --- a/arch/arm64/kvm/guest.c +++ b/arch/arm64/kvm/guest.c @@ -246,9 +246,6 @@ int kvm_vcpu_set_target(struct kvm_vcpu *vcpu, if (init->features[i / 32] & (1 << (i % 32))) { if (i >= KVM_VCPU_MAX_FEATURES) return -ENOENT; - /* Don't allow setting experimental features */ - if (i == KVM_ARM_VCPU_PSCI_0_2) - return -ENOENT; set_bit(i, vcpu->arch.features); } }