From patchwork Fri May 29 09:30:27 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 49155 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f70.google.com (mail-la0-f70.google.com [209.85.215.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 48709218E7 for ; Fri, 29 May 2015 09:48:49 +0000 (UTC) Received: by laat2 with SMTP id t2sf18712722laa.2 for ; Fri, 29 May 2015 02:48:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-type :content-transfer-encoding:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=DsltB/0bB3+VyfxJaJhIvRphqloEkGzf3G/t7/1QtE4=; b=kxlzxzh7bCrzOBlS9ogm9TBlFtoVtGRxB1veLC5k701O7OzPwcjRU7Ien8VGLWcTCp EvDlQ8wxWrIBYUo6KDiYzJjixY25qqPhw8HNpp5XBRaYvmMVSJRML0uonlvJs9bMoApl MhCLA7clQaPrLv/CucN9ot7JwIZnBCSMarSdSxDCjTQvnYqStrLm61/Q1zwXpPsJ2PGX RWGhuV3AGKny/XEzIbaUJswaMw9dyCmdK/amtT7J94yrepA0UCPAqotR4ZYnFm+2Ln7w 3H4OBuknJYEbSclTYQF7Xhlv/a1ZKZg3mViSdYGig5RPMnmcpuJ0byc3JtzflOwOnWiA 6iIw== X-Gm-Message-State: ALoCoQkHwdM5S1VTETK+CQjru/SKyVyGJPOF9q+10tinPIBU9Rqgw/fYhMyeuUyKF7EmGcT7evEr X-Received: by 10.180.84.70 with SMTP id w6mr1934930wiy.4.1432892928224; Fri, 29 May 2015 02:48:48 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.36.169 with SMTP id r9ls292257laj.86.gmail; Fri, 29 May 2015 02:48:48 -0700 (PDT) X-Received: by 10.152.6.105 with SMTP id z9mr6959789laz.98.1432892928027; Fri, 29 May 2015 02:48:48 -0700 (PDT) Received: from mail-la0-f41.google.com (mail-la0-f41.google.com. [209.85.215.41]) by mx.google.com with ESMTPS id r1si4287303lar.2.2015.05.29.02.48.47 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 29 May 2015 02:48:47 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.41 as permitted sender) client-ip=209.85.215.41; Received: by laat2 with SMTP id t2so51658757laa.1 for ; Fri, 29 May 2015 02:48:47 -0700 (PDT) X-Received: by 10.152.6.69 with SMTP id y5mr7033911lay.72.1432892927753; Fri, 29 May 2015 02:48:47 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.108.230 with SMTP id hn6csp177150lbb; Fri, 29 May 2015 02:48:46 -0700 (PDT) X-Received: by 10.66.55.66 with SMTP id q2mr13517605pap.94.1432892925876; Fri, 29 May 2015 02:48:45 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x11si3420151pbt.50.2015.05.29.02.48.44; Fri, 29 May 2015 02:48:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755629AbbE2Jsj (ORCPT + 28 others); Fri, 29 May 2015 05:48:39 -0400 Received: from static.88-198-71-155.clients.your-server.de ([88.198.71.155]:56543 "EHLO socrates.bennee.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752030AbbE2Jsa (ORCPT ); Fri, 29 May 2015 05:48:30 -0400 Received: from localhost ([127.0.0.1] helo=zen.linaroharston) by socrates.bennee.com with esmtp (Exim 4.80) (envelope-from ) id 1YyHx0-0004KD-NM; Fri, 29 May 2015 12:55:42 +0200 From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, christoffer.dall@linaro.org, marc.zyngier@arm.com, peter.maydell@linaro.org, agraf@suse.de, drjones@redhat.com, pbonzini@redhat.com, zhichao.huang@linaro.org Cc: jan.kiszka@siemens.com, dahi@linux.vnet.ibm.com, r65777@freescale.com, bp@suse.de, =?UTF-8?q?Alex=20Benn=C3=A9e?= , Gleb Natapov , Catalin Marinas , Will Deacon , linux-kernel@vger.kernel.org (open list) Subject: [PATCH v5 11/12] KVM: arm64: enable KVM_CAP_SET_GUEST_DEBUG Date: Fri, 29 May 2015 10:30:27 +0100 Message-Id: <1432891828-4816-12-git-send-email-alex.bennee@linaro.org> X-Mailer: git-send-email 2.4.1 In-Reply-To: <1432891828-4816-1-git-send-email-alex.bennee@linaro.org> References: <1432891828-4816-1-git-send-email-alex.bennee@linaro.org> MIME-Version: 1.0 X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: alex.bennee@linaro.org X-SA-Exim-Scanned: No (on socrates.bennee.com); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: alex.bennee@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.41 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Finally advertise the KVM capability for SET_GUEST_DEBUG. Once arm support is added this check can be moved to the common kvm_vm_ioctl_check_extension() code. Signed-off-by: Alex Bennée Acked-by: Christoffer Dall --- v3: - separated capability check from previous patches - moved into arm64 specific ioctl handler. v4: - add a-b-tag --- arch/arm64/kvm/reset.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm64/kvm/reset.c b/arch/arm64/kvm/reset.c index 21d5a62..88e5331 100644 --- a/arch/arm64/kvm/reset.c +++ b/arch/arm64/kvm/reset.c @@ -76,6 +76,9 @@ int kvm_arch_dev_ioctl_check_extension(long ext) case KVM_CAP_GUEST_DEBUG_HW_WPS: r = get_num_wrps(); break; + case KVM_CAP_SET_GUEST_DEBUG: + r = 1; + break; default: r = 0; }