qemu-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Changing aarch64 pointer authentication algorithm in qemu-user


From: Avi Kivity
Subject: Re: Changing aarch64 pointer authentication algorithm in qemu-user
Date: Mon, 11 Apr 2022 13:27:04 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0


On 11/04/2022 13.09, Peter Maydell wrote:
On Mon, 11 Apr 2022 at 11:05, Avi Kivity <avi@scylladb.com> wrote:

On 11/04/2022 12.25, Peter Maydell wrote:
On Sun, 10 Apr 2022 at 21:03, Avi Kivity <avi@scylladb.com> wrote:
I'm using qemu to cross-build container images with docker. It works
well, but aarch64 emulation is slow, due to pointer authentication.


The documentation refers to a pauth-impdef cpu feature to speed it up,
but I could not find an example. What is the incantation?
"-cpu max,pauth-impdef=on" or similar should do.

Thanks, subjectively feels much faster.


In case someone googles this,
https://github.com/avikivity/qemu-aarch64-static-fast can save you a bit
of work.
For working via binfmt-misc the environment variable equivalents
for qemu-user-mode's command line arguments is often convenient.
In this case I think that ensuring that
QEMU_CPU="max,pauth-impdef=on"
is set in the environment would also work.


Ah! Even better.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]