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 9164FC433F5 for ; Fri, 15 Oct 2021 09:49:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 78A216108B for ; Fri, 15 Oct 2021 09:49:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232557AbhJOJvM (ORCPT ); Fri, 15 Oct 2021 05:51:12 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:50419 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230080AbhJOJvL (ORCPT ); Fri, 15 Oct 2021 05:51:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1634291345; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=TSbEB3BwDLmVM1HNWqG2yqBKy93uV1whZ1iCqAbBG74=; b=OioLzsLrcgrvP2xvbyPotSpHDR5+WAjBIMwOpaLekDfN6NGtYXYSF6cCGIiFGZnT7KoO2D 1mD+hRmbNKf5bU6jdgKVrYyxPSRF8N216cJjqcssX+OZ0+dX3/vyIOQ1gb+SKB17Iq6NSb 8DmaFxS1lafCAfmzyqUHs9yI5gMznyg= Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-587-ep2Us_0XPxa824MJQAmHdg-1; Fri, 15 Oct 2021 05:49:03 -0400 X-MC-Unique: ep2Us_0XPxa824MJQAmHdg-1 Received: by mail-wr1-f72.google.com with SMTP id d13-20020adf9b8d000000b00160a94c235aso5762608wrc.2 for ; Fri, 15 Oct 2021 02:49:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=TSbEB3BwDLmVM1HNWqG2yqBKy93uV1whZ1iCqAbBG74=; b=BOlhbCDyHaN0DzF6ULrV4m8wOFtnj5FzTyK91IBweG44xkvB5M0fffkuXyx2tNQ9n/ aCCDN5p1dBlZrbh54pywOpefMnGVT1Cv+P7/LdoAxbh0d7AMLAFCH3GxY0M5JzFepM9k jTDzwDn7diVqIVzxVgoYzug9a9QhVU+UCXWWWMa6NBmeizZRpXxFvdYmBx2cydcqIUAC EyhBIFBKihYeVRkARMt2AkVRQmPOTY6IT/g4JLUpKUJkTm7JVfSOphNAT1NNg/nrImZ8 A5E7E+GeybicjZ/xb/HfonAl41wqlY0JHDZS2AMm9KPblVMbXvND7r288o/HTmgm71jG eACg== X-Gm-Message-State: AOAM533Msqad6L/x/ON3HRL5xcVABNGjd4PLlosQSTO8Vxji0CTQ689w YRYy3Daph70/cpwPvo1o2KP5bHracuxrdC6B2GbYHrK9LugFY90hdW134rixo+ZbQ61+q8QEA0l EHucwWD/jey5M X-Received: by 2002:a05:600c:19cd:: with SMTP id u13mr24821932wmq.148.1634291342646; Fri, 15 Oct 2021 02:49:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz/ogUflpwRDRS8wet8Xt6zPTdVYv1xkvcDCuaGAdghDK+81/p8M1BGu38LZ6JUi9aJYEj8Iw== X-Received: by 2002:a05:600c:19cd:: with SMTP id u13mr24821913wmq.148.1634291342470; Fri, 15 Oct 2021 02:49:02 -0700 (PDT) Received: from gator (nat-pool-brq-u.redhat.com. [213.175.37.12]) by smtp.gmail.com with ESMTPSA id a127sm9710231wme.40.2021.10.15.02.49.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Oct 2021 02:49:02 -0700 (PDT) Date: Fri, 15 Oct 2021 11:49:00 +0200 From: Andrew Jones To: Marc Zyngier Cc: kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Will Deacon , kernel-team@android.com Subject: Re: [PATCH 0/5] KVM: arm64: Reorganise vcpu first run Message-ID: <20211015094900.pl2gyysitpnszojy@gator> References: <20211015090822.2994920-1-maz@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211015090822.2994920-1-maz@kernel.org> Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org On Fri, Oct 15, 2021 at 10:08:17AM +0100, Marc Zyngier wrote: > KVM/arm64 relies heavily on a bunch of things to be done on the first > run of the vcpu. We also do a bunch of things on PID change. It turns > out that these two things are pretty similar (the first PID change is > also the first run). > > This small series aims at simplifying all that, and to get rid of the > vcpu->arch.has_run_once state. > > Marc Zyngier (5): > KVM: arm64: Move SVE state mapping at HYP to finalize-time > KVM: arm64: Move kvm_arch_vcpu_run_pid_change() out of line > KVM: arm64: Merge kvm_arch_vcpu_run_pid_change() and > kvm_vcpu_first_run_init() > KVM: arm64: Restructure the point where has_run_once is advertised Maybe do the restructuring before the merging in order to avoid the potential for bizarre states? > KVM: arm64: Drop vcpu->arch.has_run_once for vcpu->pid > > arch/arm64/include/asm/kvm_host.h | 12 +++------ > arch/arm64/kvm/arm.c | 43 ++++++++++++++++++------------- > arch/arm64/kvm/fpsimd.c | 11 -------- > arch/arm64/kvm/reset.c | 11 +++++++- > arch/arm64/kvm/vgic/vgic-init.c | 2 +- > 5 files changed, 39 insertions(+), 40 deletions(-) > > -- > 2.30.2 > > _______________________________________________ > kvmarm mailing list > kvmarm@lists.cs.columbia.edu > https://lists.cs.columbia.edu/mailman/listinfo/kvmarm > For the series Reviewed-by: Andrew Jones Thanks, drew 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 45061C433F5 for ; Fri, 15 Oct 2021 09:49:11 +0000 (UTC) Received: from mm01.cs.columbia.edu (mm01.cs.columbia.edu [128.59.11.253]) by mail.kernel.org (Postfix) with ESMTP id B1A3160241 for ; Fri, 15 Oct 2021 09:49:10 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org B1A3160241 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com 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 213484B17B; Fri, 15 Oct 2021 05:49:10 -0400 (EDT) X-Virus-Scanned: at lists.cs.columbia.edu Authentication-Results: mm01.cs.columbia.edu (amavisd-new); dkim=softfail (fail, message has been altered) header.i=@redhat.com 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 O7GI9EtEhhqI; Fri, 15 Oct 2021 05:49:09 -0400 (EDT) Received: from mm01.cs.columbia.edu (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id 213D04B17D; Fri, 15 Oct 2021 05:49:09 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id 6976C4B134 for ; Fri, 15 Oct 2021 05:49:07 -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 bemifLwON1P8 for ; Fri, 15 Oct 2021 05:49:06 -0400 (EDT) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mm01.cs.columbia.edu (Postfix) with ESMTP id 685BE4B0E6 for ; Fri, 15 Oct 2021 05:49:06 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1634291346; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=TSbEB3BwDLmVM1HNWqG2yqBKy93uV1whZ1iCqAbBG74=; b=HpvHZkPjdaosInKeC4A0s4kyY5dkUsxTYMHg1yAFeZl9u6U5S0ojThgeDa/C8jcudXvNpf ltkfbRZA0jFx5t/ihUJNutPE2sWRl68kud46CpfTs+901Ij5ZgyEfimcHizgw9LL7O9+5T GMfJGCBu9xqcdfRjDdMs5N/oGLI4jBs= Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-586-r_G_tQohOuCiFi3xIDuOdw-1; Fri, 15 Oct 2021 05:49:03 -0400 X-MC-Unique: r_G_tQohOuCiFi3xIDuOdw-1 Received: by mail-wr1-f69.google.com with SMTP id s18-20020adfbc12000000b00160b2d4d5ebso5776442wrg.7 for ; Fri, 15 Oct 2021 02:49:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=TSbEB3BwDLmVM1HNWqG2yqBKy93uV1whZ1iCqAbBG74=; b=z8yUmyKjOoz78XV4DMTjv3fCWGGXICeOBx57QvX8KayTRxdtBMD+WJ2+KfZ5GAxv5M Y+aPqWY9U9PEBg54kYkPezDBPzTJJyng/M7gFmF7nZGDvkAV4h8QCgfaj+rL+r1Q0ZPY hDcxbrMre5/ov+tB+vhOab5aFbZEbLdRLac//ZNou0O5PP/NbfayKz5ADQdwu/f00j++ o7asQyHFnRu4IACWFh45MGmJwEev885DwOTQMQeaZ9NP0kRg48n43mafZkGRMRz69F7C uftq5IKrrsYqpdA1HqBc+DmAcbcJOdPClbQfs50d+5vr2BzmAbuCqrgIQIjNkx7rxxeQ D7xg== X-Gm-Message-State: AOAM531Tc+qfffTjL8tkxi/g5/DOTrduLk9+p0V+MKOpdBV0cesbcYaS u8KFDgj+Yms9qSnWZRBtQwpnLwQUS0VhxBiRUboCpVPDi9L7Y5EZ7aGpwSsqAtEGfWkEVe1nRc3 nLA15vEeoGLpLpnBiL8lWE4Ci X-Received: by 2002:a05:600c:19cd:: with SMTP id u13mr24821929wmq.148.1634291342645; Fri, 15 Oct 2021 02:49:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz/ogUflpwRDRS8wet8Xt6zPTdVYv1xkvcDCuaGAdghDK+81/p8M1BGu38LZ6JUi9aJYEj8Iw== X-Received: by 2002:a05:600c:19cd:: with SMTP id u13mr24821913wmq.148.1634291342470; Fri, 15 Oct 2021 02:49:02 -0700 (PDT) Received: from gator (nat-pool-brq-u.redhat.com. [213.175.37.12]) by smtp.gmail.com with ESMTPSA id a127sm9710231wme.40.2021.10.15.02.49.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Oct 2021 02:49:02 -0700 (PDT) Date: Fri, 15 Oct 2021 11:49:00 +0200 From: Andrew Jones To: Marc Zyngier Subject: Re: [PATCH 0/5] KVM: arm64: Reorganise vcpu first run Message-ID: <20211015094900.pl2gyysitpnszojy@gator> References: <20211015090822.2994920-1-maz@kernel.org> MIME-Version: 1.0 In-Reply-To: <20211015090822.2994920-1-maz@kernel.org> Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=drjones@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Disposition: inline Cc: linux-arm-kernel@lists.infradead.org, kernel-team@android.com, Will Deacon , kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.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-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: kvmarm-bounces@lists.cs.columbia.edu Sender: kvmarm-bounces@lists.cs.columbia.edu On Fri, Oct 15, 2021 at 10:08:17AM +0100, Marc Zyngier wrote: > KVM/arm64 relies heavily on a bunch of things to be done on the first > run of the vcpu. We also do a bunch of things on PID change. It turns > out that these two things are pretty similar (the first PID change is > also the first run). > > This small series aims at simplifying all that, and to get rid of the > vcpu->arch.has_run_once state. > > Marc Zyngier (5): > KVM: arm64: Move SVE state mapping at HYP to finalize-time > KVM: arm64: Move kvm_arch_vcpu_run_pid_change() out of line > KVM: arm64: Merge kvm_arch_vcpu_run_pid_change() and > kvm_vcpu_first_run_init() > KVM: arm64: Restructure the point where has_run_once is advertised Maybe do the restructuring before the merging in order to avoid the potential for bizarre states? > KVM: arm64: Drop vcpu->arch.has_run_once for vcpu->pid > > arch/arm64/include/asm/kvm_host.h | 12 +++------ > arch/arm64/kvm/arm.c | 43 ++++++++++++++++++------------- > arch/arm64/kvm/fpsimd.c | 11 -------- > arch/arm64/kvm/reset.c | 11 +++++++- > arch/arm64/kvm/vgic/vgic-init.c | 2 +- > 5 files changed, 39 insertions(+), 40 deletions(-) > > -- > 2.30.2 > > _______________________________________________ > kvmarm mailing list > kvmarm@lists.cs.columbia.edu > https://lists.cs.columbia.edu/mailman/listinfo/kvmarm > For the series Reviewed-by: Andrew Jones Thanks, drew _______________________________________________ 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 4F3A7C433F5 for ; Fri, 15 Oct 2021 09:50:33 +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 8AA4560F59 for ; Fri, 15 Oct 2021 09:50:31 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 8AA4560F59 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com 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-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=+xshVjN99R1tHp4XIuOa/8vBs4eyG8zbaKKF47o1DbM=; b=tnSnzjzIMjDgFh wnPVbYpH6keuEcvkuAPxCoYzYcxl81vJ2ce4Qg3gyjPEIxqTvESuDLkvg5IuNBBHjPbA+mvyh0VOd f4d+RzPasA6SqOIkE6ORcuJ9TLdkfmvmBnrNmwojjtDmxhi6mEHeyr5hWzsXBZYvUiQnPte025Xk/ R80HXbDvBIA4ofAr5EDbhvidAzbWIIV7GbrZwWNguuB8Qwtd24baGkAO3hORwjLy7Dzj5JhySiOII QTAZ4WKaww70Q7e8qE2Za56kn+FlaEG8zpDmpGvaydr+VwoLvKRlMUFcQrIkvLM2DlZPLO6bvvCeG LOL9wZbJdfPA4e9wzvtg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mbJpy-006O6h-K3; Fri, 15 Oct 2021 09:49:14 +0000 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mbJpu-006O5t-1g for linux-arm-kernel@lists.infradead.org; Fri, 15 Oct 2021 09:49:12 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1634291347; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=TSbEB3BwDLmVM1HNWqG2yqBKy93uV1whZ1iCqAbBG74=; b=GxvXCt7ZAQY5ZyfhmuXNpxI8zw9e1wlsOChPvHJ7mCrnOTbglM0aEXdG9WCo4xsCwY8YBI 7z6OspFEc6rmUpVAbpg+GO2ZLrqGsf9OxkVRViG20xteJPd/YcvhYSdI9XShmkee++uek4 HtPXwWMD1CaX7w5Iyruw8AIeUvE0nlM= Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-104-ZDCydCjmP8S_9IaxI11WOQ-1; Fri, 15 Oct 2021 05:49:03 -0400 X-MC-Unique: ZDCydCjmP8S_9IaxI11WOQ-1 Received: by mail-wr1-f69.google.com with SMTP id h99-20020adf906c000000b001644add8925so2558723wrh.0 for ; Fri, 15 Oct 2021 02:49:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=TSbEB3BwDLmVM1HNWqG2yqBKy93uV1whZ1iCqAbBG74=; b=Mr4YorP9onGN3uzekpeSQ7JB4uoWdhWGGwGSPtXilpmz9L3eUbeaFWh5SIA/NdFnnj oxWLeiZzoM1sa4JpMxAilp0qrvVBJhjnxhUUQboX7sQxju1sMw+nO5KjTdPdhbIdP3Bo qxq6cc0rOGI/ywRxoGc7sw20aFS/S3BPqdULo6d96uL6Zqxd4acaP9W1AEhwY0ZPT1v2 ILjJdE65Zqx1+gVD6pLNV9tbVBY7Gaf5lWriVMh5+sIVXQD5dcIWyb6MU33hw9ORJjO/ 7+QOHgaTljj4mE7KmZlZyr1H8LhNdN6i0A/lRdUA5KUCdlqtAEygTP1RprmmjUUrQGfg Z5Pw== X-Gm-Message-State: AOAM532qVtzXrFJ3m3Ks8hhTS037l/JZdQmK5lR4I8kEgK502NEOVAaA KIRIv1ZQN5Mcf7I3fgv9vY58tQbJpvgTsvuDHo/1wisxqOLyKZJGtA/S1Rs+TQFANZWbL/3YXnw YkWZcmCNsp3fQOf5si+JBF+GO0xAbf7jbs5E= X-Received: by 2002:a05:600c:19cd:: with SMTP id u13mr24821930wmq.148.1634291342645; Fri, 15 Oct 2021 02:49:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz/ogUflpwRDRS8wet8Xt6zPTdVYv1xkvcDCuaGAdghDK+81/p8M1BGu38LZ6JUi9aJYEj8Iw== X-Received: by 2002:a05:600c:19cd:: with SMTP id u13mr24821913wmq.148.1634291342470; Fri, 15 Oct 2021 02:49:02 -0700 (PDT) Received: from gator (nat-pool-brq-u.redhat.com. [213.175.37.12]) by smtp.gmail.com with ESMTPSA id a127sm9710231wme.40.2021.10.15.02.49.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Oct 2021 02:49:02 -0700 (PDT) Date: Fri, 15 Oct 2021 11:49:00 +0200 From: Andrew Jones To: Marc Zyngier Cc: kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Will Deacon , kernel-team@android.com Subject: Re: [PATCH 0/5] KVM: arm64: Reorganise vcpu first run Message-ID: <20211015094900.pl2gyysitpnszojy@gator> References: <20211015090822.2994920-1-maz@kernel.org> MIME-Version: 1.0 In-Reply-To: <20211015090822.2994920-1-maz@kernel.org> Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=drjones@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Disposition: inline X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211015_024910_209603_071CEFDF X-CRM114-Status: GOOD ( 17.35 ) 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 Fri, Oct 15, 2021 at 10:08:17AM +0100, Marc Zyngier wrote: > KVM/arm64 relies heavily on a bunch of things to be done on the first > run of the vcpu. We also do a bunch of things on PID change. It turns > out that these two things are pretty similar (the first PID change is > also the first run). > > This small series aims at simplifying all that, and to get rid of the > vcpu->arch.has_run_once state. > > Marc Zyngier (5): > KVM: arm64: Move SVE state mapping at HYP to finalize-time > KVM: arm64: Move kvm_arch_vcpu_run_pid_change() out of line > KVM: arm64: Merge kvm_arch_vcpu_run_pid_change() and > kvm_vcpu_first_run_init() > KVM: arm64: Restructure the point where has_run_once is advertised Maybe do the restructuring before the merging in order to avoid the potential for bizarre states? > KVM: arm64: Drop vcpu->arch.has_run_once for vcpu->pid > > arch/arm64/include/asm/kvm_host.h | 12 +++------ > arch/arm64/kvm/arm.c | 43 ++++++++++++++++++------------- > arch/arm64/kvm/fpsimd.c | 11 -------- > arch/arm64/kvm/reset.c | 11 +++++++- > arch/arm64/kvm/vgic/vgic-init.c | 2 +- > 5 files changed, 39 insertions(+), 40 deletions(-) > > -- > 2.30.2 > > _______________________________________________ > kvmarm mailing list > kvmarm@lists.cs.columbia.edu > https://lists.cs.columbia.edu/mailman/listinfo/kvmarm > For the series Reviewed-by: Andrew Jones Thanks, drew _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel