From patchwork Wed Jul 1 18:29:02 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: 50544 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f197.google.com (mail-wi0-f197.google.com [209.85.212.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 9CE00229DF for ; Wed, 1 Jul 2015 18:30:52 +0000 (UTC) Received: by wiwz6 with SMTP id z6sf18339866wiw.0 for ; Wed, 01 Jul 2015 11:30:51 -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=RcbizwttpEhoD8pI7qgbV1jEYMjJblzu/0hBCeUMEdI=; b=Uc+v+XlNuF2TI1z0DONEzz4c3C4dNuwkD7YSVmOeZDZvGhYC27neNoYzA85JQuBaBO FZlduYSL1lBdZYoI2uEYLUUIo8TpfXDW0raqvePav7617IyVAYhFKYhjqjFewVYvb+zT P0HRKSL0IknbTsRUzyoQ0D8FzFBsdBWjA6NfY3yNpunxjaJPOfpVDJpYlySjcfV56QAl MsCCUOjFOpopEh77uOdUOsUdwzIkNjBllATcCz3d8XdB6WAhgQLwnE3Ax+E4NLq4/sbw +Po9GBK0wKHH1Sicc9lQTXrhGug+fxJenKaho3u9yondq+NY/d3VebGaGkXOpxjAc6C/ DTbw== X-Gm-Message-State: ALoCoQlLz38lKipmbxdQOd0bcJdWFkGC69fcc0X+PRAXQIJQRxu4JipiDZl/eWWXOYSQpNBbKl2y X-Received: by 10.152.179.136 with SMTP id dg8mr17835702lac.4.1435775451794; Wed, 01 Jul 2015 11:30:51 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.29.36 with SMTP id g4ls254340lah.33.gmail; Wed, 01 Jul 2015 11:30:51 -0700 (PDT) X-Received: by 10.152.87.231 with SMTP id bb7mr26326179lab.16.1435775451611; Wed, 01 Jul 2015 11:30:51 -0700 (PDT) Received: from mail-la0-f54.google.com (mail-la0-f54.google.com. [209.85.215.54]) by mx.google.com with ESMTPS id qg4si2415319lbb.25.2015.07.01.11.30.51 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 Jul 2015 11:30:51 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.54 as permitted sender) client-ip=209.85.215.54; Received: by lagx9 with SMTP id x9so46342306lag.1 for ; Wed, 01 Jul 2015 11:30:51 -0700 (PDT) X-Received: by 10.152.206.75 with SMTP id lm11mr26064812lac.41.1435775451470; Wed, 01 Jul 2015 11:30:51 -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 hn6csp787030lbb; Wed, 1 Jul 2015 11:30:50 -0700 (PDT) X-Received: by 10.70.59.41 with SMTP id w9mr34639066pdq.5.1435775449544; Wed, 01 Jul 2015 11:30:49 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id co3si4663038pad.233.2015.07.01.11.30.48; Wed, 01 Jul 2015 11:30:49 -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 S1753801AbbGASam (ORCPT + 29 others); Wed, 1 Jul 2015 14:30:42 -0400 Received: from mail-wi0-f170.google.com ([209.85.212.170]:35076 "EHLO mail-wi0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753574AbbGAS3p (ORCPT ); Wed, 1 Jul 2015 14:29:45 -0400 Received: by wiga1 with SMTP id a1so133114379wig.0 for ; Wed, 01 Jul 2015 11:29:44 -0700 (PDT) X-Received: by 10.180.82.162 with SMTP id j2mr9323560wiy.54.1435775384329; Wed, 01 Jul 2015 11:29:44 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by mx.google.com with ESMTPSA id c7sm4109021wjb.19.2015.07.01.11.29.41 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 Jul 2015 11:29:42 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id DB5D73E0796; Wed, 1 Jul 2015 19:29:40 +0100 (BST) 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 v7 10/11] KVM: arm64: enable KVM_CAP_SET_GUEST_DEBUG Date: Wed, 1 Jul 2015 19:29:02 +0100 Message-Id: <1435775343-20034-11-git-send-email-alex.bennee@linaro.org> X-Mailer: git-send-email 2.4.5 In-Reply-To: <1435775343-20034-1-git-send-email-alex.bennee@linaro.org> References: <1435775343-20034-1-git-send-email-alex.bennee@linaro.org> MIME-Version: 1.0 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.54 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; }