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 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A64E7C433EF for ; Thu, 14 Oct 2021 16:06:19 +0000 (UTC) Received: from mm01.cs.columbia.edu (mm01.cs.columbia.edu [128.59.11.253]) by mail.kernel.org (Postfix) with ESMTP id 2473C61181 for ; Thu, 14 Oct 2021 16:06:19 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 2473C61181 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.cs.columbia.edu Received: from localhost (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id 833EF4B11F; Thu, 14 Oct 2021 12:06:18 -0400 (EDT) X-Virus-Scanned: at lists.cs.columbia.edu Received: from mm01.cs.columbia.edu ([127.0.0.1]) by localhost (mm01.cs.columbia.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6cXBJQysAbb8; Thu, 14 Oct 2021 12:06:16 -0400 (EDT) Received: from mm01.cs.columbia.edu (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id 9ACC44B120; Thu, 14 Oct 2021 12:06:16 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id 5AEBC4B116 for ; Thu, 14 Oct 2021 12:06:15 -0400 (EDT) X-Virus-Scanned: at lists.cs.columbia.edu Received: from mm01.cs.columbia.edu ([127.0.0.1]) by localhost (mm01.cs.columbia.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MshUENuv8aYe for ; Thu, 14 Oct 2021 12:06:13 -0400 (EDT) Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by mm01.cs.columbia.edu (Postfix) with ESMTPS id 6D8584B10E for ; Thu, 14 Oct 2021 12:06:13 -0400 (EDT) Received: from disco-boy.misterjones.org (disco-boy.misterjones.org [51.254.78.96]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 63A3F61056; Thu, 14 Oct 2021 16:06:12 +0000 (UTC) Received: from disco-boy.misterjones.org ([51.254.78.96] helo=www.loen.fr) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1mb3FC-00GmGg-5G; Thu, 14 Oct 2021 17:06:10 +0100 MIME-Version: 1.0 Date: Thu, 14 Oct 2021 17:06:10 +0100 From: Marc Zyngier To: Andrew Jones Subject: Re: [PATCH v9 17/22] KVM: arm64: pkvm: Handle GICv3 traps as required In-Reply-To: <20211014094613.tnx4xwyqrxj4jmnq@gator.home> References: <20211010145636.1950948-12-tabba@google.com> <20211013120346.2926621-1-maz@kernel.org> <20211013120346.2926621-7-maz@kernel.org> <20211014094613.tnx4xwyqrxj4jmnq@gator.home> User-Agent: Roundcube Webmail/1.4.11 Message-ID: X-Sender: maz@kernel.org X-SA-Exim-Connect-IP: 51.254.78.96 X-SA-Exim-Rcpt-To: drjones@redhat.com, kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, will@kernel.org, james.morse@arm.com, alexandru.elisei@arm.com, suzuki.poulose@arm.com, mark.rutland@arm.com, pbonzini@redhat.com, oupton@google.com, qperret@google.com, kernel-team@android.com, tabba@google.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false Cc: kernel-team@android.com, kvm@vger.kernel.org, pbonzini@redhat.com, will@kernel.org, kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org X-BeenThere: kvmarm@lists.cs.columbia.edu X-Mailman-Version: 2.1.14 Precedence: list List-Id: Where KVM/ARM decisions are made List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: kvmarm-bounces@lists.cs.columbia.edu Sender: kvmarm-bounces@lists.cs.columbia.edu On 2021-10-14 10:46, Andrew Jones wrote: > On Wed, Oct 13, 2021 at 01:03:41PM +0100, Marc Zyngier wrote: >> Forward accesses to the ICV_*SGI*_EL1 registers to EL1, and >> emulate ICV_SRE_EL1 by returning a fixed value. >> >> This should be enough to support GICv3 in a protected guest. > > Out of curiosity, has the RVIC work / plans been dropped? ARM has dropped the architecture, and it makes no sense to move KVM to support non-architectural stuff. Which means we will eventually have to harden the guest itself to cope with the fact that it cannot trust the interrupt controller. Yes, this is crap. M. -- Jazz is not dead. It just smells funny... _______________________________________________ kvmarm mailing list kvmarm@lists.cs.columbia.edu https://lists.cs.columbia.edu/mailman/listinfo/kvmarm 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 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D09E3C433EF for ; Thu, 14 Oct 2021 16:07:34 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 91A0C6109F for ; Thu, 14 Oct 2021 16:07:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 91A0C6109F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Message-ID:References:In-Reply-To:Subject:Cc:To:From :Date:MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=7/ZaqlSOHfsxAbdewe9e1LGStoOF2GYc0/LduA/Uw2Y=; b=TV6J0O0Gau3BHgPAMPH4wQxj79 qf+PBjOthOMYpqNYzRJljHSWDNtUyVVAyj9fguLNxC4f4e2bjkc4kKsVsICkZI29GHdKfMwX5c7jg BgH3Vt9Cc6lzHPtRc4qHDdAcoimfVrHzrffMS9VFl/yswreogDeYzd0WbDiwTY9Wv+NahTMRVNVGz cpbHgH2XOP8wCq0e44Bqe/xMw0VKihcfTqzj5s5anfHAsgDdx0fJAuUXrWC/hQw9pTtNxVIF2PmKN fSR8KDLr3OfBMC9s5BL8dzDUAdbA9ERwFU9bm4/JZlpN5eanRzrufdCkq4+asKs/Wl/zjobLTYMwV lsD84XAQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mb3FJ-003mph-RW; Thu, 14 Oct 2021 16:06:18 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mb3FF-003mnz-V8 for linux-arm-kernel@lists.infradead.org; Thu, 14 Oct 2021 16:06:15 +0000 Received: from disco-boy.misterjones.org (disco-boy.misterjones.org [51.254.78.96]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 63A3F61056; Thu, 14 Oct 2021 16:06:12 +0000 (UTC) Received: from disco-boy.misterjones.org ([51.254.78.96] helo=www.loen.fr) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1mb3FC-00GmGg-5G; Thu, 14 Oct 2021 17:06:10 +0100 MIME-Version: 1.0 Date: Thu, 14 Oct 2021 17:06:10 +0100 From: Marc Zyngier To: Andrew Jones Cc: kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, will@kernel.org, james.morse@arm.com, alexandru.elisei@arm.com, suzuki.poulose@arm.com, mark.rutland@arm.com, pbonzini@redhat.com, oupton@google.com, qperret@google.com, kernel-team@android.com, tabba@google.com Subject: Re: [PATCH v9 17/22] KVM: arm64: pkvm: Handle GICv3 traps as required In-Reply-To: <20211014094613.tnx4xwyqrxj4jmnq@gator.home> References: <20211010145636.1950948-12-tabba@google.com> <20211013120346.2926621-1-maz@kernel.org> <20211013120346.2926621-7-maz@kernel.org> <20211014094613.tnx4xwyqrxj4jmnq@gator.home> User-Agent: Roundcube Webmail/1.4.11 Message-ID: X-Sender: maz@kernel.org X-SA-Exim-Connect-IP: 51.254.78.96 X-SA-Exim-Rcpt-To: drjones@redhat.com, kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, will@kernel.org, james.morse@arm.com, alexandru.elisei@arm.com, suzuki.poulose@arm.com, mark.rutland@arm.com, pbonzini@redhat.com, oupton@google.com, qperret@google.com, kernel-team@android.com, tabba@google.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211014_090614_051329_123D15CA X-CRM114-Status: GOOD ( 11.57 ) 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-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 2021-10-14 10:46, Andrew Jones wrote: > On Wed, Oct 13, 2021 at 01:03:41PM +0100, Marc Zyngier wrote: >> Forward accesses to the ICV_*SGI*_EL1 registers to EL1, and >> emulate ICV_SRE_EL1 by returning a fixed value. >> >> This should be enough to support GICv3 in a protected guest. > > Out of curiosity, has the RVIC work / plans been dropped? ARM has dropped the architecture, and it makes no sense to move KVM to support non-architectural stuff. Which means we will eventually have to harden the guest itself to cope with the fact that it cannot trust the interrupt controller. Yes, this is crap. M. -- Jazz is not dead. It just smells funny... _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel 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 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 53900C433FE for ; Thu, 14 Oct 2021 16:06:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2AC5E6109F for ; Thu, 14 Oct 2021 16:06:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232117AbhJNQIS (ORCPT ); Thu, 14 Oct 2021 12:08:18 -0400 Received: from mail.kernel.org ([198.145.29.99]:49538 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230384AbhJNQIR (ORCPT ); Thu, 14 Oct 2021 12:08:17 -0400 Received: from disco-boy.misterjones.org (disco-boy.misterjones.org [51.254.78.96]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 63A3F61056; Thu, 14 Oct 2021 16:06:12 +0000 (UTC) Received: from disco-boy.misterjones.org ([51.254.78.96] helo=www.loen.fr) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1mb3FC-00GmGg-5G; Thu, 14 Oct 2021 17:06:10 +0100 MIME-Version: 1.0 Date: Thu, 14 Oct 2021 17:06:10 +0100 From: Marc Zyngier To: Andrew Jones Cc: kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, will@kernel.org, james.morse@arm.com, alexandru.elisei@arm.com, suzuki.poulose@arm.com, mark.rutland@arm.com, pbonzini@redhat.com, oupton@google.com, qperret@google.com, kernel-team@android.com, tabba@google.com Subject: Re: [PATCH v9 17/22] KVM: arm64: pkvm: Handle GICv3 traps as required In-Reply-To: <20211014094613.tnx4xwyqrxj4jmnq@gator.home> References: <20211010145636.1950948-12-tabba@google.com> <20211013120346.2926621-1-maz@kernel.org> <20211013120346.2926621-7-maz@kernel.org> <20211014094613.tnx4xwyqrxj4jmnq@gator.home> User-Agent: Roundcube Webmail/1.4.11 Message-ID: X-Sender: maz@kernel.org Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 51.254.78.96 X-SA-Exim-Rcpt-To: drjones@redhat.com, kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, will@kernel.org, james.morse@arm.com, alexandru.elisei@arm.com, suzuki.poulose@arm.com, mark.rutland@arm.com, pbonzini@redhat.com, oupton@google.com, qperret@google.com, kernel-team@android.com, tabba@google.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org On 2021-10-14 10:46, Andrew Jones wrote: > On Wed, Oct 13, 2021 at 01:03:41PM +0100, Marc Zyngier wrote: >> Forward accesses to the ICV_*SGI*_EL1 registers to EL1, and >> emulate ICV_SRE_EL1 by returning a fixed value. >> >> This should be enough to support GICv3 in a protected guest. > > Out of curiosity, has the RVIC work / plans been dropped? ARM has dropped the architecture, and it makes no sense to move KVM to support non-architectural stuff. Which means we will eventually have to harden the guest itself to cope with the fact that it cannot trust the interrupt controller. Yes, this is crap. M. -- Jazz is not dead. It just smells funny...