From nobody Mon Nov 23 04:43:59 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linux.microsoft.com ARC-Seal: i=1; a=rsa-sha256; t=1794304614; cv=none; d=zohomail.com; s=zohoarc; b=EQBkIjFMA6ARd9qPtXmDH+MnTF4SAVVEvqYEaXQEoIMx/cNhVDEagGt/9W/Zp4ydp4vtWY+RI856MsDTtrooq/7h7luRDUaYTAKe5fS6r8tV8v9yxAhneJrCYtNo4rF/vSTH9kC8KUAP7OpGRr4eePqWk8jeqJ741yzwxOoWSk4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1794304614; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=ntLjdW/MmqC2nG46W/sqXowqt4r14nluTg+4QyLOY9E=; b=nmugUscQy463b1v0FouFXi8RnEOFYvhdXauwIbFs2XebYvSpbWPxXwUNWkuOjwIkj+4mIwiG/2lKtr8ZF2Bkn574YQ/C0Pha5KH7cBnscLgTZ9X2d6Fn4WKqtVDNRpLNs5DJL0Gm9ZUYjMXP5y1T/0KA/hHWvZrBzokT+/Mzlxw= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1794304614430353.45444689607973; Tue, 10 Nov 2026 01:56:54 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xQiae-0003k2-UQ; Tue, 10 Nov 2026 04:56:32 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xQiab-0003jD-CG for qemu-devel@nongnu.org; Tue, 10 Nov 2026 04:56:29 -0500 Received: from linux.microsoft.com ([13.77.154.182]) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xQiaZ-0004nX-K4 for qemu-devel@nongnu.org; Tue, 10 Nov 2026 04:56:28 -0500 Received: from laptop.localdomain (unknown [81.196.141.39]) by linux.microsoft.com (Postfix) with ESMTPSA id 3BAE320B7169; Tue, 10 Nov 2026 01:56:21 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 3BAE320B7169 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1794304583; bh=ntLjdW/MmqC2nG46W/sqXowqt4r14nluTg+4QyLOY9E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=R8qGFG/81FDZehjs0Ms7Po71YdBbKW/u9oJUzXGHB3tn0SprV+HgRQiWZ6YabZ7Uc s2Hr3mjJ4RGEVHzZ70ZHKK294+FdEsZEVCBLtHn+OsIByGocgH7IShrF7xikjwixdB sEsJAdPPfBaKrkIzX5gAkzFuK2LKujJhpDgNNJ0Q= From: =?UTF-8?q?Doru=20Bl=C3=A2nzeanu?= To: qemu-devel@nongnu.org Cc: Wei Liu , Magnus Kulke , Zhao Liu , Paolo Bonzini , Wei Liu , =?UTF-8?q?Doru=20Bl=C3=A2nzeanu?= , =?UTF-8?q?Doru=20Bl=C3=A2nzeanu?= , Magnus Kulke Subject: [PATCH v2 1/3] i386/cpu.c: Adjust minimum xlevel to 0x8000_001E when TOPOEXT is enabled Date: Tue, 10 Nov 2026 11:56:15 +0200 Message-ID: <20261110095617.50713-2-dblanzeanu@linux.microsoft.com> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20261110095617.50713-1-dblanzeanu@linux.microsoft.com> References: <20261110095617.50713-1-dblanzeanu@linux.microsoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=13.77.154.182; envelope-from=dblanzeanu@linux.microsoft.com; helo=linux.microsoft.com X-Spam_score_int: -26 X-Spam_score: -2.7 X-Spam_bar: -- X-Spam_report: (-2.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linux.microsoft.com) X-ZM-MESSAGEID: 1794304615737158501 This ensures the guests can discover the AMD cache and processor topology l= eaves when TOPOEXT feature is enabled. Signed-off-by: Doru Bl=C3=A2nzeanu --- target/i386/cpu.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/target/i386/cpu.c b/target/i386/cpu.c index eab0d5a4d4..e443132ce9 100644 --- a/target/i386/cpu.c +++ b/target/i386/cpu.c @@ -9911,6 +9911,11 @@ void x86_cpu_expand_features(X86CPU *cpu, Error **er= rp) x86_cpu_adjust_level(cpu, &env->cpuid_min_xlevel, 0x8000000A); } =20 + /* TOPOEXT requires CPUID[0x8000001D] and CPUID[0x8000001E] */ + if (env->features[FEAT_8000_0001_ECX] & CPUID_EXT3_TOPOEXT) { + x86_cpu_adjust_level(cpu, &env->cpuid_min_xlevel, 0x8000001E); + } + /* SEV requires CPUID[0x8000001F] */ if (sev_enabled()) { x86_cpu_adjust_level(cpu, &env->cpuid_min_xlevel, 0x8000001F); --=20 2.54.0 From nobody Mon Nov 23 04:43:59 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linux.microsoft.com ARC-Seal: i=1; a=rsa-sha256; t=1794304633; cv=none; d=zohomail.com; s=zohoarc; b=ME7/Men4SX2iIRTK2H7Z7+eOVYoiCcqzF6LJJe/SGjD0U4147oeU1ydMFVBS1Ozq/lbFxZtN8zxQf2j1obJ0ZZB+EzlPOXBBLIRmOYh5f4b9sIPmFfKa1RqI85/CXQPahMyA+SSF1PvDsiR0WLLkXsZkzyEdAOeWxX9PHrPPJUM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1794304633; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=no+9d5177Y6rlSGXUP2mWc7YHhZJhKDbXw2eYZHQUQc=; b=TZ1/GofHyHpEkvqx9DgPQwFlpjaPwgT/zb+KRcSbUI8Xx4VHssyCQ+q5bn+BvZmHSbyQiOfZs58gQH/SjLXfPGCRrjT5dc+PLZ6z6QEfZmh9rpWhH050i07fPbeGmobvOfhsnBgOn7iraWyQfrBLx1qN9ohCtHOfkPzAD6f6mlk= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1794304632968809.5940199760632; Tue, 10 Nov 2026 01:57:12 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xQiao-0003l3-BA; Tue, 10 Nov 2026 04:56:42 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xQiae-0003k3-RW for qemu-devel@nongnu.org; Tue, 10 Nov 2026 04:56:32 -0500 Received: from linux.microsoft.com ([13.77.154.182]) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xQiac-0004oJ-7E for qemu-devel@nongnu.org; Tue, 10 Nov 2026 04:56:31 -0500 Received: from laptop.localdomain (unknown [81.196.141.39]) by linux.microsoft.com (Postfix) with ESMTPSA id 80FCC20B716A; Tue, 10 Nov 2026 01:56:24 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 80FCC20B716A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1794304586; bh=no+9d5177Y6rlSGXUP2mWc7YHhZJhKDbXw2eYZHQUQc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MiwOov1Wd8V/JJ8/0E5r+282C3WWL5vRiBeHW3vS711PCxu9MVKnRqa+ZQzHiPlK1 sKNJ6yeh78cjYGrM54c1gG+ttvZ1VAYjVNEgUYJH0xRYniZy7VP/GA+fxVCrfVHn/n xgBA5hmcURpberd8tyGcIXc/RYA709mXoVc9z8bI= From: =?UTF-8?q?Doru=20Bl=C3=A2nzeanu?= To: qemu-devel@nongnu.org Cc: Wei Liu , Magnus Kulke , Zhao Liu , Paolo Bonzini , Wei Liu , =?UTF-8?q?Doru=20Bl=C3=A2nzeanu?= , =?UTF-8?q?Doru=20Bl=C3=A2nzeanu?= , Magnus Kulke Subject: [PATCH v2 2/3] mshv/mshv-cpu.c: Collect all Intel topology subleaves and AMD cache subleaves Date: Tue, 10 Nov 2026 11:56:16 +0200 Message-ID: <20261110095617.50713-3-dblanzeanu@linux.microsoft.com> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20261110095617.50713-1-dblanzeanu@linux.microsoft.com> References: <20261110095617.50713-1-dblanzeanu@linux.microsoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=13.77.154.182; envelope-from=dblanzeanu@linux.microsoft.com; helo=linux.microsoft.com X-Spam_score_int: -26 X-Spam_score: -2.7 X-Spam_bar: -- X-Spam_report: (-2.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linux.microsoft.com) X-ZM-MESSAGEID: 1794304634058158500 This fix makes AMD cache overrides subleaf-specific, makes 0x8000_001E apply regardless of ECX (not subleaf specific) and collects Intel topology subleaves (0x0b, 0x1f). Signed-off-by: Doru Bl=C3=A2nzeanu --- target/i386/mshv/mshv-cpu.c | 41 +++++++++++++++++++++++++++++-------- 1 file changed, 33 insertions(+), 8 deletions(-) diff --git a/target/i386/mshv/mshv-cpu.c b/target/i386/mshv/mshv-cpu.c index 4df73bb497..25670667f0 100644 --- a/target/i386/mshv/mshv-cpu.c +++ b/target/i386/mshv/mshv-cpu.c @@ -1093,6 +1093,21 @@ static void collect_cpuid_entries(const CPUState *cp= u, GList **cpuid_entries) /* Collect basic leaves (0x0 to max_basic_leaf) */ for (leaf =3D 0; leaf <=3D max_basic_leaf; leaf++) { bool has_subleaves =3D false; + + if (leaf =3D=3D 0x0b || leaf =3D=3D 0x1f) { + for (subleaf =3D 0; subleaf < max_subleaf; subleaf++) { + cpu_x86_cpuid(env, leaf, subleaf, + &eax, &ebx, &ecx, &edx); + add_cpuid_entry(cpuid_entries, leaf, subleaf, + eax, ebx, ecx, edx); + + if (!(ecx & 0xff00)) { + break; + } + } + continue; + } + for (int i =3D 0; i < n_subleaf_leaves; i++) { if (leaf =3D=3D leaves_with_subleaves[i]) { has_subleaves =3D true; @@ -1150,6 +1165,20 @@ static void collect_cpuid_entries(const CPUState *cp= u, GList **cpuid_entries) =20 /* Collect extended leaves (0x80000000 to max_extended_leaf) */ for (leaf =3D 0x80000000; leaf <=3D max_extended_leaf; leaf++) { + if (leaf =3D=3D 0x8000001d) { + for (subleaf =3D 0; subleaf < max_subleaf; subleaf++) { + cpu_x86_cpuid(env, leaf, subleaf, + &eax, &ebx, &ecx, &edx); + + add_cpuid_entry(cpuid_entries, leaf, subleaf, + eax, ebx, ecx, edx); + if ((eax & 0x1f) =3D=3D 0) { + break; + } + } + continue; + } + cpu_x86_cpuid(env, leaf, 0, &eax, &ebx, &ecx, &edx); add_cpuid_entry(cpuid_entries, leaf, 0, eax, ebx, ecx, edx); } @@ -1229,12 +1258,10 @@ static int register_intercept_result_cpuid(const CP= UState *cpu, * 0xb - Extended Topology Enumeration Leaf * 0x1f - V2 Extended Topology Enumeration Leaf * AMD - * 0x8000_001e - Processor Topology Information * 0x8000_0026 - Extended CPU Topology */ if (entry->function =3D=3D 0xb || entry->function =3D=3D 0x1f || - entry->function =3D=3D 0x8000001e || entry->function =3D=3D 0x80000026) { subleaf_specific =3D 1; always_override =3D 1; @@ -1245,12 +1272,14 @@ static int register_intercept_result_cpuid(const CP= UState *cpu, * 0x0D: Processor Extended State Enumeration * 0x0F: Platform QoS Monitoring * 0x10: Platform QoS Enforcement + * 0x8000_001D: AMD Cache Topology */ } else if (entry->function =3D=3D 0x04 || entry->function =3D=3D 0x07 || entry->function =3D=3D 0x0d || entry->function =3D=3D 0x0f || - entry->function =3D=3D 0x10) { + entry->function =3D=3D 0x10 || + entry->function =3D=3D 0x8000001d) { subleaf_specific =3D 1; always_override =3D 1; /* Basic feature leaves (no subleaves) */ @@ -2339,11 +2368,6 @@ void mshv_arch_init_vcpu(CPUState *cpu) header =3D (X86XSaveHeader *)(env->xsave_buf + sizeof(X86LegacyXSaveAr= ea)); header->xcomp_bv =3D header->xstate_bv | (1ULL << 63); =20 - /* - * TODO: populate topology info: - * X86CPUTopoInfo *topo_info =3D &env->topo_info; - */ - ret =3D init_cpuid2(cpu); assert(ret =3D=3D 0); =20 @@ -2394,6 +2418,7 @@ uint32_t mshv_get_supported_cpuid(uint32_t func, uint= 32_t idx, int reg) /* Disable nested virtualization features not yet supported by MSHV */ if (func =3D=3D 0x80000001 && reg =3D=3D R_ECX) { ret &=3D ~CPUID_EXT3_SVM; + ret |=3D CPUID_EXT3_TOPOEXT; } if (func =3D=3D 0x01 && reg =3D=3D R_ECX) { ret &=3D ~CPUID_EXT_VMX; --=20 2.54.0 From nobody Mon Nov 23 04:43:59 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linux.microsoft.com ARC-Seal: i=1; a=rsa-sha256; t=1794304632; cv=none; d=zohomail.com; s=zohoarc; b=hUYwn8n/HrAB4grrIzoN7gvj+I0cnpag3L2n0JclhFp0FdQSakWZTtemgj3kqk5KCckWeuQsyqlSD5JqZ8QDcNHkktpwGetSJT0Tl+15G/EJuc/laBVh4E1kSxB8+2MXrATjNIX1OIrttCSNKwQj69N7xAtectY8BWL9kVKMRY0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1794304632; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=rrr8RbvuITbhw09njxgffz3pNdbpVDkTfNrQHasGHsc=; b=j93h9e07rpMhk87B5HY2klk+Ea0gtSSDvBwGlNUwdNsOG68cFOygWKAbrePZ4OqpRJpBmR8wOvhEnejDJYWl8/x7wb7Y51PoAkfXFuuI7pnrYN770EDQ9BhN3it00sjKIQp8qA2zNqPlYX0cOvaMDXLvf/K4pUznvSx6lldRF14= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1794304632074131.60870857755333; Tue, 10 Nov 2026 01:57:12 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xQiaq-0003lE-5x; Tue, 10 Nov 2026 04:56:44 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xQiag-0003kG-Mf for qemu-devel@nongnu.org; Tue, 10 Nov 2026 04:56:36 -0500 Received: from linux.microsoft.com ([13.77.154.182]) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xQiae-0004oV-Qn for qemu-devel@nongnu.org; Tue, 10 Nov 2026 04:56:34 -0500 Received: from laptop.localdomain (unknown [81.196.141.39]) by linux.microsoft.com (Postfix) with ESMTPSA id 57C2120B7168; Tue, 10 Nov 2026 01:56:27 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 57C2120B7168 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1794304589; bh=rrr8RbvuITbhw09njxgffz3pNdbpVDkTfNrQHasGHsc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XU7kWn0SitVQmoATI9UipfB0Q26i5dSZ9hEzFSptqKNpvCMmpvclOWiJsePZbUiuQ RtoYBjtTa1qA9bTaB51aHPvI84Ff2NpynlGOCbg+o27MG8qai7iFVitCCvodZ/qOXJ vR3FlkkDqCPT5BWEEIO3gVB9sQW89W7iJLlHv39o= From: =?UTF-8?q?Doru=20Bl=C3=A2nzeanu?= To: qemu-devel@nongnu.org Cc: Wei Liu , Magnus Kulke , Zhao Liu , Paolo Bonzini , Wei Liu , =?UTF-8?q?Doru=20Bl=C3=A2nzeanu?= , =?UTF-8?q?Doru=20Bl=C3=A2nzeanu?= , Magnus Kulke Subject: [PATCH v2 3/3] accel/mshv: Enable SMT support for the mshv partition Date: Tue, 10 Nov 2026 11:56:17 +0200 Message-ID: <20261110095617.50713-4-dblanzeanu@linux.microsoft.com> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20261110095617.50713-1-dblanzeanu@linux.microsoft.com> References: <20261110095617.50713-1-dblanzeanu@linux.microsoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=13.77.154.182; envelope-from=dblanzeanu@linux.microsoft.com; helo=linux.microsoft.com X-Spam_score_int: -26 X-Spam_score: -2.7 X-Spam_bar: -- X-Spam_report: (-2.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linux.microsoft.com) X-ZM-MESSAGEID: 1794304634006158500 Signed-off-by: Doru Bl=C3=A2nzeanu --- accel/mshv/mshv-all.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/accel/mshv/mshv-all.c b/accel/mshv/mshv-all.c index d820a67b95..2b854c1ebd 100644 --- a/accel/mshv/mshv-all.c +++ b/accel/mshv/mshv-all.c @@ -178,7 +178,8 @@ static int create_partition(int mshv_fd, int *vm_fd) pt_flags =3D (1ULL << MSHV_PT_BIT_LAPIC) | (1ULL << MSHV_PT_BIT_X2APIC) | (1ULL << MSHV_PT_BIT_GPA_SUPER_PAGES) | - (1ULL << MSHV_PT_BIT_CPU_AND_XSAVE_FEATURES); + (1ULL << MSHV_PT_BIT_CPU_AND_XSAVE_FEATURES) | + (1ULL << MSHV_PT_BIT_SMT_ENABLED_GUEST); =20 /* enable all */ disabled_xsave_features.as_uint64 =3D 0; --=20 2.54.0