Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1805151rbb; Tue, 27 Feb 2024 01:26:47 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCU5quQeNZgwC/RldiiwbCx7oSRV7SwcNGbVBaXRD9iPrQzuDs9NRNMU5oysqoMusUBp++Hkb1fraeKH86us51VmuxDgeS3d7K247RdPDQ== X-Google-Smtp-Source: AGHT+IEfLGNpPb13odlym8N3t1aviFb8jHQqmhQKIYwpeIKrzXg4bE4DAh6bbY29im1J39Rdlhwe X-Received: by 2002:a9d:6c83:0:b0:6e4:7e89:1205 with SMTP id c3-20020a9d6c83000000b006e47e891205mr9456368otr.9.1709026006796; Tue, 27 Feb 2024 01:26:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709026006; cv=pass; d=google.com; s=arc-20160816; b=qrSJnKs3vM4Rx7D8lcdeI0ryOAOy+yL8w1+FIhHHyf61nvDPv2rulbHYfwgZtuIWTZ 8n2yCCPiDah7fe5XhNJk7PplZ9GPiGT+5790M72Cd6CTXeixXWEeESWwpY3b8rqPyuAs IgF99BD5+5sBgFo/PQZCmQoVXQY3K28hDFyS0VnN/TZGXPRMT6TsehCCKjlC0fyvoqla zwq1TqA4jaOL8zMIk3NuMl54WwXo45xlc7SyQH/3Y43nUk335fJCd7qyHesxC+nvdMwP +OvYn7TqwZXkZQ7I3MqbtftT1hwgXKJMyG4lki75hwp/1Qy6SDPXydNj/czBBb+H48IX JXqg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:autocrypt:references :in-reply-to:date:cc:to:from:subject:message-id:dkim-signature; bh=9hmIZ0VAcZijtw9+grDsuw2iSovuR2dLjrzX7bbYo/A=; fh=MNzTkvpdRFYC1IaHnYsPBpbdcWPoR4SUZmJpyImuW4Q=; b=QjR83W2+I5ulMBOlclWX45dMXqRdmNf0fHx3q492SJBMIMnl+vlTZ0FrM7WZrmYXf8 KNRnqepVsvg+xeJ0ptCjd+5Nd4cCQKV3zwK2Mt1ah9c+xt815WeqMuYhmTPaTy4VhvXR 0l1cmrDVvSQsds5PSsNVve1j0ZTy5LbLzVd38fjjlcElYOX88v8rXmJhdJ5EtOlS4azB iN9H+0lhsd0NsVspheMIqFWEQv36NimKX86+JKoTkiwmsjWTwQcCc2oKtmdZIz0sN49A 050M22v5LNhEco0injJM13riqW0vR9CnQAtF99yMCNULjnNc3uKJ32GCfy97MKDDlBMk DSRA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@xry111.site header.s=default header.b=JqADrn89; arc=pass (i=1 spf=pass spfdomain=xry111.site dkim=pass dkdomain=xry111.site dmarc=pass fromdomain=xry111.site); spf=pass (google.com: domain of linux-kernel+bounces-82907-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82907-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=xry111.site Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id b4-20020a636704000000b005dc50605acfsi5120320pgc.519.2024.02.27.01.26.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 01:26:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-82907-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@xry111.site header.s=default header.b=JqADrn89; arc=pass (i=1 spf=pass spfdomain=xry111.site dkim=pass dkdomain=xry111.site dmarc=pass fromdomain=xry111.site); spf=pass (google.com: domain of linux-kernel+bounces-82907-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82907-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=xry111.site Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id EBC86B28589 for ; Tue, 27 Feb 2024 09:06:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 24E1E135A74; Tue, 27 Feb 2024 09:06:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=xry111.site header.i=@xry111.site header.b="JqADrn89" Received: from xry111.site (xry111.site [89.208.246.23]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E7DD754BCB; Tue, 27 Feb 2024 09:06:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=89.208.246.23 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709024772; cv=none; b=QOp70s7GBRmkNmrVF4rAKGuIosEIHk+TGXWUP24hZk+QDPwoLECcXQz8K4jx8Ffn6+sywi6kCVEUiMQtV4r9hIoCV2ZNGsDd07KJiCDN/2+orUjUZuoI1+61metPXwD6SvMvmfrXKdOR57q28RAg5maPRpxFvXGbWfamk6jDcDk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709024772; c=relaxed/simple; bh=n4VE9YfSvDIgD5KVbQqRs4ZGP82u4xjDxIlsieejVz4=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=ij9pbTeMrzla55NEdro8t2qys/3eOI8Mcgiqt+WSHhSYqFf+VxSYnO37T2J1L2Ke61o4V7ju5pYe0Rp6WJNDfYhIBsI3eOhZrb5bIzHSbcwN8IriMFbSRcgG7hfR/CsxfP71MyVK6o4oWC0VenJESWpdyWB3SG4O6qnVVu5sxnE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=xry111.site; spf=pass smtp.mailfrom=xry111.site; dkim=pass (1024-bit key) header.d=xry111.site header.i=@xry111.site header.b=JqADrn89; arc=none smtp.client-ip=89.208.246.23 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=xry111.site Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=xry111.site DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xry111.site; s=default; t=1709024766; bh=n4VE9YfSvDIgD5KVbQqRs4ZGP82u4xjDxIlsieejVz4=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=JqADrn89IhcLGCkDQse9CAsivTzeTpWqNi0BkB12AARvNB9Y//2PvHkUkEAWj2zvy l9ycw/8QiO6Nz84Hgc7HfAAwxap21qsUy9++sygPatH60Gnd3nk4leC9xPvPgJi4gS El6VWagVC4pI98hDQ5D5gRxr7ouMvb07ydhRUby8= Received: from [192.168.124.4] (unknown [113.200.174.20]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-384) server-digest SHA384) (Client did not present a certificate) (Authenticated sender: xry111@xry111.site) by xry111.site (Postfix) with ESMTPSA id 6A10A66AF5; Tue, 27 Feb 2024 04:06:03 -0500 (EST) Message-ID: Subject: Re: [PATCH v5 3/6] LoongArch: KVM: Add cpucfg area for kvm hypervisor From: Xi Ruoyao To: maobibo , Jiaxun Yang , Huacai Chen Cc: Tianrui Zhao , Juergen Gross , Paolo Bonzini , loongarch@lists.linux.dev, linux-kernel@vger.kernel.org, virtualization@lists.linux.dev, kvm@vger.kernel.org Date: Tue, 27 Feb 2024 17:05:59 +0800 In-Reply-To: References: <20240222032803.2177856-1-maobibo@loongson.cn> <20240222032803.2177856-4-maobibo@loongson.cn> <06647e4a-0027-9c9f-f3bd-cd525d37b6d8@loongson.cn> <85781278-f3e9-4755-8715-3b9ff714fb20@app.fastmail.com> <0d428e30-07a8-5a91-a20c-c2469adbf613@loongson.cn> <09c5af9b-cc79-4cf2-84f7-276bb188754a@app.fastmail.com> Autocrypt: addr=xry111@xry111.site; prefer-encrypt=mutual; keydata=mDMEYnkdPhYJKwYBBAHaRw8BAQdAsY+HvJs3EVKpwIu2gN89cQT/pnrbQtlvd6Yfq7egugi0HlhpIFJ1b3lhbyA8eHJ5MTExQHhyeTExMS5zaXRlPoiTBBMWCgA7FiEEkdD1djAfkk197dzorKrSDhnnEOMFAmJ5HT4CGwMFCwkIBwICIgIGFQoJCAsCBBYCAwECHgcCF4AACgkQrKrSDhnnEOPHFgD8D9vUToTd1MF5bng9uPJq5y3DfpcxDp+LD3joA3U2TmwA/jZtN9xLH7CGDHeClKZK/ZYELotWfJsqRcthOIGjsdAPuDgEYnkdPhIKKwYBBAGXVQEFAQEHQG+HnNiPZseiBkzYBHwq/nN638o0NPwgYwH70wlKMZhRAwEIB4h4BBgWCgAgFiEEkdD1djAfkk197dzorKrSDhnnEOMFAmJ5HT4CGwwACgkQrKrSDhnnEOPjXgD/euD64cxwqDIqckUaisT3VCst11RcnO5iRHm6meNIwj0BALLmWplyi7beKrOlqKfuZtCLbiAPywGfCNg8LOTt4iMD Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.50.4 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 On Tue, 2024-02-27 at 15:09 +0800, maobibo wrote: > It is difficult to find an area unused by HW for CSR method since the=20 > small CSR ID range. We may use IOCSR instead. In kernel/cpu-probe.c there are already some IOCSR reads. > It is difficult to find an area unused by HW for CSR method since the=20 > small CSR ID range. However it is easy for cpucfg. Here I doubt whether= =20 > you really know about LoongArch LVZ. It's unfair to accuse the others for not knowing about LVZ considering the lack of public documentation. --=20 Xi Ruoyao School of Aerospace Science and Technology, Xidian University