From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f73.google.com (mail-pj1-f73.google.com [209.85.216.73]) (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 DD6F33009ED for ; Tue, 19 Aug 2025 17:27:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.73 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755624468; cv=none; b=fGz82UGrvLyi2H+eMjt2NoykWpgkRaOB07IHTTwL62SVCCjDF9W95v3iuHnPKHaA2uujSEN0UbbceqrsyICDVbuB9gxlGZ2XayCh4x6127X1ufhcim68g1hVfYauP0S9TN50odxDxsmpBxJSW26t1G2c8++Xtkl6f8qmWjx+EKo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755624468; c=relaxed/simple; bh=PXKnFxWhVcGvgDGwHV+luZExw5s8ijooTkSu3WVfGS8=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=EE/vtFiaOTjHChkbOOVHnNZplKDsr3V04889y5jhWsNKlvUijyB6QagE/3y3MS8zRGnXCBsZdx48aAsWkZs+JirBaiOcn1kX1xDfKyxQ4l50GXQbLSM5+1QMSZZqHhnV3FixKF98IwOzXjZwDM2vye5oOVvAxtcEitXyPfftEjw= 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=dHP7SZqY; arc=none smtp.client-ip=209.85.216.73 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="dHP7SZqY" Received: by mail-pj1-f73.google.com with SMTP id 98e67ed59e1d1-323267bf596so5295728a91.1 for ; Tue, 19 Aug 2025 10:27:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1755624466; x=1756229266; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=PXKnFxWhVcGvgDGwHV+luZExw5s8ijooTkSu3WVfGS8=; b=dHP7SZqY3C7GLkktNmWyq+GETmuwjt5z8Xrue3xAxBwXMoQR6ZOyk+XEklP56OOVxM ffHaMzBAAhKACtbFKixzmycVDJyPBynlDOak83DRB37Aqd8qMfB9EnQX78v59upjSgUJ GldfuEm9lq+WvSbQbSi4uno/AQo5SSahI9oUn1lPJN9+6kmMf8JEUjxT2gXK2Iz7uPKS YNTaNXHyXrWjV2GQxrcxWcHgbUYPZANv5jpBf7Jlpl4qkeB9/4wRiGqEL8OB0zzafB0A HTSf5LyU7wXpHXsXtKgxpOpjputV6dkCjyUkGnU04XqdK9qep3Tu6JlFc6TXrMin32bJ yN9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1755624466; x=1756229266; h=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=PXKnFxWhVcGvgDGwHV+luZExw5s8ijooTkSu3WVfGS8=; b=i5piYUOBzlJshZVGfuOh5ZQr+Z8SBBSAZ8WsJ8a3LqWJdDF6GogkJ/dYQG9zF6shmg sey4wcCl/gwiAO3yb55J84NMJpxU5ryLt5KT8hbTuQM++esC5R5TzeV2dUzjwJq/EZW5 MU/GRvBIcYe3tMGr9qDPP3DEckYgOgN/YbrjfkRenFUq7o7DDzGsEjigC528KUwea6ma WynPA0MnoovKT/u8ug1n2hKAHPrf0vUcLldeCfF20zmjKJ6nayt4XjK3CtAOpmPzs8Nq T1Car7nlyu+Id3Ld0YCO5XGjxq8Ib32Ldtt1c1Zzfd2tzTRFS0PU7vfSoO5BsdU7ML+t KFyg== X-Forwarded-Encrypted: i=1; AJvYcCU9zaGdJy6ei2wqzuJD6b3K3xzU2veQ7yvSzL9C+Gif+tO8PnbAKaoyoq0UWaQY7l0OF4RvEB/dTWTPRJU=@vger.kernel.org X-Gm-Message-State: AOJu0Yx2EDPMqqolcRDeCdAcxeQv1nH2HZ0y5qL50/RKIglNn//SrrGT TsodanLvlHdF2op/afdxNWtGBJ5FY6oxy5HyhpOH0WV/83wff9m3a+Tyg50RLroEbv6Q7fmgCDY DwopTaQ== X-Google-Smtp-Source: AGHT+IHq9/xlNa/fyvpnSyboZMxDaMYV6UTMAPtqcgnXojqjwHvvh9FSW9dIpJS0BWWWAlcs9SsTSZ/tGjE= X-Received: from pjbqn6.prod.google.com ([2002:a17:90b:3d46:b0:31f:1a3e:fe3b]) (user=seanjc job=prod-delivery.src-stubby-dispatcher) by 2002:a17:90b:3b48:b0:323:264f:bc42 with SMTP id 98e67ed59e1d1-324e128ea93mr74729a91.3.1755624466263; Tue, 19 Aug 2025 10:27:46 -0700 (PDT) Date: Tue, 19 Aug 2025 10:27:44 -0700 In-Reply-To: <20250812025606.74625-24-chao.gao@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20250812025606.74625-1-chao.gao@intel.com> <20250812025606.74625-24-chao.gao@intel.com> Message-ID: Subject: Re: [PATCH v12 23/24] KVM: nVMX: Add consistency checks for CR0.WP and CR4.CET From: Sean Christopherson To: Chao Gao Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, mlevitsk@redhat.com, rick.p.edgecombe@intel.com, weijiang.yang@intel.com, xin@zytor.com, Mathias Krause , John Allen , Paolo Bonzini , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" Content-Type: text/plain; charset="us-ascii" On Mon, Aug 11, 2025, Chao Gao wrote: > Add consistency checks for CR4.CET and CR0.WP in guest-state or host-state > area in the VMCS12. This ensures that configurations with CR4.CET set and > CR0.WP not set result in VM-entry failure, aligning with architectural > behavior. The consistency check patches need to land before KVM lets L1 enable CET for L2.