From nobody Thu Jan 13 16:15:47 2022 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 030A71942455; Thu, 13 Jan 2022 16:15:48 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JZV0M6h6rz3vQH; Thu, 13 Jan 2022 16:15:47 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1642090547; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=cVH/PZAP70RNOHubSs4CuPMPfffsw39epR2/Woit71Y=; b=Auc89OQjQ1tdgdJGFVAIPhwOBboNf+vGVvdKkcX4Kcox/OLieNO73AU9cgJlwMsTFs8o3V +Tm/COh0a2H47UkWz5C92g6QGbc4mNyZf39GMMxx4Msyxj4MjFLOP/dqKPs3Vod2PiDL+O inv/zd7sN+mCyTmN6F+F+BEJ2FTjBcgQ6fg6iu44M1VMl4PKiEXjCqwp+moOScHZ0NzAIr OEzB8wmLOnNQxLZA95PUmW+P97oKtAvYBFpbGa7OLZhw0jiHgAogO9VI7ViwfrBl7SQ4dH I2OSTIYYeUcy8gRJwU8+TTc7ufthdfPl7y0eQVxnT/kFlqLouJ3z5xAneuMWPA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id C5B972357E; Thu, 13 Jan 2022 16:15:47 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 20DGFlBN016564; Thu, 13 Jan 2022 16:15:47 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 20DGFlEa016563; Thu, 13 Jan 2022 16:15:47 GMT (envelope-from git) Date: Thu, 13 Jan 2022 16:15:47 GMT Message-Id: <202201131615.20DGFlEa016563@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: =?utf-8?Q?Roger Pau Monn=C3=A9?= Subject: git: 7d06c761c8ab - main - x86/madt: allow Xen guest to use x2APIC mode List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: royger X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 7d06c761c8ab210e0bb0644a65be1c81ea521bea Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1642090547; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=cVH/PZAP70RNOHubSs4CuPMPfffsw39epR2/Woit71Y=; b=wkCjMdawCLSD9cNl/XbxrjzkdYIC0voUxkvpS+Oz15rLOwTf0Pi+g/VhVuKMlNgQ10wfhZ fOHHHgBX9GiAAGhg/SZeWN5gKeKelEqawmbxZ6FbSeZYU7VFnub2PReaFCuShoLJaIafT3 b6b2N2RUzplB8irUxkk45KjooGAMr6sVOggR89wLIa2J39eedfoEh9Q1UECwQ1An7lJ2Co YhZDGm4KON45qDwyeQQomyGN03Cr8Iy1sz3p02pD3tTlWPK0ioRbV3v0dpTKK1oTbrbbdB /SwFKQvNXkTHsbqT+JJJL21VSiJqZLMVOqPwN7VxRS9kgJOyvNVLjc3ke65UJA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1642090547; a=rsa-sha256; cv=none; b=LfqKnwnEvA6slNaRx4JxnSCy+2qEXkXjL5knTolCbD7ppO+ffpgjQM/+l32N6fbjjvGeXu sZDgbj3dSuQ2E0tkHhMGzTWqH6s6U+G2W1ZDfrmpC52rJioYbnWqWvNMVYjqMTqJ8jRh36 CdZxETAfmeSJRDubQATnXc/iXfDg1tidHWIfZkAMOb/L+57L156LiDgWG43rT75Pcch2it FgPSytAr7jLTXJU9ELYSRdM2dQhR23XRDGmjwCK8kJ9CuMPQGyZ4eZBDYyAkjYT8RHnSJR 3XQCKAMat+PObJzzhMCgPzxt0aKJBRMESFZH1/Q83S6M9rDSymtZ0KaQxNJ6Ug== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by royger: URL: https://cgit.FreeBSD.org/src/commit/?id=7d06c761c8ab210e0bb0644a65be1c81ea521bea commit 7d06c761c8ab210e0bb0644a65be1c81ea521bea Author: Roger Pau Monné AuthorDate: 2022-01-13 13:54:21 +0000 Commit: Roger Pau Monné CommitDate: 2022-01-13 16:15:24 +0000 x86/madt: allow Xen guest to use x2APIC mode The old bogus Xen versions that would deliver a GPF when writing to the LAPIC MSR are likely retired, so it's safe to enable x2APIC unconditionally now if available. Tested by: avg Reviewed by: kib Sponsored by: Citrix Systems R&D Differential revision: https://reviews.freebsd.org/D33877 --- sys/x86/acpica/madt.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/sys/x86/acpica/madt.c b/sys/x86/acpica/madt.c index 8e343a6619f3..880857a8cfad 100644 --- a/sys/x86/acpica/madt.c +++ b/sys/x86/acpica/madt.c @@ -168,9 +168,6 @@ madt_x2apic_disable_reason(void) return ("inside VMWare without intr redirection"); } - if (vm_guest == VM_GUEST_XEN) - return ("due to running under XEN"); - if (vm_guest == VM_GUEST_NO && CPUID_TO_FAMILY(cpu_id) == 0x6 && CPUID_TO_MODEL(cpu_id) == 0x2a) {