From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 13906 invoked from network); 4 Dec 2020 21:20:22 -0000 Received: from ewsd.inri.net (107.191.116.128) by inbox.vuxu.org with ESMTPUTF8; 4 Dec 2020 21:20:22 -0000 Received: from wnew4-smtp.messagingengine.com ([64.147.123.18]) by ewsd; Fri Dec 4 16:15:53 -0500 2020 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailnew.west.internal (Postfix) with ESMTP id 7D7C5AB3 for <9front@9front.org>; Fri, 4 Dec 2020 16:15:47 -0500 (EST) Received: from imap21 ([10.202.2.71]) by compute2.internal (MEProxy); Fri, 04 Dec 2020 16:15:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=biobuf.link; h= mime-version:message-id:in-reply-to:references:date:from:to :subject:content-type:content-transfer-encoding; s=fm1; bh=FDLuY A9tq7m1iVjePGuxXft4f8nKG8SsyIDB4+O6aN8=; b=Ixedj5RqVOGyV8l92+K11 +fRSSzmwHMctmQsfwWdTcgc1sc/+/bIz9gILnAFKN42+tVAOPv8ERQp999If9aFr h531R326UvGw4v1vUneT542hSC+FWEXSSyMp3289d/tR+nJ/FflnHT/lVFYhOZ/y evR80dJjcsLB7OVU/J5e1s92ShA9YnTPXKFcHg0btu4SqQ2wx/WqekuPnB0se/ir e788IImuRl1I191mRVHjeEt0JeHOD4+mGQguj6kaoinEhz2oMMbq23locKJjMU/n 12ra8VecWMTkvQHUadfBIsy2Y2TlNqp/atIW6taznXBfEzBKIPb9CTdRgMcOKCCD Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=FDLuYA9tq7m1iVjePGuxXft4f8nKG8SsyIDB4+O6a N8=; b=EmJ4lhjKMY7oZsF6kaqpRmbcxmbEcASCtnsCi5yuloOFFgAKw0A+7O0D9 KuJiTrpInsKaB/PgQzZY6rmnMx7Nu2BkIAAq3ioXNRU0/65T1NgFxT6qlB1gpR9M JSaCLYc//OkiyEaBiNSvuTtsU9T+i/+PyIrxP5YTIW5HKXjNywvWBdXvUj+Oqkzm q0Tsrwv/YJovK1XJwFblmvYWPCVF8HTv7+A5AvoItKXl97A2IiYDT2gQjlvKujkL 3kBh7Sj3TJ/6UgqQTTeAVjN/McQX1o3iFSHhWkgIRqk0JI70xqkqFw+cBqakcdCp TCdNy9PMlbhf7WfHL1pkMOybdNYvg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrudeikedgudegiecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkjghffffhvffutgfgse htqhertderreejnecuhfhrohhmpedfjhgrmhgvshcuphgrlhhmvghrfdcuoehjrghmvghs segsihhosghufhdrlhhinhhkqeenucggtffrrghtthgvrhhnpefhleefgfduudehkedvvd ffkeeljeeltdfgtdffvdefvefhheefjeeihfeijefgjeenucevlhhushhtvghrufhiiigv pedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehjrghmvghssegsihhosghufhdrlhhinh hk X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 96C926F6005E; Fri, 4 Dec 2020 16:15:28 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.3.0-622-g4a97c0b-fm-20201115.001-g4a97c0b3 Mime-Version: 1.0 Message-Id: <4a5d5248-6502-4cd2-a094-380654be651f@www.fastmail.com> In-Reply-To: <52CB3E735527EF01CDF9E2641E3A406B@gmail.com> References: <52CB3E735527EF01CDF9E2641E3A406B@gmail.com> Date: Fri, 04 Dec 2020 21:15:26 +0000 From: "james palmer" To: 9front@9front.org Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: agile metadata service-oriented framework Subject: Re: [9front] VMX improvements + AVX Reply-To: 9front@9front.org Precedence: bulk On Fri, 4 Dec 2020, at 3:39 PM, Sigrid Solveig Hafl=C3=ADnud=C3=B3ttir w= rote: > Hello. I made some changes to /sys/src/9/^(pc pc64) and > /sys/src/cmd/vmx to get better support for Linux and OpenBSD emulation= > and before I push it (or not) I'd like to get more eyes (and hands) on= > it. 386 kernel should not be affected by the change at all, this is > about amd64 specifically. >=20 > Changes were tested on two machines I have, with AVX enabled/disabled.= > No problems were found with extensive use, nor any performance issues > detected. >=20 > On the host Go is using AVX successfully with this change. I'm > writing optimized routines related to video playback so that's yet > another reason why this work has been done in the first place. >=20 > * AVX/AVX2 support on amd64 for both 9front kernel itself + VMX > guests. Enabled by setting "*avx=3D" in plan9.ini. > * Make vmx(1) report to guest it's running under a hypervisor. > * Provide "fast strings" (through msr) properly to guests. > * Rework cpuid in vmx(1). > * A bit better timing by using tsc offset feature. Clock is still > wrong but at least not THAT much. Proper kvm clock implementation > in the future will address that. >=20 > Thanks. >=20 > - Sigrid seems to work fine on my box. i'm seeing better performance in my debian= vm too. i haven't done any testing though. - james