From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from DB3PR0202CU003.outbound.protection.outlook.com (mail-northeuropeazon11020088.outbound.protection.outlook.com [52.101.84.88]) by lore.virtuozzo.com (Postfix) with ESMTPS id 07F47803F6 for ; Mon, 16 Nov 2026 17:50:12 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=KmzNZ5GaPvgJJ07v//+Un5i9R45h3Ag7vmBgX4OXDmDcDDRsAa8q3oqsUoaEW4k6e/j1dPitxyp4d5Ee5VeoKiGauAp6PJa6/DMKYXTcKMy3irodw9r+/0lbPZiy3NrsE8CFspKZxCzxYWNful+bh9CgDCg1Yt9ad+2eLs2gAkhIoYEpYtUlZbE1hWtmKfo51p414RhdzytlgWCqAXg3Ujfgm7Mx5pb2IgES3u/ljnmHcPKdoUO/4SkueDAfWJU29FNXbrNHvIAgDmq7u6/B0qTMajby0EK5UJb9FUoEIQST4qGfLUR0nLLZfLZLlR8jg9/T5QOdDmDUpgralWh7rg== 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=aYmF0XiY/KGBVF4BKjnc0OshOGA+y4trfKdaqea0EeA=; b=lX8JXbSv8boJeUVeonLT+RUfB/01R75VXC6vXKcXEmX15CRkefvrQryOuemili8wLHIQZcBDgmsFBhy8RN6kjVgT3sGs6l0KAzkuQcC5azie1gs728dQGRP6YLiibhM64BTNZsZEIWD1r6m+y1+59Q7Zzzsrtm5enPkUgnU6BILXissfdp9OQvlBBbDipYOXQOhnbFjyq7T/oF72+dYALk1pPG9PYegH6M2pnNvBqlfXTaUh1Dgayq9j/pqYUUbunyK5qYtmm+I2RBU67/kvcwEJvSaWD5RUfcl9KR1byUn3S0rq/TNMgjaEzKBRDTTbaZjtxDVF6UwJ5Lom26KaXA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 2a00:1450:4864:20::42a) 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=aYmF0XiY/KGBVF4BKjnc0OshOGA+y4trfKdaqea0EeA=; b=QbGkEdhU7PISYOP0LHixqyJKoLyVWvFa+DiLTtywXegVuBnrE7vJCnwKdoKs3SUvrrVqYgq8VLmijzgSs3vqpT00Rhkc+bGfsSk1rKogStmdUl9sa7K9J9jT9uX766I2i3ecrIjz3d85FuRPCcNU/kvM9C0nbz+i77RqM9LMDpk= Received: from DU2PR04CA0227.eurprd04.prod.outlook.com (2603:10a6:10:2b1::22) by AM8PR08MB6513.eurprd08.prod.outlook.com (2603:10a6:20b:366::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.615.14; Mon, 16 Nov 2026 17:50:07 +0000 Received: from DB1PEPF000509E4.eurprd03.prod.outlook.com (2603:10a6:10:2b1:cafe::ae) by DU2PR04CA0227.outlook.office365.com (2603:10a6:10:2b1::22) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.615.13 via Frontend Transport; Mon, 16 Nov 2026 17:50:07 +0000 Authentication-Results: spf=pass (sender IP is 2a00:1450:4864:20::42a) 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::42a as permitted sender) receiver=protection.outlook.com; client-ip=2a00:1450:4864:20::42a; helo=mail-wr1-x42a.google.com; pr=C Received: from mail-wr1-x42a.google.com (2a00:1450:4864:20::42a) by DB1PEPF000509E4.mail.protection.outlook.com (2603:10a6:18:3::616) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.615.4 via Frontend Transport; Mon, 16 Nov 2026 17:50:05 +0000 Received: by mail-wr1-x42a.google.com with SMTP id ffacd0b85a97d-48e47347279so1755132f8f.1 for ; Mon, 16 Nov 2026 09:50:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=openvz.org; s=google; t=1794851405; x=1795456205; 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=aYmF0XiY/KGBVF4BKjnc0OshOGA+y4trfKdaqea0EeA=; b=D1jQRjy2ya4JCEC8uow9CDhTPfPPuGWqap7RXswJCLmj6lS+9bljnwmDF7/Coa8jTj VX8aQUwqxQvtWKMtmUR1UKdz/MU/SqVf64nK38rNJDFgvwPwuYm7/CTZAXoSE21QftXs 6+0rV7XTmR6jcXpr29N9CfDnfVHV6OusQaRod6RS1i0ZOtEBXcARfZqZIPwcHSKiTdJC sh1KIfshR3UKDO8CoJAE+Pf4tmK9Vdm6cwovTejVtaCU9dkaXheFe0qXOy2y+LgMB9kk x+W6SX9ofGlgsNNWx/yKzoyG0qmkEYrZRgYcGiTBrEinss90vHhs213Izx+bS+anQ4cn VxUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1794851405; x=1795456205; 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=aYmF0XiY/KGBVF4BKjnc0OshOGA+y4trfKdaqea0EeA=; b=mw1ldlizzOnQTNebBVmtScDIjOeczR+b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jiW+I6n4 kneiPgBdMV0YPfE09l03TcH7KUE= X-Received: by 2002:a05:6000:4803:b0:49c:192f:cf20 with SMTP id ffacd0b85a97d-49c6dbffed9mr22522550f8f.6.1794851405201; Mon, 16 Nov 2026 09:50:05 -0800 (PST) Received: from artemis.sw.ru ([2a06:5b06:b600:300:cf0d:642d:d702:3c24]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-49c608c5debsm22743886f8f.42.2026.11.16.09.50.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Nov 2026 09:50:04 -0800 (PST) From: "Denis V. Lunev" To: svt-core@virtuozzo.com Cc: andrey.drobyshev@virtuozzo.com, den@openvz.org Subject: [PATCH hci-8.1 0/2] i386: fix the exec slowdown of pc-q35-vz10.1.0 guests #VSTOR-154986 Date: Mon, 16 Nov 2026 18:50:00 +0100 Message-ID: <20261116175002.844361-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: DB1PEPF000509E4:EE_|AM8PR08MB6513:EE_ X-MS-Office365-Filtering-Correlation-Id: a3b7d821-a3ea-4075-a193-08df440a0c71 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|43022699015|376014|9140799003|48200799018|6059299003|61400799027|16102099003|18002099003|55112099003|13003099007|5023799004|56012099006|10067099003|261028144727099003|261026121527099003|261021123027099003|261021121427099003|5063699009|261026140227099003|261009223027099003|261102123227099003|261022105027099003; X-Microsoft-Antispam-Message-Info: KktX9UpZZeewfc0UhMXynmEauNCUp5wDGNm4PKHXsTk9hq4n6NdBNG+8jOmFXtoWMjGdO+dKlDLy7SWIa9rDh5E9WqPYgqr7eL8zIvFn0lABNhxmi6SIa9lmW2L+kWuW2pHa/9mV7FZRwDtzgIEiauQJY/h9o90NHcOYViXxuUR5NPW+t5fZEmtPFksvLuRLBpWSE7zdCrESfAtaDs3LBC9iyUBlETi24nMDkWZnDiM3NCb14d2vk+H6gLvfgXK4zP6y1qozRSJ3XwJKEOSc5o/0kM/H9NjgoLG1p7EnyDtRDJBDOBa/nRExru3kNoATJxcNwfuGJPbPEAnIK/8if8AnWJB2XcMScjjLNxLOpX9vzC/TVWNBohnSbzijrld30+1Xxx/ELIUhYRCJma/B2dwF8d3wr07mVA5W25l2ND+re6CG74W7dg06sIJV/STtibwgDEpR3SdesrkVFYJBEtBR9I+iQuTx99nsrFGtk8mlB0qAo4eEqNz70u/2JtbGX4cw5J+sc6l0xDv+UH28k+no5NkEq62aXzDNKMWhaZAEiI+EyUef9kH9iVUYhR+v3nIFVVf7d8tAqwqnCN6Uf1ZBlJEqrqZvrhBbIPIgLbff1YYdV55XPhQ/Zduqspg1FSICMaQDqTsxZ7BlHvqNNJploJQ/89SjFqCnVQjm6cpbL3iP+Q7uOYM4D3MU9y6oiX8woYFpsEqJlE88hGAO0e7uatvTkEYLgJJQ5gHmB873KVHRCt9fBOo2iy+9PylhAGCPMuQwqD4Wk74W3EANp4oaWiQ7DcT8ycpvBXcrU1txc0nUtSACKs+jBluqgly2q2hWEownnUMo5cMiTRVB10EsTWynpFJQsGyCdAy32VyDYnD5lvnviC33UtvRN6yFhRibkzEW6XwTu8i1eosdB10jU9pxGLK7O89o43xx7rFHu5yPMumys09yfl94PhLt X-Forefront-Antispam-Report: CIP:2a00:1450:4864:20::42a;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail-wr1-x42a.google.com;PTR:mail-wr1-x42a.google.com;CAT:NONE;SFS:(13230040)(704161211799003)(82310400026)(43022699015)(376014)(9140799003)(48200799018)(6059299003)(61400799027)(16102099003)(18002099003)(55112099003)(13003099007)(5023799004)(56012099006)(10067099003)(261028144727099003)(261026121527099003)(261021123027099003)(261021121427099003)(5063699009)(261026140227099003)(261009223027099003)(261102123227099003)(261022105027099003);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: df19kjoqRO+UHsSeu+pkGxVkqqi73NV6bAqHJOhLUpaPxb1dkyspsEyn0WnILktuXv7t5ZADu28uqfbTZKRlVa9PFPmlwsykr3c7pd5OY/VWBK2pAH3al/ikgbWt7aaZBECZlS2D4WL+uawUYWOF1XUe4ybtTvPC7Hlf6ukiWejDVOVK+dmkZSbQQCEMjURyVReiGON+PzOfDW/DQ4R1BwJoK8wDpj9hkVdcWylke/BefI7ZmYRJvTdqinQMIN8LawmGpy25dDFvy2ubW4kWrkeQOBjlqF1RM+8jlfpHkqQZAGIPgBBlNeiYNDwu0MPKhNqvaaGnsczp6nUkLB6WHn2t+OQ2SP6wfTYymIsYMLaeLiJCDq8eJRgc1ms1HsfiHylJxPBBDGHgjdds/eThj4fWojBNtqir8DRDWjPXzghx1Tc10g4KXgv+XLgv3G1y X-ExternalRecipientOutboundConnectors: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-Auto-Response-Suppress: DR, OOF, AutoReply X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Nov 2026 17:50:05.8540 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a3b7d821-a3ea-4075-a193-08df440a0c71 X-MS-Exchange-CrossTenant-Id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-CrossTenant-AuthSource: DB1PEPF000509E4.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8PR08MB6513 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 on pc-q35-vz10.1.0, so it gives the guest the same CPU as pc-q35-vz10.0.0. The trade-off: a vz10.1.0 guest no longer 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 both patches 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). RCA and all comparisons are in VSTOR-154986: https://virtuozzo.atlassian.net/browse/VSTOR-154986 Denis V. Lunev (2): i386: turn off x-consistent-cache on pc-q35-vz10.1.0 #VSTOR-154986 i386: hide la57 at fresh start on pc-q35-vz10.1.0 too #VSTOR-154986 hw/i386/pc.c | 5 +++-- hw/i386/pc_piix.c | 2 +- hw/i386/pc_q35.c | 4 ++-- include/hw/i386/pc.h | 4 ++-- target/i386/cpu.h | 2 +- 5 files changed, 9 insertions(+), 8 deletions(-) base-commit: ac2ba825418b2726a7a4f367f8ef6d69d8563e47 -- 2.55.0