From patchwork Fri Jun 19 12:23:49 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: 50097 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f69.google.com (mail-la0-f69.google.com [209.85.215.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 0CEA022903 for ; Fri, 19 Jun 2015 12:55:52 +0000 (UTC) Received: by lagh6 with SMTP id h6sf29202811lag.0 for ; Fri, 19 Jun 2015 05:55: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=xL9Wr4wO9z6MRFw97TPSySK0hXue5Qo3NEI36HkqIuo=; b=TtQfmK+qKgKTCRGYrTOUukuVJ18PnbaSZbtRBYFR55jg9YQfPcOnfTraTPYTdNEZ9T svxwI9fQjbpMxq1HKZvSRBMLbgbbRJyqvrqIXzMQFt8nF3NY1s8pCYQUlOSJFTY8wJCE 16vpcVdO7cJtL5gcr1L3ljQzS6wBEs/svMrpJQNCoq8w3354+EPXkGYGGG3p8HVgTRlk eKDxH4GzgAZOvNSLS+Ey+PONDGQLTe7CN7ik77wQMJ/fWFGEjHCNii3aY9prj+az+49/ hMBIdCAruZrq67LV+TNhpCmrf0VHWEFMMVfJ1kCsoI5vYF9BbgwNvM0ov3H12gRLWUv3 +K9Q== X-Gm-Message-State: ALoCoQkJVgTzji7gTDMzHZKxk9DLlev68KiaenLNa+KPd/Hki1OEG8TP5vVghWp3lJAtkq9/+aBQ X-Received: by 10.112.28.111 with SMTP id a15mr14906897lbh.21.1434718550976; Fri, 19 Jun 2015 05:55:50 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.5.163 with SMTP id t3ls621652lat.6.gmail; Fri, 19 Jun 2015 05:55:50 -0700 (PDT) X-Received: by 10.112.53.226 with SMTP id e2mr9062077lbp.124.1434718550671; Fri, 19 Jun 2015 05:55:50 -0700 (PDT) Received: from mail-lb0-f170.google.com (mail-lb0-f170.google.com. [209.85.217.170]) by mx.google.com with ESMTPS id x10si9098011lax.97.2015.06.19.05.55.50 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 19 Jun 2015 05:55:50 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.170 as permitted sender) client-ip=209.85.217.170; Received: by lbbti3 with SMTP id ti3so71540210lbb.1 for ; Fri, 19 Jun 2015 05:55:50 -0700 (PDT) X-Received: by 10.112.199.133 with SMTP id jk5mr18148691lbc.32.1434718550583; Fri, 19 Jun 2015 05:55:50 -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 hn6csp572512lbb; Fri, 19 Jun 2015 05:55:49 -0700 (PDT) X-Received: by 10.68.108.65 with SMTP id hi1mr31244663pbb.129.1434718548869; Fri, 19 Jun 2015 05:55:48 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u16si16302804pbs.18.2015.06.19.05.55.47; Fri, 19 Jun 2015 05:55:48 -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 S1754161AbbFSMzn (ORCPT + 30 others); Fri, 19 Jun 2015 08:55:43 -0400 Received: from static.88-198-71-155.clients.your-server.de ([88.198.71.155]:59076 "EHLO socrates.bennee.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751353AbbFSMzf (ORCPT ); Fri, 19 Jun 2015 08:55:35 -0400 Received: from localhost ([127.0.0.1] helo=zen.linaroharston) by socrates.bennee.com with esmtp (Exim 4.84) (envelope-from ) id 1Z5vLr-00046o-JE; Fri, 19 Jun 2015 14:24:56 +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 v6 11/12] KVM: arm64: enable KVM_CAP_SET_GUEST_DEBUG Date: Fri, 19 Jun 2015 13:23:49 +0100 Message-Id: <1434716630-18260-12-git-send-email-alex.bennee@linaro.org> X-Mailer: git-send-email 2.4.3 In-Reply-To: <1434716630-18260-1-git-send-email-alex.bennee@linaro.org> References: <1434716630-18260-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.170 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; }