Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp311344lqp; Wed, 12 Jun 2024 02:15:46 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU0f2h3b9x1Ri2SKxZde+f8ZF7fSpyW6tilobhYd33fsUHFkBQU5nSDcpck0SottwL8iMp0Y7M2Diy0gj6IzT81x3DBCIb3qgomNB1i3g== X-Google-Smtp-Source: AGHT+IFFXCXxduNqxbxG9ahjJdpzqxCj4tybFQ0Se9GZGaHZzofYm8guduvfhALFh1aClFiMbMj9 X-Received: by 2002:a05:6a00:4b09:b0:705:b2c7:285d with SMTP id d2e1a72fcca58-705bce1df15mr1319980b3a.14.1718183746461; Wed, 12 Jun 2024 02:15:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718183746; cv=pass; d=google.com; s=arc-20160816; b=JaKtIZpnk3cvGlK4Njc8S3gY0bx8sn9KgUgMRs1Rlraj0An9r5eklfFuy9iRTu8U04 j8zkh7+ZB5ZsJzbHjIzAIl3iFn819xuqO87HoSTm/tEjHo21PwmKnlXFGGcevaeWMcQr 7ggNrPUQTrYOa13x5qfnzQ9dMBhbjVYDkxQDfb3Lp9aQo4fG6H8qFOCGRkt5euuGhAGH SPHF3oH+FbpdW3VDGixZTShIqp6PXg3SZy9X++fz8cEFRYVCpjPGr1Yq7YUrW8aRPIpX 9AOo7mbi1FkBLI9z8cTnCFee89nOj1FpG4CUAOpekEQaNXX4srXXcBgbuS8HOVT+s8QA X16g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=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=un8SRk1QK3gh73P062VSrSrJKKXRnZBfCkdy6o8Wkfg=; fh=drc6txrRjf06trBShp4rHoxWh6zlAwQ5srmCdF/n+Tk=; b=Qs4h0TTx/Nl49p3PJZlONyXZJq9ISPVgzppDyj0RgkeLaju0os4tKI5NQ84Y1gHhBp NOpBgVawYdv8Jsdb8FYN+unAP8qlwKr89mUWnzlY9x10lolhxX9V+6hvAGL21Xf5tMVv Hbu05siOmprW6+KisEFH0f+AH1TA95WRoyNtWXQbP6phecM+DO8bH3npm/yobiIlf1p5 gxPoK6XIu8V+YYZNkAa02geh0cpF3pu4KOY9G01Nid5UZNFpm0TCbVRQssC/lLnkMIDx NIWb8L3rAqYRXVfex3DIYii7wXRcE5Ddy9bRcSqG0+a3jWTxqMEy7dbHFymxjNGRK2Kw ezcg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=gIRt93KF; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-211243-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211243-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-6e3762e55f8si7568353a12.787.2024.06.12.02.15.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 02:15:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-211243-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=gIRt93KF; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-211243-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211243-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id D2E652816F2 for ; Wed, 12 Jun 2024 09:15:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C563A16D9D2; Wed, 12 Jun 2024 09:15:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="gIRt93KF" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (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 5981022F03 for ; Wed, 12 Jun 2024 09:15:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718183731; cv=none; b=hqdIm4xvW/euQdLRM3Gb18HQQjf5sr02zw/8wQaUjRgtfk9CWzbhBlc6DY99w0qvOSE+bdI4p9eCtIUlHdsxU8HgIZiwSGfrCmKFptmfzp589ZrKmX6h3VspDHvQkI5wOr1oBYwScNfPRMJQhNbfhu20V1zSTvjLG7kzeZWwF7U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718183731; c=relaxed/simple; bh=ZZLDZGrsXleuFBc4RsExldckDr+PAkGbC1Cmc2bDEB8=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=MfKhMClHsIvY74xyoPWZa4unqgDMOQhk7tvpp3DISSxVsigJJ314QobZEkdpKpz9yX/IzZn6hDo4/a8jvvAu6HU8vEjtBbrTSQWPtM7nGou9huSxsSgJiN9D+G2dzafqATPKbApKwSMMYaw2NslFDafbiWzB/OYoip5j1P2NXKw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=gIRt93KF; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1718183729; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=un8SRk1QK3gh73P062VSrSrJKKXRnZBfCkdy6o8Wkfg=; b=gIRt93KFx2i0XCm+L8zMKHuXL6HrCpzHFHb73tBciPEoJNO2CS38Paeftb82QFDB0vmafm VyumD6ZUo3HkPpoH9EAv0fX/ZXw2mdaeq3ktJL4LJ6mehOUdZrnwf9ppQe8FGcRWjCmAge 2pzsX1AKazTCZUVix4/LA+vb62V6V68= Received: from mail-pj1-f72.google.com (mail-pj1-f72.google.com [209.85.216.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-524-v37eu0aJP1ehX3_e7sDAAA-1; Wed, 12 Jun 2024 05:15:27 -0400 X-MC-Unique: v37eu0aJP1ehX3_e7sDAAA-1 Received: by mail-pj1-f72.google.com with SMTP id 98e67ed59e1d1-2c2d6d44becso1363166a91.2 for ; Wed, 12 Jun 2024 02:15:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718183726; x=1718788526; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=un8SRk1QK3gh73P062VSrSrJKKXRnZBfCkdy6o8Wkfg=; b=YtV1imE//yPVOY6UIpNHlGEz79Q+PVRiIa/Su65VieJtbik6AP/spqGTnR0XEgSGvc hEUjmfxOr9D3VYwMtS0F9QlTEsnsN2Y0jxIqbZmkmjGentbvI/1B/aH7UD2GQ3ma6OX1 bW8+DmLBA6Dz/dRGMZrZT0/PBRDevcDUYhTxtP7wH2ZZhhCyB2UnoXumnV6lqmTudlur ASnIfHXct/J0cMgCa4dFQhCOvpIsaNH/wL5gIqrropqC6ovuofQGrJt20s8ZqZal1Tfe WeXm6/zgMlZmJKkfEYsM92nnygqzj2kUE0DzO/4drVfiCxMDFSw3lPxWinBW6zuXuSYB Fe8w== X-Forwarded-Encrypted: i=1; AJvYcCW9Y5bmkCRtQv8KvBq4yAxNRVkmAbmu3loeIk2B5qts/fByiHdfqI6/OyNsVwco8BZalzi7OXbuH1XoXlkLwbo/CBtIn4EliKVV9j7v X-Gm-Message-State: AOJu0YybjmMsOQFV3wz0DQzT3DgPAHS2J/Dz7xx8IJIj2URbMR+Ml3o1 OI6xpMO9VrbZpgQStF25tO2TWhWsYzDP30gWcoSGy/gegTO5fV6fhwtbiJHl2shMIlFvJWTgJp8 AHUJPS7ftke/cw1hTAtqmAZG4dcdt1q14i+TJ6bGRdWWxWqdakkc4CLdII9pQQA== X-Received: by 2002:a17:903:32d0:b0:1f5:e635:21e9 with SMTP id d9443c01a7336-1f83b5f24f8mr14183385ad.2.1718183726604; Wed, 12 Jun 2024 02:15:26 -0700 (PDT) X-Received: by 2002:a17:903:32d0:b0:1f5:e635:21e9 with SMTP id d9443c01a7336-1f83b5f24f8mr14183205ad.2.1718183726217; Wed, 12 Jun 2024 02:15:26 -0700 (PDT) Received: from [10.66.61.39] ([43.228.180.230]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1f6bd75f2adsm118813225ad.24.2024.06.12.02.15.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 12 Jun 2024 02:15:25 -0700 (PDT) Message-ID: Date: Wed, 12 Jun 2024 17:15:20 +0800 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: [RFC PATCH v1 0/2] KVM: arm64: Making BT Field in ID_AA64PFR1_EL1 writable To: Oliver Upton Cc: Marc Zyngier , kvmarm@lists.linux.dev, Eric Auger , Sebastian Ott , Cornelia Huck , Catalin Marinas , James Morse , kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, Paolo Bonzini , Shuah Khan , Suzuki K Poulose , Will Deacon , Zenghui Yu References: <20240612023553.127813-1-shahuang@redhat.com> Content-Language: en-US From: Shaoqin Huang In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi Oliver, On 6/12/24 13:30, Oliver Upton wrote: > Hi Shaoqin, > > On Tue, Jun 11, 2024 at 10:35:50PM -0400, Shaoqin Huang wrote: >> Hi guys, >> >> I'm trying to enable migration from MtCollins(Ampere Altra, ARMv8.2+) to >> AmpereOne(AmpereOne, ARMv8.6+), the migration always fails when migration from >> MtCollins to AmpereOne due to some register fields differing between the >> two machines. >> >> In this patch series, we try to make more register fields writable like >> ID_AA64PFR1_EL1.BT. This is first step towards making the migration possible. >> Some other hurdles need to be overcome. This is not sufficient to make the >> migration successful from MtCollins to AmpereOne. > > It isn't possible to transparently migrate between these systems. The > former has a cntfrq of 25MHz, and the latter has a cntfrq of 1GHz. There > isn't a mechanism for scaling the counter frequency, and I have zero > appetite for a paravirt interface. Thanks for letting me know the cntfrq will block the migration between the two machine. And we don't have the solution for it, which means it's impossible to migrate between these systems which have different cntfrq. > > On top of that, erratum AC03_CPU_38 seems to make a migration from > Neoverse-N1 to AmpereOne quite perilous, unless you hide FEAT_HAFDBS on > the source. > > These issues are separate, though, from any possible changes to the > writability of ID_AA64PFR1_EL1, which still may be useful to userspace. > I think I can still making the ID_AA64PFR1_EL1 writable to enable migration on some other machines. Thanks, Shaoqin -- Shaoqin