From nobody Wed Dec 17 15:36:08 2025 Received: from mail-yb1-f202.google.com (mail-yb1-f202.google.com [209.85.219.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 95A071DE4D6 for ; Tue, 7 Jan 2025 04:26:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.202 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736223972; cv=none; b=Jrxg1dU01MMtxLs7E9FwGGn4RpzPkyK+SeBFtnIRVhnGGkLFUxOi5A8IwIH326JYSF/f3BzXGIxSczYpVeI+iv23Ire5zepijOWGmAid8B8Fw0cAR8vQLCCOW++8x4KqJxt4bbmCazSs8m4Ako/vG61lSUOycfDqo4QOnANc7Po= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736223972; c=relaxed/simple; bh=s25S+IIcIvU6NfHzDcJg2UokwZvlhm0DiOxjBcDy6cM=; h=Date:In-Reply-To:Message-Id:Mime-Version:References:Subject:From: To:Cc:Content-Type; b=Uw6vEIbPhkoWpENJWBR/GAYZ4K1VdfO53tDvdSY6sdaINZpZM2zkZdlsWOTgoiGgFKxbGs1Nxe1c1Q2KBmBXwzmX2CA2vEFqolUYcP+SNTawZ9fb9760wQn8C02FgDDk/vEjjl90cDUTjoqEut3/tirOdLuTLU2PtHv7An8RHtU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--suleiman.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=eqQ7xnXJ; arc=none smtp.client-ip=209.85.219.202 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--suleiman.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="eqQ7xnXJ" Received: by mail-yb1-f202.google.com with SMTP id 3f1490d57ef6-e54da6701d2so560220276.0 for ; Mon, 06 Jan 2025 20:26:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1736223969; x=1736828769; darn=vger.kernel.org; h=cc:to:from:subject:references:mime-version:message-id:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=ibH41uyLFh1ZmBilF+lh7wTD30QR58+YJn14H5cwa2A=; b=eqQ7xnXJm5/3ToK3Y+KIRkGBGnT8ck5PGKRrO+7kwDPwAigKGRXf4GK3G+e/4kPMDX ekgz4GTbeegb+tTL8oJw5JKPKVgWPT2NVyH78ldkKlTwQj5TOG60v0qBzKsfwWwrYqns 5r96rlRbMS4inCmPG+jZ4Z6fcS0u/OibXrg13zgQPbBQFkL06/qykNM1qfF/wFCi/Sit 05PVOjbpTuPc2su7+W9EnC7CXII/nczz6OLpPn9Bg3191Y9s5IpDJaqsbrFpIwWU8+Oc 0Y9sIDjh8IzWeege/9zPBWSfjO7fCrITdz9JQY6xLcaw+Gk7yuhSW9fgcKiyvQcuIgP4 9YZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736223969; x=1736828769; h=cc:to:from:subject:references:mime-version:message-id:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ibH41uyLFh1ZmBilF+lh7wTD30QR58+YJn14H5cwa2A=; b=Mz9TBOlSDjGqsGQcP383D35GEMh7yvt3NsTxeaQvz9gk6Iri4ERrpls96R8HUqikv6 1eQz6yOUTsTyab4wbt6wTSppt7R2KaGlnqMyVVOCft1AcQzLo0chl57Y3bLnspFj1CO0 9nd9+6Ty8p1TVtu0UP5ReeBZIRyXa77gF2Byf1AgQU2wM/hVXOHxms58AeJ2fNVmye0m 0AoaBosC1NwDcckF5JKzOhGdyl5e3SjX5UoX5bxpGzVgSJOdzr/UfHoXy2dkG+CiseXp 8k41lEmIsr9Z8WJ3qqgmYLpduLn/eL4X9YB4L3IRMS1CLjxJ12XrcsoCMganAZV3+w4m et+A== X-Forwarded-Encrypted: i=1; AJvYcCVyfUOp1xf76l6w8zulccFp0jig0MfMGuSMX8NJ4RzeIiqMgVeAeto2uFTkSlUNgwOlH09uPpD4aNYRSMM=@vger.kernel.org X-Gm-Message-State: AOJu0YxtRygXFnNlkHciLLTufFTJVMkp8v68/UZHYH5WrMly9VabpP1x 1K3aDErXJwAve27xvcy1TWfF17HVDxFpways9yGypmEJ1KolP3N+CfqCBHm5PKg257doMbWO3Tp eOA77KU/UWQ== X-Google-Smtp-Source: AGHT+IEX66bQDxVtTDO+iv5Yj+TmEWirbM3zI7mFYJ98qz1aCvyAgg8k6W+5VvQt0BAu4w5ZqXAok0ekqv+9fg== X-Received: from suleiman1.tok.corp.google.com ([2401:fa00:8f:203:66b9:6412:4213:e30a]) (user=suleiman job=sendgmr) by 2002:a05:6902:d45:b0:e39:7a90:7b2 with SMTP id 3f1490d57ef6-e538c391482mr121318276.7.1736223969501; Mon, 06 Jan 2025 20:26:09 -0800 (PST) Date: Tue, 7 Jan 2025 13:22:01 +0900 In-Reply-To: <20250107042202.2554063-1-suleiman@google.com> Message-Id: <20250107042202.2554063-4-suleiman@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20250107042202.2554063-1-suleiman@google.com> X-Mailer: git-send-email 2.47.1.613.gc27f4b7a9f-goog Subject: [PATCH v3 3/3] KVM: x86: Document host suspend being included in steal time. From: Suleiman Souhlal To: Paolo Bonzini , Sean Christopherson Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Chao Gao , David Woodhouse , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, ssouhlal@freebsd.org, Suleiman Souhlal Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Steal time now includes the time that the host was suspended. Change-Id: Ie1236bc787e0d3bc9aff0d35e6b82b7e5cc8fd91 Signed-off-by: Suleiman Souhlal --- Documentation/virt/kvm/x86/msr.rst | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Documentation/virt/kvm/x86/msr.rst b/Documentation/virt/kvm/x8= 6/msr.rst index 3aecf2a70e7b43..81c17c2200ca2f 100644 --- a/Documentation/virt/kvm/x86/msr.rst +++ b/Documentation/virt/kvm/x86/msr.rst @@ -294,8 +294,10 @@ data: =20 steal: the amount of time in which this vCPU did not run, in - nanoseconds. Time during which the vcpu is idle, will not be - reported as steal time. + nanoseconds. This includes the time during which the host is + suspended. However, the case where the host suspends during a + VM migration might not be correctly accounted. Time during + which the vcpu is idle, will not be reported as steal time. =20 preempted: indicate the vCPU who owns this struct is running or --=20 2.47.1.613.gc27f4b7a9f-goog