Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3331823ybg; Fri, 25 Oct 2019 02:32:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqwY2qdhBW98X8ZC4eSHkP1zp9eSLJt5amK5rwzyTPw+kxISqkOcMqchbwO4WmnIjzrgddaP X-Received: by 2002:a05:6402:110c:: with SMTP id u12mr2772148edv.127.1571995942208; Fri, 25 Oct 2019 02:32:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571995942; cv=none; d=google.com; s=arc-20160816; b=ZA6IbVtjWFLtn4lc1aNVXlyKm3rzh2Mcwu+Hgv2RTxhx5l7xbegUI1w9YTUm3RGscf a0hwexLKOj/BTmXeNt4YM62jrgxhzA2NPgauvQOi9MMpwrJkMETT9RNCECR2wgrV1Ly6 u18aUqrk+1jwrGim9B7YW0FkHtOQHZ3y7351ef6TtlhQZvkslj4rLrSwRHLtJsJv2TZr RU9QixAjq7YX6lHxmbbnsvCBRGv5jOkb3l2LDVQcvfODyMdZzOv5TtHZ4E3gRtes5+ZG 2prPZp7z9pwZ4rf5xP1rBlJn4eY02hCfRSki0DmNP+wN+hrcUoO+8cTLx9z6d7GObfX2 6+AQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=QH2mJ0FG3ZFL6Xl9ubuhyFuwZunCxkeExTA5ubL8TuA=; b=xoUEU2UtsLleTrlTFJV6/9bDnIlRgI6doYFEerwORSoInJcREhwRHU/CgR25gOR68y k4G4w1vNlb2fkmvwRk84oQoVSxcrQ6FCXWUvzSLsvk1Xmr9z+hmZiZf3ogu/PKi37nuy 7VwN5pZsGWi5DK3QgONVQAAl244+lO4Jad1AwqfZhLneehBkkQQWH93azPtV4LfmhSUO dy1k0u/EcrGnHDZm3ZM45/AmL+7n7lhh09y+c5lc2qzuqLO6YWduan/9UzaYbI8UMf7z 4zBDespVD9ZPnGjqplvOs0N9KkRLKcKLIx3bDPPY94DoLjCvHa8UUEPnF9Q7rlH3KW0r nvyw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n9si845767ejr.53.2019.10.25.02.31.57; Fri, 25 Oct 2019 02:32:22 -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; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2409104AbfJXK2I (ORCPT + 99 others); Thu, 24 Oct 2019 06:28:08 -0400 Received: from out30-45.freemail.mail.aliyun.com ([115.124.30.45]:43874 "EHLO out30-45.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2393291AbfJXK2C (ORCPT ); Thu, 24 Oct 2019 06:28:02 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R211e4;CH=green;DM=||false|;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e01419;MF=shannon.zhao@linux.alibaba.com;NM=1;PH=DS;RN=8;SR=0;TI=SMTPD_---0Tg31GPL_1571912867; Received: from localhost(mailfrom:shannon.zhao@linux.alibaba.com fp:SMTPD_---0Tg31GPL_1571912867) by smtp.aliyun-inc.com(127.0.0.1); Thu, 24 Oct 2019 18:27:49 +0800 From: Shannon Zhao To: kvmarm@lists.cs.columbia.edu, maz@kernel.org, james.morse@arm.com, suzuki.poulose@arm.com, christoffer.dall@arm.com Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH RFC 3/7] KVM: vgic: make vgic parameters work well for module Date: Thu, 24 Oct 2019 18:27:46 +0800 Message-Id: <1571912870-18471-4-git-send-email-shannon.zhao@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1571912870-18471-1-git-send-email-shannon.zhao@linux.alibaba.com> References: <1571912870-18471-1-git-send-email-shannon.zhao@linux.alibaba.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Shannon Zhao --- virt/kvm/arm/vgic/vgic-v3.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/virt/kvm/arm/vgic/vgic-v3.c b/virt/kvm/arm/vgic/vgic-v3.c index 8d69f00..228cfeb 100644 --- a/virt/kvm/arm/vgic/vgic-v3.c +++ b/virt/kvm/arm/vgic/vgic-v3.c @@ -548,6 +548,12 @@ int vgic_v3_map_resources(struct kvm *kvm) DEFINE_STATIC_KEY_FALSE(vgic_v3_cpuif_trap); +#ifdef MODULE +module_param_named(vgic_v3_group0_trap, group0_trap, bool, S_IRUGO); +module_param_named(vgic_v3_group1_trap, group1_trap, bool, S_IRUGO); +module_param_named(vgic_v3_common_trap, common_trap, bool, S_IRUGO); +module_param_named(vgic_v4_enable, gicv4_enable, bool, S_IRUGO); +#else static int __init early_group0_trap_cfg(char *buf) { return strtobool(buf, &group0_trap); @@ -571,6 +577,7 @@ static int __init early_gicv4_enable(char *buf) return strtobool(buf, &gicv4_enable); } early_param("kvm-arm.vgic_v4_enable", early_gicv4_enable); +#endif /** * vgic_v3_probe - probe for a VGICv3 compatible interrupt controller -- 1.8.3.1