From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f201.google.com (mail-pf1-f201.google.com [209.85.210.201]) (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 00B931A9FA1 for ; Tue, 16 Sep 2025 00:28:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757982531; cv=none; b=PTKZE1Otg76vylRjdOvtMwQbNzhsbWqGHTZqRpaCuwCm/+nPO/U4++2ynoXicpOJEJPFO0Owgb/M0clnmNpgsRoONp9Okh/qFqDSpOtrga3XblfnN8YU4lAGRlB8LQpmRKyD9QollUomw28jAwF13EMKhTsHSfbjyHCxLw4XcjY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757982531; c=relaxed/simple; bh=4yeYPGN8pSHTwanVQ3V7dK/PcBRy7YVKJP0JkvuBu0E=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=TFqzhax1saVjMMpZu4KYg0TlMwsaohPTehJbJsCkGh+sw5ijEBVyPt++Ch4Hr5WN6ga3zxIxZHOVKKXpmzXoE/Tozs5tS/WNV/tMdbXVq+O22xFNgibP4UNu1Brzid6F+Ubc11sLdRH3qvuE3PXj+B23Ex3limz/AgjwIRcQ4yY= 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=05MGnAZw; arc=none smtp.client-ip=209.85.210.201 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="05MGnAZw" Received: by mail-pf1-f201.google.com with SMTP id d2e1a72fcca58-7761dd1c845so2726276b3a.0 for ; Mon, 15 Sep 2025 17:28:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1757982529; x=1758587329; 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=mLQhQWWPTEvoPpGjDnptVMA1yifBour/m8dWIjdmwtg=; b=05MGnAZwxNxe+8may0keKjZrSKZxaLbb4AEGWd7R93odS1BbK3h/AVBMoBBuXDm0Yv hWKCTb4OmtoCug6w6sKTVcm1FHyjMmew9OHS9MQeIjB2yFSMdeF0G8cVrhAO0Ia5CANv T4MiBVGMDG2hwXUmH88hHjagj8VWbrBesJLgKHqkqKq6PuSRVhQ6s8COXEKlIo0k06C7 sOryocKKo0qcNg6sxL/iFxs8Tzi8LXcw4sQAsQeQ+uv44E74v+pCzo2/ulgQ6HBDLxLj CVCsrWdBOJRkepWNXPhpHqJvuzY+BxxGllBJ/EGQ9dHCeatqnnN7RX6o5ghU9APzGI2I /g2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1757982529; x=1758587329; 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=mLQhQWWPTEvoPpGjDnptVMA1yifBour/m8dWIjdmwtg=; b=B2g8gm0W2cnyjjJv36r/0DjuG+SuY1JmSeED+LWLhO2N4/teNg+Bv0Up5lIHH5chz9 nE6rMgk5v32G/ZyK31SslpohhCp8azs3XCn2ZWU4NYpDPIIao5Y5FgTHR9IcRcaLWaby +0OQ680xJDPGUMI661we8Prkg80GQpfxiI8IKWrTd9pJ9J8Laq6mswq5KdnVIrOMOwDq Wo9U9FPIChKpeiHsNuO8ttq2LUJYaVTb+pi7aykVTDFsxJ+HDyVyI9PrTc+dFpoSM3zY auitpONWeDwWCfcy8YZIRhGCPNnqD2qsbzLAHard+TLVyvbldCDRW2Cky2N219KRQbP2 Ow1w== X-Forwarded-Encrypted: i=1; AJvYcCVDk65GMDd4Y5jN/846k/Q8E6PobG/XwUot982x4iwTR81F57CvmZfCn3WVduFE8EKiX7WLaEOlYJMAxwY=@vger.kernel.org X-Gm-Message-State: AOJu0YwKzbKYKOpn9AL8iAJwYtu58PBv2oYsv0OwL7LPbU7bsEVsQJ3+ NIOZRw0tcNYLnoPZTZ0w1Trp4moH05C9EqvwABcyBQ2P8IH1Seu8yE9Ys0ZZLb+fFwLBcD3O0RN AFxx2Qw== X-Google-Smtp-Source: AGHT+IGEZLEqi36Po2hL/OtKYWdrIRazCQQYpQ/u1Udr6TP8qicIHenBjNPzJ4WRduhANbjy/ML2E2i0Ces= X-Received: from pfbcr10.prod.google.com ([2002:a05:6a00:f0a:b0:772:749b:de38]) (user=seanjc job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6a00:9493:b0:776:1c4c:8d54 with SMTP id d2e1a72fcca58-7761c4c8f61mr11910277b3a.3.1757982529082; Mon, 15 Sep 2025 17:28:49 -0700 (PDT) Date: Mon, 15 Sep 2025 17:25:49 -0700 In-Reply-To: <20250822070305.26427-1-yan.y.zhao@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20250822070305.26427-1-yan.y.zhao@intel.com> X-Mailer: git-send-email 2.51.0.384.g4c02a37b29-goog Message-ID: <175798196007.623278.10358907796048599575.b4-ty@google.com> Subject: Re: [PATCH v2 0/3] KVM: Fix deadlock for invalid memslots From: Sean Christopherson To: Sean Christopherson , pbonzini@redhat.com, Yan Zhao Cc: reinette.chatre@intel.com, rick.p.edgecombe@intel.com, linux-kernel@vger.kernel.org, kvm@vger.kernel.org Content-Type: text/plain; charset="utf-8" On Fri, 22 Aug 2025 15:03:04 +0800, Yan Zhao wrote: > This series addresses the deadlock issue encountered with invalid memslots > during prefaulting or TDX private EPT violations. > > Patches 1-2 are the new fixes from Sean. > Patch 1 is for the prefaulting case, > patch 2 for the TDX private EPT violation case. > > [...] Applied 1 and 2 to kvm-x86 mmu. I'll post a proper patch for the selftest once I figure out what I intended with respect to range.size. Thanks! [1/3] KVM: x86/mmu: Return -EAGAIN if userspace deletes/moves memslot during prefault https://github.com/kvm-x86/linux/commit/3ccbf6f47098 [2/3] KVM: TDX: Do not retry locally when the retry is caused by invalid memslot https://github.com/kvm-x86/linux/commit/2bc2694fe20b -- https://github.com/kvm-x86/linux/tree/next