From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f202.google.com (mail-pl1-f202.google.com [209.85.214.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 6C1423277A1 for ; Wed, 20 Aug 2025 15:10:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755702650; cv=none; b=IkVnRtbLWA/86/Ghf2EzlZZ9pf2Ct6Q6yBIcNYXvV64aP/qlH9NSreysbf/RBwRKrkj2o1JbmewkAZMkGJIhjrBrBElnkaPcXZe1WWsmr5WHnDuuTXP2wI3K7AbBuWrdeIb1702ZPAcE2WuQsoCUyz7+WLdoeTt6o8JftcnrqNY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755702650; c=relaxed/simple; bh=1fxfY5dVvQZNFSj6lzgF6BNISnMdwPKlIZQ0ehBDwGI=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=HBDUlotBE/DTE0aouRAU1swqB2XP5FOD7l7Y5Eaq4i1OXUuzSRnk+Rps1cBpdgEpkcxeJ7j795fvhQb9u+qlZFfBCjZEeJfX8YDfgm7PfN+q3jD9koVJJMRerjR2BYRV9kFcU81VMU6GN61EHCXMZOF+AdJT4SkXVLGGm1KzKWo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=MQET5TqX; arc=none smtp.client-ip=209.85.214.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--seanjc.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="MQET5TqX" Received: by mail-pl1-f202.google.com with SMTP id d9443c01a7336-2445803f0cfso70095805ad.1 for ; Wed, 20 Aug 2025 08:10:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1755702649; x=1756307449; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:from:to:cc:subject:date:message-id :reply-to; bh=1fxfY5dVvQZNFSj6lzgF6BNISnMdwPKlIZQ0ehBDwGI=; b=MQET5TqX+3kfl3qeoRIjIIJMGaJaSlmrHIXeWDVJ2sbzONHNu9Ue35cvc7O75kRmOP e6u9ytoQzW9P1kxMn7ej1x1DyG4fkUPPwzdNPHiVcQD9Rn8edI7Fz+q1Q1QBurSCDBmc 560dvmgR8k7ilUxiJE7C+EfZy+Wr325M9cyw9PtourBX6XTjNVas+NEtfzzqfW1Xfs8c H3vaWBD/u/vCkhJGeUYGgntdb9F0VthTjlF3em0bsBJcAVTdsa5Yvgyr4Ww7BAIKNy72 e6sWz8BoKaZuR88OtzQR4vrjOE8juCebvXfwDKDy/hsrh5Y6QWnZ35G820COKyeYIsBc EKhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1755702649; x=1756307449; h=content-transfer-encoding:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=1fxfY5dVvQZNFSj6lzgF6BNISnMdwPKlIZQ0ehBDwGI=; b=U/DaBWN4YG2Gdu2aejH1OSi2DrC/D648OQTz9+pCegDUj9Pe4WQgdxjtS22T8wHKcW 8fHpqXo9XxNfezavnc6aw+Tyx69DPMV+Prty8AUHLlBFDKDpLau+31riDdFUbhynsWXM IrIZ/vhKXLyC8r+o5SNVMPDbYJGMBlye1Q90m060MkyT+h78xvrxUg0gunH1ZEwLzdgH fCXWCX50CJ974g0bbMTRdga8dAegljVKB8gsgNNwlabc2/iDPqfy6rfKteaN+xxRTBz2 xQNceXmouBnUjltN+VW6M1yl2vtNbdRFPDyU5RAOLb82R7hvk9GqWZ9cZ9VkazaHDG5T pNoA== X-Forwarded-Encrypted: i=1; AJvYcCVBvxnzZvy7M8XmnIoKph4s0QzdPy46Ffn3Y4dtSJ4JbZVUcUvlMTWWJqIcKRgR4lQCU41vsySPn5nlgi4=@vger.kernel.org X-Gm-Message-State: AOJu0YxWQSBFCJRkKN0WLYyXghl6jh+QIBrkqxmXuQ7jXD54Mb2Vqmjo Ph3RM/Uf5z0uqK0yP/eOCapzqdvYpRc8fwahW3/+QPHP/KdAJeb+1XmMErrt/PkB6WZeDkecUAT 6T3ZY1A== X-Google-Smtp-Source: AGHT+IFKIChJVfhivrtL6SAQS2f+B7ilBclOWVAZJETl/5OR41KJtkCw9r7nWSgB064593+bk5z1H7JvJgY= X-Received: from pjtd9.prod.google.com ([2002:a17:90b:49:b0:31f:6ddd:ef5]) (user=seanjc job=prod-delivery.src-stubby-dispatcher) by 2002:a17:902:ce0b:b0:234:914b:3841 with SMTP id d9443c01a7336-245ef256a40mr45940385ad.39.1755702648695; Wed, 20 Aug 2025 08:10:48 -0700 (PDT) Date: Wed, 20 Aug 2025 08:10:47 -0700 In-Reply-To: <0a2e3ae2-6459-46eb-a9a3-2cab284a49f7@amd.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20250819234833.3080255-1-seanjc@google.com> <755ca898eab309445e461ee9f542ba7a4057d36c.camel@intel.com> <0a2e3ae2-6459-46eb-a9a3-2cab284a49f7@amd.com> Message-ID: Subject: Re: [PATCH v11 0/8] KVM: SVM: Enable Secure TSC for SEV-SNP From: Sean Christopherson To: "Nikunj A. Dadhania" Cc: Kai Huang , "pbonzini@redhat.com" , "thomas.lendacky@amd.com" , "kvm@vger.kernel.org" , "vaishali.thakkar@suse.com" , "Ketan.Chaturvedi@amd.com" , "linux-kernel@vger.kernel.org" , "michael.roth@amd.com" , "bp@alien8.de" , david.kaplan@amd.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable On Wed, Aug 20, 2025, Nikunj A. Dadhania wrote: > On 8/20/2025 4:55 PM, Huang, Kai wrote: > > On Wed, 2025-08-20 at 14:18 +0530, Nikunj A. Dadhania wrote: > >>> =C2=A0 - Continue on with snp_launch_start() if default_tsc_khz is '0= '.=C2=A0 AFAICT, > >>> =C2=A0=C2=A0=C2=A0 continuing on doesn't put the host at (any moer) r= isk. [Kai] > >> > >> If I hack default_tsc_khz=C2=A0 as '0', SNP guest kernel with SecureTS= C spits out > >> couple of warnings and finally panics: > >> =C2=A0 > >=20 > > It's a surprise that the SEV_CMD_SNP_LAUNCH_START didn't fail in such > > configuration. :-) >=20 > As mentioned here[1], this is an unsupported configuration as per the SNP > Firmware ABI. Yeah, but outside of AMD hardware/firmware, the usual response to an unsupp= orted configuration is to return an error :-D Anyways, I'll fixup to the -EINVAL version from v10 when applying.