From patchwork Tue Jul 7 16:30: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: 50838 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f71.google.com (mail-wg0-f71.google.com [74.125.82.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id D80B2229FC for ; Tue, 7 Jul 2015 16:31:39 +0000 (UTC) Received: by wgbbj7 with SMTP id bj7sf63196530wgb.2 for ; Tue, 07 Jul 2015 09:31:39 -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=ux6YKMKW2apGWf6dlhT22OoptBurPJFYmxS5wfV9v6g=; b=iEiJUQDY8YC6vVGhmoGo9qGL9DmLxRFf/aMDgNfz7CPwhIHcNnu+QwbKKkZoqSWhvn Je9+S8wdBWnwaqaa5EEporv95LPYq3RdVRsK4QtkXF/ZepOk9sIKKwJ0DqM+MpOQSoab CDs9cewT6Lh3yTl/wMlWRxJa4uEleHoDiKq73W/odhu+23SlAYgIpkWOI2DGF5hY5IUh pvUxclAnhjQ0lYrcYp+Gsg6gl+/Nk0N238XlvFa/cUlGUxuAydqakr9X/eDMe9vttzZk bqMmTgxPPV2U70hHf8RZIVS78ezenRrUX5y1nJiIlkob7euMFHt03gFnKmHStOWC0ln5 bkjg== X-Gm-Message-State: ALoCoQmL5XRZUpBUodQqwP3CvOGNdVecy9KxQEy6g47N+9dLZA0SWf8LwDDul2Y8dJO02PBE8Hi2 X-Received: by 10.112.255.66 with SMTP id ao2mr2472412lbd.15.1436286699180; Tue, 07 Jul 2015 09:31:39 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.153.7.136 with SMTP id dc8ls207963lad.101.gmail; Tue, 07 Jul 2015 09:31:38 -0700 (PDT) X-Received: by 10.152.10.72 with SMTP id g8mr4724356lab.97.1436286698931; Tue, 07 Jul 2015 09:31:38 -0700 (PDT) Received: from mail-la0-f51.google.com (mail-la0-f51.google.com. [209.85.215.51]) by mx.google.com with ESMTPS id h3si18506082lbj.145.2015.07.07.09.31.38 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 Jul 2015 09:31:38 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.51 as permitted sender) client-ip=209.85.215.51; Received: by lagx9 with SMTP id x9so202681599lag.1 for ; Tue, 07 Jul 2015 09:31:38 -0700 (PDT) X-Received: by 10.112.126.101 with SMTP id mx5mr4886563lbb.35.1436286698785; Tue, 07 Jul 2015 09:31:38 -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 hn6csp2504858lbb; Tue, 7 Jul 2015 09:31:37 -0700 (PDT) X-Received: by 10.70.38.170 with SMTP id h10mr10573561pdk.20.1436286696980; Tue, 07 Jul 2015 09:31:36 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id va8si35452125pac.211.2015.07.07.09.31.33; Tue, 07 Jul 2015 09:31:36 -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 S1758119AbbGGQbU (ORCPT + 29 others); Tue, 7 Jul 2015 12:31:20 -0400 Received: from mail-wi0-f170.google.com ([209.85.212.170]:35815 "EHLO mail-wi0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932346AbbGGQa1 (ORCPT ); Tue, 7 Jul 2015 12:30:27 -0400 Received: by wiga1 with SMTP id a1so261854617wig.0 for ; Tue, 07 Jul 2015 09:30:26 -0700 (PDT) X-Received: by 10.194.220.100 with SMTP id pv4mr10652745wjc.71.1436286625944; Tue, 07 Jul 2015 09:30:25 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by mx.google.com with ESMTPSA id fb3sm53290320wib.21.2015.07.07.09.30.24 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 Jul 2015 09:30:24 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id A80C73E066A; Tue, 7 Jul 2015 17:30:23 +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 v8 10/11] KVM: arm64: enable KVM_CAP_SET_GUEST_DEBUG Date: Tue, 7 Jul 2015 17:30:02 +0100 Message-Id: <1436286603-15192-11-git-send-email-alex.bennee@linaro.org> X-Mailer: git-send-email 2.4.5 In-Reply-To: <1436286603-15192-1-git-send-email-alex.bennee@linaro.org> References: <1436286603-15192-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.51 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 8620926..b4af618 100644 --- a/arch/arm64/kvm/reset.c +++ b/arch/arm64/kvm/reset.c @@ -77,6 +77,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; }