From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 18135C433DB for ; Tue, 16 Mar 2021 10:50:39 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3AA8864FA7 for ; Tue, 16 Mar 2021 10:50:38 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3AA8864FA7 Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=XLIg+1hMPCYgcDXnjqRG0iGmTPsK3Qs6XlahQCl/xx8=; b=SW1XOgyKLxP3Wu2jvFjvVD93c XpHXuJDn9cqLOYRwOO0vED/KIHd3w91iDH/lzpFsVkHJmU9dANVLNc40Imlti+F6WfTbB3m2nWY2T Y37MyzbB7B9n6qGlg3kQXV+qvSkTu2Ko+xo0Cjsxt7uHF5aVIKf5DreQ4RHP3QAip5iZsVem8oFJl C+C+tvqVwKbWL1ebIqH4iZP6w54CUcqvm2Qq0dQvKCCNm/JCC8HD5LpT7R7+gDINtdL0KQu4ZQ0OV MacnCos1sWXbZvqxrfByowkRI0O01HmZpFe5GESEUF4dvZc4uicmDvMzghj1DCJsIkw2jbGIxGcJx /HY9ejDGw==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lM7Fz-000TBz-HT; Tue, 16 Mar 2021 10:49:01 +0000 Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lM7D5-000SFW-1n for linux-arm-kernel@lists.infradead.org; Tue, 16 Mar 2021 10:46:03 +0000 Received: by mail-wr1-x42b.google.com with SMTP id k8so7160462wrc.3 for ; Tue, 16 Mar 2021 03:45:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=Zsdz2h8hf8Y/24lVeadYaeeQAMOF3TALsCOQcWpVAJk=; b=SJTMsl6KBrovYMSkF7DcCJIHr0K+jwCLFtt5KCAHC4SmzQZMxaKdsw4YmOZ6G8gQ/i F54HseY7kRTu5nSHt0RbnDBuMDiPhg324fyoJelGspMcblDCPxRPcTQ4ar6eoV9mVIlm qTFoHlBhuBgya022zZGChk+AuO5qVI1rZReb5GhTu3+QsezemBJqLbqN/HibJ/uMoxSm SIyx1yXH6rEgYgr8M6/PhZ58ySzz4360Vx59ApLJ2L/Ko3guwywAckBrVjdDgstbNPKR Dj0+wLofArhDqFekakXYvgpiOLeiZbsKcI5aY7IlY7hCv43TEs3oaYM2NnUEc2U1306r dEnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=Zsdz2h8hf8Y/24lVeadYaeeQAMOF3TALsCOQcWpVAJk=; b=Lt5HNImUwr1tOavGKg1HS3YtuqXNZvMUTzEECVbGAB10M7UAUVT2UlzIR80udkokuz WHpmS1AtGM+qmDonBwdzxrfYD1vgpnOrO0Rygn4NXj8W7pYoYHSPJEyAw8yDli4EYpsh QiUWK26C0yPvR+DQTbcb09YT9ZHz145VKEP72OQfRGvYaWNPVSKXzaRxG1YelZNnfmRo Bb8uygQ7NLOowvbWAQGTKxjAzslvyOk+JNvEnLo1FZp4sWPzxKbxqY4x6jjWIwoPYVKN b3ZAmeYs56xUG4/GjstUpxLaEifs7Axuo/JuO0vHDjh6TamkhA6vher7gcp9HrUh/E1X ncPA== X-Gm-Message-State: AOAM53030HJJQHCcsatePRzjbSD4sqKyC72+wVLjAODKZ9VKaOUfUGQT 15kQpAtltR1eZ4f2ZqlgDdVrtg== X-Google-Smtp-Source: ABdhPJzzT1u4K5ULsw5LvTSW/vhY00CzqQZU1WwxkZhBult5lmWWoNSeYotgmhqJqS602sEukhDbsw== X-Received: by 2002:adf:a418:: with SMTP id d24mr4111334wra.187.1615891558225; Tue, 16 Mar 2021 03:45:58 -0700 (PDT) Received: from google.com (230.69.233.35.bc.googleusercontent.com. [35.233.69.230]) by smtp.gmail.com with ESMTPSA id j203sm2868593wmj.40.2021.03.16.03.45.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Mar 2021 03:45:58 -0700 (PDT) Date: Tue, 16 Mar 2021 10:45:55 +0000 From: Quentin Perret To: Marc Zyngier Cc: kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org, kvm@vger.kernel.org, dave.martin@arm.com, daniel.kiss@arm.com, Will Deacon , Catalin Marinas , James Morse , Julien Thierry , Suzuki K Poulose , broonie@kernel.org, kernel-team@android.com Subject: Re: [PATCH 08/10] KVM: arm64: Add a nVHE-specific SVE VQ reset hypercall Message-ID: References: <20210316101312.102925-1-maz@kernel.org> <20210316101312.102925-9-maz@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20210316101312.102925-9-maz@kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210316_104600_040094_CFC7914A X-CRM114-Status: GOOD ( 10.78 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tuesday 16 Mar 2021 at 10:13:10 (+0000), Marc Zyngier wrote: > diff --git a/arch/arm64/include/asm/kvm_host.h b/arch/arm64/include/asm/kvm_host.h > index c4afe3d3397f..9108ccc80653 100644 > --- a/arch/arm64/include/asm/kvm_host.h > +++ b/arch/arm64/include/asm/kvm_host.h > @@ -593,7 +593,9 @@ int kvm_test_age_hva(struct kvm *kvm, unsigned long hva); > void kvm_arm_halt_guest(struct kvm *kvm); > void kvm_arm_resume_guest(struct kvm *kvm); > > -#define kvm_call_hyp_nvhe(f, ...) \ > +static inline void __kvm_reset_sve_vq(void) {} Why is this one needed? With an explicit call to kvm_call_hyp_nvhe() you shouldn't need to provide a VHE implementation I think. Thanks, Quentin _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel