From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.openvz.org (unknown [69.168.225.77]) by lore.virtuozzo.com (Postfix) with ESMTPS id 0A79A802A5 for ; Thu, 8 Oct 2026 10:19:31 +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 698AIHho022792; Thu, 8 Oct 2026 13:18:18 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 698AIHho022792 Authentication-Results: mail.openvz.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=virtuozzo.com header.i=@virtuozzo.com header.b="RQ8Njtwf" Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) by mail.openvz.org (8.14.4/8.14.4) with ESMTP id 698AIC4A022778 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=FAIL) for ; Thu, 8 Oct 2026 13:18:12 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 698AIC4A022778 Received: by mail-wm1-f70.google.com with SMTP id 5b1f17b1804b1-4a1813fea7dso21815675e9.2 for ; Thu, 08 Oct 2026 03:18:12 -0700 (PDT) X-Forwarded-Encrypted: i=2; AKwUvBwmz5EVJdiF78/pq7jyQ+GGvMBsc5Wi/Mlvmn71nJdCNUAaBluKiqu1qqXuxUWOtK1kV9oI9g==@openvz.org X-Gm-Message-State: AFuF++nbOI3zboB0qnp0bdx1NKfBSciMlmrOLPBhEZU5VCDObGnAadDh 6ianK6NFjA96gD68TV+5xl1jh1doB1L8pa0P7XAM0vv7rV+qyJt8ryW3ouEWc/g9yV7IGsfCZXI vIMkpZEOm5BRcszDQ6jn7OHpxzVw5zt5RF+GGRFuUXViCGZy5hWweDA== X-Gm-Gg: AYBFou1BUWNBkBhWhX5PuL6BHQVRffYW0GJC1D0dezxUHlZF0C99MHHgoDzvttjYCwW qtZcSoKpFGxhcdByMCNH8a6PqSBQegOVnGSGBFqSKLAXS4rIMKix5cuX/cqxtFGKgbNXOxVLkxT RfvnuIgbky2/MVQ27AaVSxZV3Fh3sMfgW+XxeWSJksjaSew9WQ4s1uZCr+3ZCt4SgneKwtUPqdz yB35LKl4C1zOQ4vGls2h6j8YW3kV/SZ8YOWSgdXX8tIrzPxVbLfmRA4vfma74940XBienRHWPMQ cPxx4A1WjDeNQRcFCXY4e3q1vlPT2c09eLyiYUhvQyK2hJ1MJe7vdeD7mUOOSgYO4/xybVth/o0 rOGxojRm4VsHhqKtm64bPzjFD+idE4g== X-Received: by 2002:a05:600c:3b99:b0:4a0:1c10:1372 with SMTP id 5b1f17b1804b1-4a1806501eamr108761145e9.27.1791454691856; Thu, 08 Oct 2026 03:18:11 -0700 (PDT) X-Received: by 2002:a05:600c:3b99:b0:4a0:1c10:1372 with SMTP id 5b1f17b1804b1-4a1806501eamr108760455e9.27.1791454691424; Thu, 08 Oct 2026 03:18:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1791454691; cv=none; d=google.com; s=arc-20260327; b=JPIFEiijp9xPpiL8/1z2SvvXsbNHfhNUDg6nu0oXPZ0t8yz/lYr5x6WfBtqC3k/8wV wfneY+Wp0sut0Ydd8HgGpRDJrkjGCuassU9Fe0a9D8i+q5c7GGC1Ayk5tlCVudA552O0 PuptNT2L5xOfNnEgGVuFkk/jemSyC62lY/W3JYrijFPf81bMYrXNRQp9HNzd9psKNWli Facoo0eMrjX3iZ0WZDCKTucpWrhrnEkag2a6zgxCnL+/bmnFL51YhTouwQppyWZnkHrH DWj8RWAiQ11q1AS/F7LLfoEfCn6fUf0r8vnWj6R0mk3aEVuce6ylY++4E5oKAEAZaNVr olag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=message-id:date:references:in-reply-to:cc:to:from:subject :content-transfer-encoding:mime-version:dkim-signature; bh=iIE4LSXt4vb3MX5pLporUkqmRv90JIUS24ORYco7dQA=; fh=V/IXbYsLoplJhWQ2FkyH4FfRIrgq1iEzPJcQAVmmSJg=; b=gDVXdXrMboGRBkx9olcNVaA3IP2V++9nIhaDykVOZp9eCKYHqNtJwLYYAjJbc3yLW2 UOp4mjZmRGGau5yWVauGXEeW5wVBu8K0t0BilFRQgCbJssIts1z9v4W+99gDLx+srAQH rkXrJXuKxsa5Et84a82ZwlLhGQJayikqXrJr2vNoqvwqfi5Hoyd+nRzpqLT4EzZXf/pe NkNDt8f+lM2VuZp5lfB0gwoqX9YKXC9zb5gtpCiafMRsrS4XfPMoVCktswOvDkHSLGwi kK0FkKV64xAk1/FjhU1V1df8UsIt9rXfGTwbdP3eqhgrMS3Rjfh+HLxXOeO+cc4aGjwQ iKVg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=relay header.b=RQ8Njtwf; spf=pass (google.com: domain of vasileios.almpanis@virtuozzo.com designates 130.117.225.111 as permitted sender) smtp.mailfrom=vasileios.almpanis@virtuozzo.com; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=virtuozzo.com Received: from relay.virtuozzo.com (relay.virtuozzo.com. [130.117.225.111]) by mx.google.com with ESMTPS id ffacd0b85a97d-48c724ab2b0si9027455f8f.370.2026.10.08.03.18.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2026 03:18:11 -0700 (PDT) Received-SPF: pass (google.com: domain of vasileios.almpanis@virtuozzo.com designates 130.117.225.111 as permitted sender) client-ip=130.117.225.111; Authentication-Results: mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=relay header.b=RQ8Njtwf; spf=pass (google.com: domain of vasileios.almpanis@virtuozzo.com designates 130.117.225.111 as permitted sender) smtp.mailfrom=vasileios.almpanis@virtuozzo.com; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=virtuozzo.com DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=virtuozzo.com; s=relay; h=Message-Id:Date:From:Subject:Content-Type: MIME-Version; bh=iIE4LSXt4vb3MX5pLporUkqmRv90JIUS24ORYco7dQA=; b=RQ8NjtwfD0bd Z1sViaVBAg/M21iFiWSa05m7ttuMco1cA684RiFIWuoZHzMPdaPk7PMDtPAEgUlTk2RzAlIW4fYe/ 60B5lzDg28GDyl72C8dMuoz3aWSRGGUyDecFUd90nTTS+CfWVvGjm+l8i3efKXnU4xjRQcBRAA/wk jJ6PFjCfjKExeWhTc73kkOL4mwaip1JRuHUNQ0/I0NFENWglXo1iK6OnDrngNXvcg/k2SjnFrp78G La+tyLtP39MDcV9Dtw2Y4Wpp3qxOCjMY+floFKNS6tZb6on9j/sjcedN9qRZogpkdbUhaSN98IHGo h4pKVL/URziw++e4vh7lig==; Received: from [130.117.225.5] (helo=dev010.ch-qa.vzint.dev) by relay.virtuozzo.com with esmtp (Exim 4.96) (envelope-from ) id 1xEl9D-00AqKY-18; Thu, 08 Oct 2026 12:18:08 +0200 MIME-Version: 1.0 From: Vasileios Almpanis To: Konstantin Khorenko In-Reply-To: <20261007-b4-prep-khorenko-vstor-148656-cpuid-v6-2-a8eb906e69b8@virtuozzo.com> References: <20261007-b4-prep-khorenko-vstor-148656-cpuid-v6-0-a8eb906e69b8@virtuozzo.com> <20261007-b4-prep-khorenko-vstor-148656-cpuid-v6-2-a8eb906e69b8@virtuozzo.com> Date: Thu, 08 Oct 2026 10:18:09 +0000 Message-Id: <179145468915.66332.16248889747749637196.b4-review@b4> X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1791454690; l=768; i=vasileios.almpanis@virtuozzo.com; s=20260812; h=from:subject:message-id; bh=6N87EcLcTzc06kZa+84uZGYh/MrFP4LVw74Cn6Izgzs=; b=9jFd/0JO8TTdnQcjjC98c1Fl4CovV5EI8JR8s5P8XbhZQwTmbnBxNiFO3cTJNkzXr+pKlF2aH VU4xlNk56EYAudcmtp7/NttsW+71rJSJqWt+x3yMpSxtBdH/C+twcr6 X-Developer-Key: i=vasileios.almpanis@virtuozzo.com; a=ed25519; pk=HhuHDXAcPva9A8zccWEMRsb36reu+y4IVbBjXKxNUjw= X-OZ-Fwd: true Cc: devel@openvz.org Subject: Re: [Devel] [PATCH hci-8.1 v6 2/5] x86/ve: enable CPUID faulting at once when the current task enters a VE 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 > ve_setup_task() only sets TIF_CPUID_OVERRIDE. The MSR follows the flag > in __switch_to_xtra(), so a task that enters a VE through unshare() or > setns() keeps executing CPUID natively until it is scheduled out for the > first time and sees the host values instead of the override table. > > Add set_cpuid_override(), which sets the flag and, like disable_cpuid(), > flips the CPU state synchronously when the task is the current one. > Tasks set up through clone() are not running yet and are still handled > at their first switch-in. > > https://virtuozzo.atlassian.net/browse/VSTOR-148843 > > Feature: x86: cpu pools (cpuid override) NIT: Fixes tag? Should be the same as patch 4 no? -- Vasileios Almpanis _______________________________________________ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel