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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A35BEC6379F for ; Tue, 14 Feb 2023 06:40:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231633AbjBNGkP (ORCPT ); Tue, 14 Feb 2023 01:40:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34220 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229713AbjBNGkN (ORCPT ); Tue, 14 Feb 2023 01:40:13 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 84DD5B747; Mon, 13 Feb 2023 22:40:11 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 205E860E8C; Tue, 14 Feb 2023 06:40:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E3561C433EF; Tue, 14 Feb 2023 06:40:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1676356810; bh=epEYT2bBFKhloOKJkQKS1toE8ZF4uZ/r0fMG2x/8Yuc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Lyf7vA2oE0qTtQcTHrOPakOqIdRGcOr3diK1jL93GrHP3JbutcqRuJhghYW2xlnuv tB4llqDiMgkYnRi+SX8qUb/NzZiCp0IeoZEFtl0n1fv7d5l+873DkLS3MGOJNUKqmU kuLv+Tjl+27mjIZ8X+zYzeL8MxxpdRVasAlyo1XE= Date: Tue, 14 Feb 2023 07:40:07 +0100 From: Greg Kroah-Hartman To: Tianrui Zhao Cc: Paolo Bonzini , Huacai Chen , WANG Xuerui , loongarch@lists.linux.dev, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, Jens Axboe , Mark Brown , Alex Deucher Subject: Re: [PATCH v1 03/24] LoongArch: KVM: Implement vcpu create,run,destroy operations. Message-ID: References: <20230214025648.1898508-1-zhaotianrui@loongson.cn> <20230214025648.1898508-4-zhaotianrui@loongson.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230214025648.1898508-4-zhaotianrui@loongson.cn> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 14, 2023 at 10:56:27AM +0800, Tianrui Zhao wrote: > Implement loongarch vcpu related operations: > 1. Implement vcpu create interface, saving some info into vcpu arch > structure such as vcpu exception entrance, vcpu enter guest pointer, > etc. Init vcpu timer and set address translation mode when vcpu create. > 2. Implement vcpu run interface, handling mmio, iocsr reading fault > and deliver interrupt, lose fpu before vcpu enter guest. > 3. Implement vcpu handle exit interface, getting the exit code by ESTAT > register and using kvm exception vector to handle it. Again, when you have to list different things in a patch, that is a huge hint that it needs to be split up into smaller pieces. thanks, greg k-h