From patchwork Thu May 7 09:07:14 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: 48082 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 A98EA20553 for ; Thu, 7 May 2015 09:08:04 +0000 (UTC) Received: by wgtl5 with SMTP id l5sf10830536wgt.1 for ; Thu, 07 May 2015 02:08:04 -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=p16evBOc7mFI0Ke2FCBfVbJrtpFPCqjsAUIFfCcZZdA=; b=m5WXhjMFF4EvbnLi0btfeWvaDJ2k1z0dWdaXPuEfmwiEuUcVtBEMRvsREHYMFB4naR 83NNmUL6gpCD5V6u9OhlifC4GPRLp+oq7g/m2MLKBRI+WbzWR6IhWM8CFAsno4dX0m6n o95FAT7qbKbvhvLSzwqyB2HKfbMUavVdB18YBbFlqeREJXuFJrCFX7qS8T0pg0zwcg/f Qhcv0bpDWcC6LYJr5l+OiWAVeguZUveLFyZa9tRkJQ4UxS++QkSmwA5kUfVx5xuWpSlY vj8hLjJWVkDEn9DrSOwSgO9fewxkBWksy5d8dPEGoETEVxGeLO/srHPcdm/5v8Jw3lWA Henw== X-Gm-Message-State: ALoCoQmRT+V1jVW20+y+pYd5W/IRiuCKE/UNQJex5JwAXdnUrVXBydwAcr4z3IQxCmMVuCps4xw4 X-Received: by 10.180.74.197 with SMTP id w5mr1552787wiv.5.1430989684018; Thu, 07 May 2015 02:08:04 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.28.231 with SMTP id e7ls162582lah.38.gmail; Thu, 07 May 2015 02:08:03 -0700 (PDT) X-Received: by 10.112.125.33 with SMTP id mn1mr2255339lbb.82.1430989683824; Thu, 07 May 2015 02:08:03 -0700 (PDT) Received: from mail-lb0-f174.google.com (mail-lb0-f174.google.com. [209.85.217.174]) by mx.google.com with ESMTPS id yo3si873374lbb.167.2015.05.07.02.08.03 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 May 2015 02:08:03 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.174 as permitted sender) client-ip=209.85.217.174; Received: by lbcga7 with SMTP id ga7so26264689lbc.1 for ; Thu, 07 May 2015 02:08:03 -0700 (PDT) X-Received: by 10.112.29.36 with SMTP id g4mr2328673lbh.56.1430989683715; Thu, 07 May 2015 02:08:03 -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.67.65 with SMTP id l1csp3318802lbt; Thu, 7 May 2015 02:08:02 -0700 (PDT) X-Received: by 10.66.123.73 with SMTP id ly9mr5299641pab.156.1430989680425; Thu, 07 May 2015 02:08:00 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z2si1981770pdj.39.2015.05.07.02.07.59; Thu, 07 May 2015 02:08:00 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751853AbbEGJHv (ORCPT + 29 others); Thu, 7 May 2015 05:07:51 -0400 Received: from static.88-198-71-155.clients.your-server.de ([88.198.71.155]:38253 "EHLO socrates.bennee.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750780AbbEGJHr (ORCPT ); Thu, 7 May 2015 05:07:47 -0400 Received: from localhost ([127.0.0.1] helo=zen.linaroharston) by socrates.bennee.com with esmtp (Exim 4.80) (envelope-from ) id 1YqJ0v-0003XA-F6; Thu, 07 May 2015 12:26:45 +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 v3 11/12] KVM: arm64: enable KVM_CAP_SET_GUEST_DEBUG Date: Thu, 7 May 2015 10:07:14 +0100 Message-Id: <1430989647-22501-4-git-send-email-alex.bennee@linaro.org> X-Mailer: git-send-email 2.3.5 In-Reply-To: <1430929407-3487-1-git-send-email-alex.bennee@linaro.org> References: <1430929407-3487-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.217.174 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. 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; }