Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp301936lqo; Tue, 7 May 2024 23:18:48 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXSaMR0jI3bcrq9cmTpEJ7FqnjCwrllwZrAN8q7/PXQwWMVpzj5bPFi8FNrmX1yaWzxFiyHOiJ9sbkq4ECyBwPt7gLR/LkEH7DbzsUgVw== X-Google-Smtp-Source: AGHT+IEJuWQLrp5+mIrH5RtLOs+Lg7rimhkomCq7oG+gfkwdG4Nd48eGojltgux8cEcToweLMv7R X-Received: by 2002:a17:903:1104:b0:1ec:3019:c72c with SMTP id d9443c01a7336-1eeb089c604mr22397745ad.68.1715149128196; Tue, 07 May 2024 23:18:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715149128; cv=pass; d=google.com; s=arc-20160816; b=dz3cDouYjYrGCgI2YjlPOUi4pnkkMzHFOI078sg7WhSn3G5Q9UNczkuQLGIJl3GIzo hvIsoG9VhfkjKAaWhVbAqfV50XcriakxmFC6BGXtSdURrE91kxyav4vs0p9DrtccpW/o 5uHkrrMiyG4llwu/pKC86rcIIQuUG7WY7OFfgJ/faExdAbPI4mDd32AvAYOE/X5vqquF rFpThD+8Gn7ZQ0TcPOzF1nlXzvPXS33xSV6XmGwe6gNE3JSFEhwbxtgOz+w5ghghrk1W DYaHSUNSXtM4rSeI9nWxFaQv9eE0n7SQHaOOTmGa2YdPqbhe9OjglAxXm/S4D+dWnXgM hSMg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=ui-outboundreport:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=QC5Thq9srz5G9jQykIi/plq13UhWWO3cREN9A1t5BmU=; fh=3+lbx+F8W0l1ipf5Okglbe3dBQ/81pchS22+NLrVAQk=; b=t5ux6sNXHwmBpdgJ8VI0vkFfllZnUcUP/cpS+jm3orEAOPab4GoqSNSFtm/QU/xYwX CFnWjbhs0CYodUlE1OzntC8NMUeQsUsvldtjZg2RNkZpgRghap9oTfZcb0CSQmprCy4k KCq6YAEhdUqy77zWjHNH2gA2ul8iCsVow+oZCxkNouuooN7V3w09bTpVelzKkb6RoLiH HDKf4j83Ryn2mcofSJFI54bCtBvxlV8DGMHwYYq4+jN+hilCebJ8Hy/OAzcrTjGr+hYy rGoFCTKMsNE4pbJ1EFlj+59XI3uP2PrxVo6jQi8KaFQaHWBtFt08SKDrlQ8i8xf/Q+MW CuFA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@web.de header.s=s29768273 header.b=awMSAFf4; arc=pass (i=1 spf=pass spfdomain=web.de dkim=pass dkdomain=web.de dmarc=pass fromdomain=web.de); spf=pass (google.com: domain of linux-kernel+bounces-172737-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-172737-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=web.de Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id y22-20020a17090264d600b001ec46c71885si9385872pli.635.2024.05.07.23.18.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 23:18:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-172737-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=@web.de header.s=s29768273 header.b=awMSAFf4; arc=pass (i=1 spf=pass spfdomain=web.de dkim=pass dkdomain=web.de dmarc=pass fromdomain=web.de); spf=pass (google.com: domain of linux-kernel+bounces-172737-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-172737-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=web.de 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 BD162B21D9C for ; Wed, 8 May 2024 06:16:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C632615E88; Wed, 8 May 2024 06:16:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=web.de header.i=markus.elfring@web.de header.b="awMSAFf4" Received: from mout.web.de (mout.web.de [212.227.15.3]) (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 EE0B21803A; Wed, 8 May 2024 06:16:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=212.227.15.3 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715148985; cv=none; b=T80iKMWpZ4YOam+wKhD5UGe3PR4TCkpH3Rk/MGhlM7/nxSYc3M8fSehI476T+H4NtdLXJVKmidnsachmGoX9QW0nekwoCv54WaPowkz3DtEoPnM4pHLcpDQ06quQ7/mLcRh55T50/QWCKWAC05JG4EkHVQP7GrWYx3nk65JKPwM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715148985; c=relaxed/simple; bh=QC5Thq9srz5G9jQykIi/plq13UhWWO3cREN9A1t5BmU=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=qmzuyAi8wv+ZBmV6tnEu3a5hR2LYIYu3fENwEz7kOJdCKweyDt4znRlGqt8A4BQoXeSJQU6zplv2UXtDYhtxmlyKXVJxC2r1XuWduEe6tMME/oMPSkv7vAWPkEFi/e54hH5mI/aAYiBszu3qfNUUshGg8tfqPEbROai6viWR5jI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=web.de; spf=pass smtp.mailfrom=web.de; dkim=pass (2048-bit key) header.d=web.de header.i=markus.elfring@web.de header.b=awMSAFf4; arc=none smtp.client-ip=212.227.15.3 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=web.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=web.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=web.de; s=s29768273; t=1715148932; x=1715753732; i=markus.elfring@web.de; bh=QC5Thq9srz5G9jQykIi/plq13UhWWO3cREN9A1t5BmU=; h=X-UI-Sender-Class:Message-ID:Date:MIME-Version:Subject:To:Cc: References:From:In-Reply-To:Content-Type: Content-Transfer-Encoding:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=awMSAFf4OdfehQFVbXUvgwM/I0QWafDexZx8dK+IrkofR4bbJGOpS5HmWQlRQ8AO nwG1VfvF1G+Kzol7He0s2KX8duUgm5a7kGOwpPkMdk1+VyNPpl8FINX5CD9DiQoFM JJiJYSHwm6Vhos1v4pA5BUtpYRop9QQMVHszeNrIMw4GXhcOsKbFAmbUh1rNsqEi0 4NkiMEC/Gz5y8Icbw/RYzrfrBqR1xmBsjOnESdhTIqyA9yOikTL0hKU4Lp67OGTL2 xGnG+Z1Tf1u44ioyuiH9YAuGMScjnzcURj7Yjb/e72oJyrcBv9k6IM3iiQG8yI416 is9Y4H7sNvUpcJFElw== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Received: from [192.168.178.21] ([94.31.89.95]) by smtp.web.de (mrweb005 [213.165.67.108]) with ESMTPSA (Nemesis) id 1MXoYS-1s7yGW0iqq-00KrEi; Wed, 08 May 2024 08:15:32 +0200 Message-ID: <78d7c0bd-172e-4049-8c6d-3f438f6cf40d@web.de> Date: Wed, 8 May 2024 08:15:14 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [v5] LoongArch: KVM: Add PMU support To: Bibo Mao , Song Gao , loongarch@lists.linux.dev, kernel-janitors@vger.kernel.org Cc: LKML , Huacai Chen , Paolo Bonzini , Tianrui Zhao , Wang Xuerui References: <20240507120140.3119714-1-gaosong@loongson.cn> Content-Language: en-GB From: Markus Elfring In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:iGtb2zn36MxZ7vfbF9REWRDWCL8zDuOUhZrKQCbAcqwdZxB9Q8p 2URD7gOfWa1f2mSUIwdhbFlbxodEA/+HHkuTwzk/F8A7S/golylHKXFnsIEvcbn3wkqAweu AsWGrGp347Jx7ccP7nOvX8lPeU0u8JJVvPWJ8sn4jTFt4Ph740ECVOw3iVjxRqfPYbeBPsP nXcCErru2fVJimGNSaM6A== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:Bamw8UZIMhw=;b3D+mSHsc9GTYB8gDG7hiq/HZHd 2Mb/vcArTkb+0dKQXhCXSYLlS/rWgTBq9qGnkjJducVrk4h6d8almVfrMDv642jLfZz0Y+m1+ nVOD3y2o4OfVi3YBoYaWLVuu1XHBCoyvq5FfYBSTVTWUSW5svAM07jRIg5Mb85QlKh+2yAPRN wUOGk2E2VX6yJtX83bzJ0MY76/ntIV7IMuM9i4yyQjiYyOwhAHiEFPS3K4ikWNznmhMXqvVbB OItn/1nYv+6uSXKlMXfNjRQ3CFeCFVt8emRrMMp/1EVNzNQKQutNfcNX2E56X/mcZiEnvN0B5 AXElR8Q3/7uXjVFGVebaiQpKlBiQlA9naJGnGKpC5t8rIEFgYfghHsE59H75CdjKBch2diwtc B8G4mFQZkLiAorbafLn60d1DS6IJpml5syStzPwWC2kLyU32JmvCttTJfWr8C8/t7R859xrQB lKUillHxmEqHIsogdow/zh5WwiiOo/DNEe4/sSCG4NPRkPk2MtPr2wvxdiYB6k16WtgRzeQfN K4yTsqP/FhDRTxn9UWg5DJ0WWlv1WuYXiQBxtrtMg2ZTgWemGmw/gLwSCITXefmUSriEFWswO OI4++LFK2N80BoR5H2GXt8cNt9JlccU4hEphihVuRm7aWwfqqStw0U/t3C2Xv56nzAPzA/NJr E211hnRau3D/4ICRwz/Mb4seoa2i8Tl5wFpnT60QF9JbntyBp/j/AEhGQNhfM2lKeNaS4ngbF dZMLj/tw8Kg1oa3NTTfiIC/UTmugJBKN/i84rdQoVQM91ElhOyrq/qz52TUwm8ZTjLXENjal8 prqLxZnyZRh0Akv7Zg/vTQ3/XzDzDTwmHTLJSPhj1kEig= > Reviewed-by: Bibo Mao =E2=80=A6 >> - we save the host PMU CSRs into structure kvm_context. >> - If the host supports the PMU feature. >> =C2=A0=C2=A0 - When entering guest mode. we save the host PMU CSRs and = restore the guest PMU CSRs. >> =C2=A0=C2=A0 - When exiting guest mode, we save the guest PMU CSRs and = restore the host PMU CSRs. Do you find remaining wording concerns less relevant fur such a changelog? https://lore.kernel.org/lkml/c4ff2987-df22-4338-8a78-5efa2c7c23d6@web.de/ https://lkml.org/lkml/2024/5/7/800 Regards, Markus