From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg1-f199.google.com (mail-pg1-f199.google.com [209.85.215.199]) (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 4291E20E334 for ; Wed, 30 Sep 2026 00:55:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.199 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790729714; cv=none; b=a4dG/u4ivu+0XjXXz8l5bJHlN05G2TxEp9/5Xe6jMKVYR/QoMjaJQ1OR7IpxR68ghp4KIxpgyS+u0yz4mHuDuI1J+FQxwU4DYbVyr3g8GzHsHfXy/KIkwDbK+S7Or0+LymbY/PhqinuJdFrOK/ESIu+002752vNYsh3OwhcxiLw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790729714; c=relaxed/simple; bh=p2yWYS6720l1AamDkwuIrJ88Ej7lEOXOTezg8g01GzU=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=O5zYYxkKwQ0lBghYCC5+lbkI3rl/Plondv7jgLYwxfYBMVQkdyQp+WF08fnsQndfVUVa+TCrsssH/DfwPG026B54uGb3NgKZpx2bUCgSoIGpucPwTgalHul8OGiH7eitd4PFl9fC3RMctIlpMqrh94dgM4pCHcFCZ9gi335NwvA= 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=od0E8/xw; arc=none smtp.client-ip=209.85.215.199 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="od0E8/xw" Received: by mail-pg1-f199.google.com with SMTP id 41be03b00d2f7-cc1b6f65dacso3201848a12.1 for ; Tue, 29 Sep 2026 17:55:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1790729713; x=1791334513; darn=vger.kernel.org; h=content-transfer-encoding:content-type:cc:to:from:subject :message-id:references:mime-version:in-reply-to:date:from:to:cc :subject:date:message-id:reply-to:content-type; bh=wAW//sr3pC2NBc7liE6tPMI+ECsOTrk881ZsZeZAzE4=; b=od0E8/xwfyZ2Hbq7WqV7nkIrZYe/ExN/TES3AECQENqTks86xxq5gbGqyWZYQIS5PF UUpWlG7cBCmOCvU+lEXc4D7fmGZp8hXWknenYC8LKBoLDzI3KE2yf/YyXcrMAK10lKNf GoX/GOIpe6+hVapbvkNl2FUD7V2rXC0KnycYEq/o448+TA1aVco/1yoI/tRuVSQQ+REq EhYfr1y6BdKdkK2V4SvBw7VsPs4KtxcqdrKXtQiooAfKRpV6vF9RSExqdO0LPF+zR3za Jjc9CcfjAX0hCTcebeMy/t/IaEkYGPoV+5qX1lKBz94SGuvEu8R/wyb+7g8XFn3ImPTa astA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790729713; x=1791334513; h=content-transfer-encoding:content-type: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 :content-type; bh=wAW//sr3pC2NBc7liE6tPMI+ECsOTrk881ZsZeZAzE4=; b=C8Whd7AerZWoztevU1bmzMSCUxyFfaDtgvtuv29VV5/oXCeS86xVDWNGdvdhECWT+U IjMhvQoT/iMWkby1Bzk0EQzcAYp7sAQShvnRBkmECtB/A8YI2aXhkGDAk/MqG729Pguh Fxjng5KzRGcQ1JEGRST62TJJEjWKxGkMJbNImWUrqlwZuZL3NSIxwNqvBeemwp43+jlm dg1/ySgKrngwb3rD88R9IBulUH//rTfya1yEMPDARZssuhb4CYB4Kqa+pPXiXerugO7K CiM+lmkcjjnWapyClaHdFO7+vJ9HeTNtXUxIiYuQGs46SsbuW8Z77Sjz8ciWllqMI84w z1TQ== X-Forwarded-Encrypted: i=1; AKwUvBzoc1Zsn8ci8lmgMNj7Qpu0elDJZNkMlTO8HP+diacZJGdxTTtAhdWvpZbjw63XVdLu+fE=@vger.kernel.org X-Gm-Message-State: AFuF++nM9nejguffzim7yZxE3dzGX10Ni3cxf57Yjl3SyMSnRsjqNqKg 7RfmZ8wJJ2GtslYw30rILXqAAUbVJVhmq8mZVYKnC00l0XUPHUJuGKUJXeMxRr5E0aUhazS77Qo rYhvJ6Q== X-Received: from pgbcw4.prod.google.com ([2002:a05:6a02:4284:b0:cc7:b387:6d4b]) (user=seanjc job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6a20:7fa5:b0:3de:849f:9053 with SMTP id adf61e73a8af0-3de9530b969mr741880637.45.1790729712492; Tue, 29 Sep 2026 17:55:12 -0700 (PDT) Date: Tue, 29 Sep 2026 17:55:11 -0700 In-Reply-To: <3c0ee89f560b0235f293b32019327186785aa795.camel@intel.com> Precedence: bulk X-Mailing-List: kvm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20260930001127.3170009-1-seanjc@google.com> <3c0ee89f560b0235f293b32019327186785aa795.camel@intel.com> Message-ID: Subject: Re: [PATCH v2 0/3] KVM: TDX: Syntehsize SHUTDOWN on unhandled EPT Violation From: Sean Christopherson To: Rick P Edgecombe Cc: "pbonzini@redhat.com" , "kas@kernel.org" , "jthoughton@google.com" , "dave.hansen@linux.intel.com" , "x86@kernel.org" , "binbin.wu@linux.intel.com" , Xiaoyao Li , "linux-kernel@vger.kernel.org" , Yan Y Zhao , "sashiko-bot@kernel.org" , "kvm@vger.kernel.org" , "linux-coco@lists.linux.dev" , "ackerleytng@google.com" , Vishal Annapurve Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable On Wed, Sep 30, 2026, Rick P Edgecombe wrote: > On Tue, 2026-09-29 at 17:11 -0700, Sean Christopherson wrote: > > Signal SHUTDOWN instead of -EIO if the guest accesses an unaccepted pag= e and > > has disabled EPT Violation #VEs on such accesses.=C2=A0 Returning -EIO = is all but > > guaranteed to mislead the VMM into thinking KVM (or the VMM) messed up,= and > > will likely result in the VM being terminated instead of rebooted. >=20 > I'm pretty sure Yan had a test for this path, and I'd love to see it actu= ally > exercised. What is the urgency on getting this fix upstream? Can we wait = a week? Absolutely. It can probably wait a month and no one would care. IIRC, thi= s got hit by someone (internal to Google) deliberately crashing a guest kernel an= d doing funky things with kexec. It showed up on my radar purely because our autom= ated madness alerted on the resulting assertion (on -EIO) in the VMM.