From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from DU2PR03CU002.outbound.protection.outlook.com (mail-northeuropeazon11021075.outbound.protection.outlook.com [52.101.65.75]) by lore.virtuozzo.com (Postfix) with ESMTPS id D7C87803F6 for ; Tue, 17 Nov 2026 17:46:18 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=pEFr5Hk1qGZHjbY+Fwni6yo8RmgMpPs1W/CTkc5X1UVGM6WH53mV4YEm608uvE/pqtI35kyoY61jgip4WOdBWu8rAnWY1WTZWyfIYMo+a0eLWMk0S29RasFK0Equ94Zid0W5gwPbhceRCWuqIHfUOLLkvPyZuOdzQRCh2xMUYLuY/b8XANY/P/j3GNwykugAQtNQqPdZ0u/SILYR2BPQ20DjRXwM/y+8uvT1TKcmLHflvMdHCo1ZSjjicwBJ5PBw1HTCfjTDO0K4VqxEpXzPByKVoif/nlpZRnPoCDmtj9pzTW3j7/wO68DCGBo83vKW7JiP1W17oBN48SYG2g4UyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=VGXoA5OUpe6eEJusF3znOlqQA/uKb1gui1YFQwjCyu4=; b=N2elTmbCZKj4pTZFlNE72PteqdS9g4Gi1JZ4Xm87rht49y3tuaXqS59SxIJ+iG2BvqwqnTSl1/D3c8hIoz1OrkTbz2FTiBjxPIBrOhk4rg+uDocFLjiWnVUPTRN2g8E6l90GiaQMK3gLb5h9yWnqAKnqAW7bYXqhUYa6pq1ljKygKFEu3OJ35w8jBwtic1IntXYipI5Mmw9vhuLsjY0uJ55+wGZEp0f2GVlKhPI42Gu6zPIDvrMz1UZz9sxfCDqCpzKAD9n9pj+rJWW/NSKmzJ+eVf2Q3lt+7tC+U9CutQ35fZs35quX6P4LGShwKyTcTpmVR4p/P/I//evHq8pM6A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 2a00:1450:4864:20::32f) smtp.rcpttodomain=virtuozzo.com smtp.mailfrom=openvz.org; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=openvz.org; dkim=pass (signature was verified) header.d=openvz.org; arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=virtuozzo.onmicrosoft.com; s=selector2-virtuozzo-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=VGXoA5OUpe6eEJusF3znOlqQA/uKb1gui1YFQwjCyu4=; b=eFQTzUCk05B3vIj0V3BYxij9nsIiIJiC1uvn3c2n+ThuyqYL0fRl9OdoKH1KesO22XGSHtPJVJpVQ71E+aWugt/Arj72EXfgYbHnlp5Cvftu2WuWfxPvf/3YTZlgabVjfRK7Adz8m7BoBBtkstQ6xlMOYfQ1w3mt+1NmD7QN84g= Received: from PAZP264CA0029.FRAP264.PROD.OUTLOOK.COM (2603:10a6:102:122::16) by BR0PR08MB728685.eurprd08.prod.outlook.com (2603:10a6:2c8:46::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.615.14; Tue, 17 Nov 2026 17:46:15 +0000 Received: from ZR1PEPF0000E6AE.eurprd05.prod.outlook.com (2603:10a6:102:122:cafe::84) by PAZP264CA0029.outlook.office365.com (2603:10a6:102:122::16) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.615.13 via Frontend Transport; Tue, 17 Nov 2026 17:46:15 +0000 Authentication-Results: spf=pass (sender IP is 2a00:1450:4864:20::32f) smtp.mailfrom=openvz.org; dkim=pass (signature was verified) header.d=openvz.org;dmarc=pass action=none header.from=openvz.org; Received-SPF: Pass (protection.outlook.com: domain of openvz.org designates 2a00:1450:4864:20::32f as permitted sender) receiver=protection.outlook.com; client-ip=2a00:1450:4864:20::32f; helo=mail-wm1-x32f.google.com; pr=C Received: from mail-wm1-x32f.google.com (2a00:1450:4864:20::32f) by ZR1PEPF0000E6AE.mail.protection.outlook.com (2603:10a6:918::155) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.615.4 via Frontend Transport; Tue, 17 Nov 2026 17:46:13 +0000 Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-4b467581b98so1869685e9.0 for ; Tue, 17 Nov 2026 09:46:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=openvz.org; s=google; t=1794937573; x=1795542373; darn=virtuozzo.com; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=VGXoA5OUpe6eEJusF3znOlqQA/uKb1gui1YFQwjCyu4=; b=Zu21WK0WB7RDUTBX3ykLG49AaZgU4Htgn14/WN0G7n3C0UZNsI25mXL8BNFVRi1ab9 OTP3nn110C+mcMRuGPDHDCDTfSUuI/qRYTtop7t6uDEu9mc30i7yoBh1YqXqVkpV7BrR sT4qfovZ5Y/+R5k68hB94CXwMc7HzEWhX1p+P5aZvEU0EqKJa1NyX/aSRWeq89auDILv ZUn3ek01u9Aoh+sehzK2zZAoo568ff60r1bdGF0uMWhVjLt8+6SnwhMWMrEG4OlVpgIv 8sD+SinM1b8Bg6Q4zqJ00OjnGpXAgloBPuOXZtCvWzWy/rI79UI2dkDkEliTWCIRq4bf vlZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1794937573; x=1795542373; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=VGXoA5OUpe6eEJusF3znOlqQA/uKb1gui1YFQwjCyu4=; b=D1PhrMd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yc/WalyE0mKR5202/rP9HluN c2zknY3xDsPF7l/5kn+E2bfvXg== X-Received: by 2002:a05:600c:8b65:b0:4bb:6a5a:783d with SMTP id 5b1f17b1804b1-4bb6a5a795dmr171163775e9.18.1794937573104; Tue, 17 Nov 2026 09:46:13 -0800 (PST) Received: from artemis.sw.ru ([2a06:5b06:b600:300:9001:bf93:ee20:a4e]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bb78346f4asm83354985e9.0.2026.11.17.09.46.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Nov 2026 09:46:12 -0800 (PST) From: "Denis V. Lunev" To: svt-core@virtuozzo.com Cc: andrey.drobyshev@virtuozzo.com, den@openvz.org Subject: [PATCH hci-8.1 v2 0/2] i386: fix the exec slowdown of pc-q35-vz10.1.0 guests #VSTOR-154986 Date: Tue, 17 Nov 2026 18:46:08 +0100 Message-ID: <20261117174610.1689714-1-den@openvz.org> X-Mailer: git-send-email 2.55.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-EOPAttributedMessage: 0 X-EOPTenantAttributedMessage: 0bc7f26d-0264-416e-a6fc-8352af79c58f:0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: ZR1PEPF0000E6AE:EE_|BR0PR08MB728685:EE_ X-MS-Office365-Filtering-Correlation-Id: 8e0a98d9-e387-4195-d740-08df44d2ac8e X-LD-Processed: 0bc7f26d-0264-416e-a6fc-8352af79c58f,ExtAddr X-MS-Exchange-AtpMessageProperties: SA X-MS-Exchange-SenderADCheck: 0 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|704161211799003|82310400026|376014|61400799027|9140799003|6059299003|48200799018|43022699015|18002099003|16102099003|6133799003|261009223027099003|55112099003|13003099007|5063699009|56012099006|5023799004|261102123227099003|261028144727099003|261026140227099003|261026121527099003|261021121427099003|261022105027099003|261021123027099003|10067099003; X-Microsoft-Antispam-Message-Info: 5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x32f.google.com;CAT:NONE;SFS:(13230040)(704161211799003)(82310400026)(376014)(61400799027)(9140799003)(6059299003)(48200799018)(43022699015)(18002099003)(16102099003)(6133799003)(261009223027099003)(55112099003)(13003099007)(5063699009)(56012099006)(5023799004)(261102123227099003)(261028144727099003)(261026140227099003)(261026121527099003)(261021121427099003)(261022105027099003)(261021123027099003)(10067099003);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: BQYSt7bfahmfkVp+BgeGsgIpLqUHfWvRfnWb2+Hnt6dVcx/VANdf/GFEw6RSWNkh3cOmun0NsnNX3g/o//JMgav9GqZjCLHJEvDQakrnNdBZbU67KpYpdgQDMuaF8OwN5lry6+3m5TXxLkejYDajHBzoXEiCglMn4BaUOt9KFlhJABdfalNN+EnB0mY+/lD8/PTMNYyDFmilJWFXqPjZaqkgfjj050TR4k2Uj3ckQNvS2EfZgxqV3ADOXzV1mH89UX5owjHKov2ovsePs4QY6mvy67DGbFoTPDOsfc8Im3/NXM6bAQ6e8QuUvYsDHGrvRVkjruINUNGlCDWnhh39Vp77Hw1BQ7PLo8rGAKC0PejelaCJgCiAo+CbpnMBzGtdNGWLJMlOJzyw2PGuOvW5MmNf4br8G86X1+94e66mc27KjcZk/0rI0GT8KCEHMKlw X-ExternalRecipientOutboundConnectors: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-Auto-Response-Suppress: DR, OOF, AutoReply X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Nov 2026 17:46:13.7096 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8e0a98d9-e387-4195-d740-08df44d2ac8e X-MS-Exchange-CrossTenant-Id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-CrossTenant-AuthSource: ZR1PEPF0000E6AE.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-Transport-CrossTenantHeadersStamped: BR0PR08MB728685 List-Id: HCI 8.1 guests run fork/exec heavy work about 10% slower than on 8.0. perf-atomic showed it in all five 8.0 vs 8.1 comparisons on four HDD nodes: unixbench execl -10.4% to -14.7%, syscall/sysexec (which are really fork+exec) -8.6% to -12.1%, cpu-ins -5%. The host is not the cause. 8.1 nova creates VMs with pc-q35-vz10.1.0 where 8.0 used pc-q35-vz10.0.0, and the new machine type changes two things the guest sees: CPUID leaf 2 reports 0xff, so glibc's cache queries at process start cost twice the CPUID exits, and la57 is no longer hidden, so Linux guests boot with 5-level paging. The series turns both off in pc_vz_compat, which every Virtuozzo machine type applies, so machine types added later keep them off as well. The only type that changes now is pc-q35-vz10.1.0, which gets the same CPU as pc-q35-vz10.0.0. All other VZ types, pc-i440fx-vz10.1.0 included, already had both off. The trade-off: no Virtuozzo guest gets la57 on a fresh start, "-cpu host" included, unless it asks for it with la57=on. Our guests do not need a 57-bit address space. This is for hci-8.1 only. hci-dev is identical to hci-8.1 at the moment, so the patches apply there as is. The 8.0 QEMU defines pc-q35-vz10.1.0 too and keeps it unchanged, but nova on 8.0 pins pc-q35-vz10.0.0. Tested with the qemu-kvm-10.1.0-20.vz10.23 SRPM rebuilt with v1 on hw-hdd01 (HCI 8.1.0-227, Xeon Silver 4314). A minimal guest with the perf guest kernel (6.12.0-211.74.2.el10_2), Icelake-Server, pinned to one vCPU: execl/s fork+exec/s insb/s CPUID exits per run vz10.1.0, stock 8.1 3400 2675 217K 11.85M vz10.1.0, patched 3890 2985 228K 6.83M vz10.0.0, patched 3890 2990 229K 6.84M The perf VM itself, hard rebooted through nova on the patched QEMU, starts with la57 disabled in its live libvirt definition, boots with 48-bit virtual addresses and runs execl at ~3995/s against 3312/s before (3667/s on the 8.0 node). v2 sets exactly what v1 did: x-consistent-cache and x-no-la57-on-start, read back over QMP for every pc-q35-vz* and pc-i440fx-vz* type, are the same with v1 and v2. RCA and all comparisons are in VSTOR-154986: https://virtuozzo.atlassian.net/browse/VSTOR-154986 Changes since v1: - move both properties into pc_vz_compat instead of a new pc_vz_10_1_compat, so later machine types inherit them (Andrey) - drop the version from the x-no-la57-on-start comment in cpu.h (Andrey) - subjects now say "all Virtuozzo machine types" Denis V. Lunev (2): i386: turn off x-consistent-cache on all Virtuozzo machine types #VSTOR-154986 i386: hide la57 at fresh start on all Virtuozzo machine types #VSTOR-154986 hw/i386/pc.c | 7 ++----- hw/i386/pc_piix.c | 2 +- hw/i386/pc_q35.c | 2 +- include/hw/i386/pc.h | 3 --- target/i386/cpu.h | 4 ++-- 5 files changed, 6 insertions(+), 12 deletions(-) base-commit: ac2ba825418b2726a7a4f367f8ef6d69d8563e47 -- 2.55.0