From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.openvz.org (mail.openvz.org [69.168.225.77]) by lore.virtuozzo.com (Postfix) with ESMTPS id 6DF518017D for ; Tue, 10 Nov 2026 16:57:33 +0000 (UTC) Received: from mail.openvz.org (localhost [127.0.0.1]) by mail.openvz.org (8.14.4/8.14.4) with ESMTP id 6AAGuKlO016489; Tue, 10 Nov 2026 19:56:21 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 6AAGuKlO016489 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=openvz.org; s=default; t=1794329783; bh=6+tAZMJJmn+an4Unk0yI+ydLDFcwJSJi6fp/Q0SUp/o=; h=From:To:Date:In-Reply-To:References:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe; b=csW7qoIDLFqh/zg6QPNbvFh+sy2t7VCZP6j2ghP6RSywkmBKFlNANiV8qKAfC4ZDx fWyMbXRK+vqZcFchJf1i+8LHC8iGJR6iUNDtJ+kZYXRNnsssSZhIS9h+Luw1DANk29 GUj+Ydbk4KgNiRJ1yVAbuYqgdNMBARus6X0lzP7htczFV1FHcIsiSMOtJNO/I2Pufe g8SbZp4aQ3kP4xZi5CrdGi3r5U4t/gXMu1cMQmNwuITXDNK2lVa3KMpbeTT50uz4Pw Y+yxn9zC4M9luxCHx1z2yvhma0EuzYUJgkuM1KmOM9VNylv8IkLH7fdKAxcQ0kshCR vXUbGsRsc48Ew== Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) by mail.openvz.org (8.14.4/8.14.4) with ESMTP id 6AAGuJqB016485 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=FAIL) for ; Tue, 10 Nov 2026 19:56:19 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 6AAGuJqB016485 Authentication-Results: mail.openvz.org; dkim=pass (2048-bit key) header.d=openvz.org header.i=@openvz.org header.b="hJSNqjXA" Received: by mail-wr1-f72.google.com with SMTP id ffacd0b85a97d-49090fde23aso1887511f8f.2 for ; Tue, 10 Nov 2026 08:56:19 -0800 (PST) X-Gm-Message-State: APuU4Z+ysxaP012+1xIBkPW0A91YF6TRkrMCdSQHfzuqEn0nZyJuvO9x avH4eEql84cBML6TjWiGVqYDQaea8V8a4DLxwqY/spzeEoNf/Y7zeHf1cuFZ6N9bexhVQAumRH+ NBpU+J5C+PKLdZtm2SwpXIGQcDW97/qSIkve2KBIkBe31XFOLrB64CQ== X-Gm-Gg: AYBFou0zcc1kCWtGX3+f0+S1X3jEX9D88yItWfJK3P2PQUEbTZ3B6Hyx13pOB8OkvvH eHam74b4Ugij1Rjj+phcg5yPsjI15FvyR4NaFzfdQ+89V44zfOcY7GLWAHPb6oGwPIVCpG4y5YV CNzzMbBRjodLoZMkCwQhiGN75lKLe2Oxs7RjhHvoeemTvgGBV0gLGiMj46yU07hAQ4sH546pCTx ku4jCix4xV+Lmr1nsTS1rUbbbMLch6q7SL8QO0nDDKsQU818ushVqfYdqmkRZsIK9E16WbaQNNf 8qfmg8MMng== X-Received: by 2002:a05:600c:354a:b0:4a0:b6:4619 with SMTP id 5b1f17b1804b1-4ba022ca866mr57069575e9.0.1794329779038; Tue, 10 Nov 2026 08:56:19 -0800 (PST) X-Received: by 2002:a05:600c:354a:b0:4a0:b6:4619 with SMTP id 5b1f17b1804b1-4ba022ca866mr57069335e9.0.1794329778657; Tue, 10 Nov 2026 08:56:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1794329778; cv=none; d=google.com; s=arc-20260327; b=Zna0VOtD4ErMxYQ/a/OXyaILk0heLjCRBdYyr2BYJQ5AqfLwOMSE5sHv59le+J0SOP Gs/jjCMIhv0+j7Bnxk8YlW+DzsgvjM9YGuVZb2PaH2yK+rS4DmtpROgtQzJG6B7gjPjA zt1cM7ADX76xAgzOnIikQ+3MmvysSsQe/FDdDPGTGGpuXO6XJDVZCvVIX479a1ZIxelv POhh1ySbr5fJ6wALr7Tl1fomPdKJma4p9vpBMMaCzRT6WFNj3Af0Ek52Zsf1xX0ICJjU wQcEISpWhkUqqDcVDenVDXhDx0h9jIk+UpgAf+VALv9PoA5vmA6EUZaVoobbNq9JITGu pkHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=f70g95gFgvGY4STKXmxoDyfjwACHAtet70benVOe+R8=; fh=yZ3SQEeCA88XmTynhqwyDnY3KAx9/rtIDrjAb3vSECw=; b=fgStPODIiSGEj1YAwgfqN42IJeEsGDzIPWvzfHftQLoPw/0Bjw7WbakjsRFLjapL0J Qv5muNxbQvt69yOQVfKS/mmZiIvBxQX6rjtu8REZJW9QRLQco0hxIguKWT6wGoTfBg3H qbWTXCnmifpauMYCZXbYgLNnXQoF20LE62rXia9WTDkQ/HEQW5mL8MPY94Sh7CM8of92 5N7KMtVP4q2S4ionoEUTEeHmMS6Xjyx3ouhAtjadANPAEhna0AOTrQYZNCn+v+1/oqWx WiBrjUs0qbZf0s+9muwY06TEta3DOyxb5jJuh2HORUgotueTk3Kj4wAKcCv9hb4JSE+l 8xUQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@openvz.org header.s=google header.b=hJSNqjXA; spf=softfail (google.com: domain of transitioning den@openvz.org does not designate 2a06:5b06:b600:300:4f78:6441:d0f1:22af as permitted sender) smtp.mailfrom=den@openvz.org; dara=neutral header.i=@openvz.org Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id 5b1f17b1804b1-4ba01ff4125sor6880655e9.9.2026.11.10.08.56.18 for (Google Transport Security); Tue, 10 Nov 2026 08:56:18 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning den@openvz.org does not designate 2a06:5b06:b600:300:4f78:6441:d0f1:22af as permitted sender) client-ip=2a06:5b06:b600:300:4f78:6441:d0f1:22af; Authentication-Results: mx.google.com; dkim=pass header.i=@openvz.org header.s=google header.b=hJSNqjXA; spf=softfail (google.com: domain of transitioning den@openvz.org does not designate 2a06:5b06:b600:300:4f78:6441:d0f1:22af as permitted sender) smtp.mailfrom=den@openvz.org; dara=neutral header.i=@openvz.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=openvz.org; s=google; t=1794329778; x=1794934578; darn=openvz.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=f70g95gFgvGY4STKXmxoDyfjwACHAtet70benVOe+R8=; b=hJSNqjXAO+Z7/T0ocAlzESWaXles6BWqTNC2P8RGzruuhlNBz3ODvX3R9I1qXCKtrJ RIZmmFwpYL1s7ae26NjbobY/44pzFKaXmG+bup1kGdErz+s70m3/XIPYzI8/0JM/Nbks flvUD1/sklZOd8mfJ9waAXtBDR3h5cSD2Gau/nRyOOpOWzpAqpBMRvkMwXze1QEjvuV3 eAS5DdxkHHqjaqp2fhIcZlSrWl9OOM6M2qJAhLf5vgB/KPaIoGFKqkWXgY5hp4NhU2ej +KBeQE8Q5y9QaRyLfpnUmWnpyjSb+ARuDSbEZrXuHqNNiFGSo8wUk38PwAmKhaWKqgjX zA1Q== X-Received: by 2002:a05:600c:630f:b0:4a3:5d64:df91 with SMTP id 5b1f17b1804b1-4ba02346b18mr54998085e9.18.1794329778192; Tue, 10 Nov 2026 08:56:18 -0800 (PST) Received: from athena.sw.ru ([2a06:5b06:b600:300:4f78:6441:d0f1:22af]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-49835f1772dsm5972948f8f.31.2026.11.10.08.56.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2026 08:56:17 -0800 (PST) From: "Denis V. Lunev" To: devel@openvz.org Date: Tue, 10 Nov 2026 17:56:15 +0100 Message-ID: <20261110165615.2808447-1-den@openvz.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <010701a1c660a906-b6ba27d3-ff61-4efd-843a-2844f8ce8bb6-000000@eu-central-1.amazonses.com> References: <010701a1c660a906-b6ba27d3-ff61-4efd-843a-2844f8ce8bb6-000000@eu-central-1.amazonses.com> MIME-Version: 1.0 X-OZ-Fwd: true Subject: Re: [Devel] [PATCH hci-8.1] iommu/amd/pgtbl: fix DMA faults on IOVAs mapped while the table grows X-BeenThere: devel@openvz.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: OpenVZ development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: devel-bounces@openvz.org Errors-To: devel-bounces@openvz.org > [Severity: Medium] > Can readers livelock on a PREEMPT_RT build here? The vz10 kernels are not PREEMPT_RT: both x86_64 flavours build with PREEMPT_VOLUNTARY and PREEMPT_RT unset. There spin_lock_irqsave() keeps the write section atomic, readers on other CPUs spin for the DTE flush only, and nothing in amd_iommu_update_and_flush_device_table() reads the seqcount, so the writer cannot wait on itself. Tested with the section held open for 5 ms at each of the three level increases: no lockups. > Is there a way to publish the new root and mode only after the DTEs are > updated, or to otherwise avoid holding the seqcount odd across the DTE > flush? On PREEMPT_RT a plain seqcount_t writer under a sleeping spinlock is already broken before this patch, as the review notes. Fixing that means publishing root and mode only after set_dte_entry() can take them explicitly, as mainline does since 789a5913b29c. Not worth it for a configuration we do not build. _______________________________________________ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel