From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 509B73A453B; Wed, 7 Oct 2026 13:11:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791378673; cv=none; b=MqVzD+wHe3ushr8e+hhbpxV6AUtpwqssvz7l4T9dH0B0JenSTdePozT/UIofu9JYZYEWK9vSqTdISXgw62L4NC+ZxvjZWfZkiFvtZwLKgSyEw8JNFKF98DbvgHZ0ELaoDrtKdLO2PK0br+wKvZBXouWlSsP+6g3Pwl8Nw8FfOMA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791378673; c=relaxed/simple; bh=aQPC+Yw1LXnFEbwa2Z4tr5U+8DNSNTgby5HUOWLpEkQ=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=fmg8uhytqoetX6rL0rz58LTi0+QG7leM5Nc84EddqXOZZFu9Vqju691+eW6g33FEyBMNFQrwdofQH6MlMtuib9TVxLnjwCpYsF6f4EYiosViRB6o6Rh5J+ra4dXrD3mBmhnLh6FwTR4PROCjaRPq/RoHss5p6ro2JbhG5nRVugU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b=U9sRHUeu; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b="U9sRHUeu" Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 4A2031595; Wed, 7 Oct 2026 06:11:01 -0700 (PDT) Received: from [10.57.10.153] (unknown [10.57.10.153]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 9716E3F66F; Wed, 7 Oct 2026 06:11:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1791378664; bh=aQPC+Yw1LXnFEbwa2Z4tr5U+8DNSNTgby5HUOWLpEkQ=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=U9sRHUeuLEhsrHnA+pCnGFP1F7eIFMBxSK4cMcQ48GUMGIU9jmj9OMP/kbwdDtvgD yX/7zMMyJMhwsw5oP8/tPZ4nnTt7cg2CobLtBcpJDqTc9DE6ehnevr3pGfCT/6m1ab T3SxDxXmEdhUeQFi7n2OIlMVc1ZRyxiihQX95zbI= Message-ID: Date: Wed, 7 Oct 2026 15:10:58 +0200 Precedence: bulk X-Mailing-List: kvm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v23 02/14] KVM: arm64: Disable Steal time accounting for protected guests Content-Language: en-GB To: Fuad Tabba Cc: kvm@vger.kernel.org, kvmarm@lists.linux.dev, maz@kernel.org, will@kernel.org, catalin.marinas@arm.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, steven.price@arm.com, aneesh.kumar@kernel.org, oupton@kernel.org, gshan@redhat.com, joey.gouly@arm.com, yuzenghui@huawei.com, linux-coco@lists.linux.dev, gankulkarni@os.amperecomputing.com, sdonthineni@nvidia.com, alpergun@google.com, fj0570is@fujitsu.com, WeiLin.Chang@arm.com, lpieralisi@kernel.org, enju.kohei@fujitsu.com, sudeep.holla@arm.com, jonathan.cameron@oss.qualcomm.com References: <20261007073537.2454351-1-suzuki.poulose@arm.com> <20261007073537.2454351-3-suzuki.poulose@arm.com> From: Suzuki K Poulose In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 07/10/2026 11:51, Fuad Tabba wrote: > On Wed, 7 Oct 2026 at 09:35, Suzuki K Poulose wrote: >> >> PVTIME support is advertised by KVM_CAP_STEAL_TIME, which doesn't take into >> account the kvm instance. Even with that, a VMM could skip the CAP check >> and proceed to configure the PVTIME as we don't do further check on the >> DEVICE_CTRL. Tighten this up by passing the KVM instance around wherever >> possible and catch things early. >> >> Reviewed-by: Fuad Tabba >> Reviewed-by: Gavin Shan >> Tested-by: Gavin Shan >> Signed-off-by: Suzuki K Poulose > > Someone beat you to it. This is already in kvmarm/next as a5b0f36a045e :) Thats fine, thanks for the pointer. Cheers Suzuki > > Cheers, > /fuad