9front - general discussion about 9front
 help / color / mirror / Atom feed
From: "james palmer" <james@biobuf.link>
To: 9front@9front.org
Subject: Re: [9front] VMX improvements + AVX
Date: Fri, 04 Dec 2020 21:15:26 +0000	[thread overview]
Message-ID: <4a5d5248-6502-4cd2-a094-380654be651f@www.fastmail.com> (raw)
In-Reply-To: <52CB3E735527EF01CDF9E2641E3A406B@gmail.com>

On Fri, 4 Dec 2020, at 3:39 PM, Sigrid Solveig Haflínudóttir wrote:
> 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.
> 
> Changes were tested on two machines I have, with AVX enabled/disabled.
> No problems were found with extensive use, nor any performance issues
> detected.
> 
> 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.
> 
> * AVX/AVX2 support on amd64 for both 9front kernel itself + VMX
>   guests.  Enabled by setting "*avx=" 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.
> 
> Thanks.
> 
>  - 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

  reply	other threads:[~2020-12-04 21:20 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-04 15:39 Sigrid Solveig Haflínudóttir
2020-12-04 21:15 ` james palmer [this message]
2020-12-04 22:25 ` Kurt H Maier
2020-12-05  0:19 ` ori
2020-12-10 12:23 ` Stuart Morrow
2020-12-10 15:09   ` ori
2020-12-18  2:22   ` magma698hfsp273p9f
2020-12-18  4:41     ` ori
2021-01-21  0:58       ` Nemo's books (WAS: Re: [9front] VMX improvements + AVX) magma698hfsp273p9f
2021-01-21  3:37         ` Roman Shaposhnik
2021-01-21  3:58         ` sl
2021-01-23  7:31           ` [9front] Re: Nemo's books magma698hfsp273p9f
2021-01-23 12:47             ` Eckard Brauer
2021-01-21  4:07         ` Nemo's books (WAS: Re: [9front] VMX improvements + AVX) Anthony Martin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4a5d5248-6502-4cd2-a094-380654be651f@www.fastmail.com \
    --to=james@biobuf.link \
    --cc=9front@9front.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).