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 C78AAC6379F for ; Tue, 14 Feb 2023 10:00:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231740AbjBNJ7t (ORCPT ); Tue, 14 Feb 2023 04:59:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232314AbjBNJ7L (ORCPT ); Tue, 14 Feb 2023 04:59:11 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5B1B725B98; Tue, 14 Feb 2023 01:58:20 -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 B7BF96150D; Tue, 14 Feb 2023 09:58:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9C3C5C433D2; Tue, 14 Feb 2023 09:58:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1676368699; bh=OU9XaxlzIQNm9uPoSElC+25TvF2PsT501YwBQ7EdhCU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ZNIpNVUu5NKWJ2OPxfSC7tnHbL6lgxuXuwdPCP5gl5gWBFxbVTdAACSmagfVWjewx O7m9GYOYk/+lrirlWzbu6Ro/o43n/tVE1Nr/c185YifxFrNyumd3rUbfeCrMmojOTM JfuOyFlOb1riQJV7vPBx4NDF2QOuzQiaAGqXjHtc= Date: Tue, 14 Feb 2023 10:58:11 +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 01/24] LoongArch: KVM: Implement kvm module related interface Message-ID: References: <20230214025648.1898508-1-zhaotianrui@loongson.cn> <20230214025648.1898508-2-zhaotianrui@loongson.cn> <6fd2ca5a-7243-0627-79e9-8c8bd840adc2@loongson.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6fd2ca5a-7243-0627-79e9-8c8bd840adc2@loongson.cn> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 14, 2023 at 05:00:56PM +0800, Tianrui Zhao wrote: > > > +#define KVM_GET_CSRS _IOWR(KVMIO, 0xc5, struct kvm_csrs) > > > +#define KVM_SET_CSRS _IOW(KVMIO, 0xc6, struct kvm_csrs) > > Why does this arch need new ioctls? > We want to use this ioctl to access multiple csrs at one time. If without > this, we only access one csr. What is wrong with accessing only one csr at a time? Isn't this what other architectures do? > There is another function, can we use the KVM_GET/SET_MSRS to access our > csrs? I do not know, that's up to the KVM developers to answer. thanks, greg k-h