Re: Emulate if x86-64 on x86-64

2024-08-13 Thread Peter Maydell
On Tue, 13 Aug 2024 at 17:52, Jakob Bohm wrote: > > On 2024-08-13 18:43, Peter Maydell wrote: > > On Tue, 13 Aug 2024 at 16:54, Jakob Bohm via > > wrote: > >> Another approach that might be worth examining would be to build the TCG > >> snippet collection for different host CPU generations (such

Re: Emulate if x86-64 on x86-64

2024-08-13 Thread Jakob Bohm via
On 2024-08-13 18:43, Peter Maydell wrote: On Tue, 13 Aug 2024 at 16:54, Jakob Bohm via wrote: Another approach that might be worth examining would be to build the TCG snippet collection for different host CPU generations (such as x86-64 with only SSE2, x86-64 with SSE3 and x86-64 with AVX512),

Re: Emulate if x86-64 on x86-64

2024-08-13 Thread Peter Maydell
On Tue, 13 Aug 2024 at 16:54, Jakob Bohm via wrote: > Another approach that might be worth examining would be to build the TCG > snippet collection for different host CPU generations (such as x86-64 > with only SSE2, x86-64 with SSE3 and x86-64 with AVX512), thereby > providing fast emulation of t

Re: Emulate if x86-64 on x86-64

2024-08-13 Thread Jakob Bohm via
Dear Qemu list, On 2024-08-13 11:53, Peter Maydell wrote: On Mon, 12 Aug 2024 at 18:47, Chris Parker wrote: FYI - I have been interested for some time in making an accelerator that would run in a sort-of hybrid KVM mode, where host-supported instructions are executed by the processor, but un

Re: Emulate if x86-64 on x86-64

2024-08-13 Thread Chris Parker
Hi Peter, Vadim, Great to know the QEMU team has thought about this before. I concede that my idea might not fit nicely into QEMU's design architecture, it likely would be an entirely different accelerator or standalone emulator, and even then, it would be a hit-or-miss for users as far as wheth

Re: Emulate if x86-64 on x86-64

2024-08-13 Thread Peter Maydell
On Mon, 12 Aug 2024 at 18:47, Chris Parker wrote: > FYI - I have been interested for some time in making an accelerator that > would run in a sort-of hybrid KVM mode, where host-supported instructions are > executed by the processor, but unsupported functions are provided by > something like th

RE: Emulate if x86-64 on x86-64

2024-08-12 Thread Vadim Idelchuk
k=mail...@nongnu.org] On Behalf Of Chris Parker Sent: יום ב 12 אוגוסט 2024 20:47 To: Peter Maydell Cc: qemu-discuss@nongnu.org Subject: Re: Emulate if x86-64 on x86-64 Hi Peter, Yes, I know. Thank you very much for your response (including the follow-up), which was exactly what I was doing

Re: Emulate if x86-64 on x86-64

2024-08-12 Thread Chris Parker
Hi Peter, Yes, I know. Thank you very much for your response (including the follow-up), which was exactly what I was doing wrong! BTW - I am also experimenting to see if the QEMU User Space emulator would be a better solution for me, since setting up and running a whole (slow) VM just to run one

Re: Emulate if x86-64 on x86-64

2024-08-12 Thread Peter Maydell
On Mon, 12 Aug 2024 at 14:19, Peter Maydell wrote: > > On Mon, 12 Aug 2024 at 14:02, Chris Parker wrote: > > For example, I want to run an application that contains SSE4.1 instructions > > on a host machine that doesn't have support for these. If I try to do it > > with QEMUt, I'm just given wa

Re: Emulate if x86-64 on x86-64

2024-08-12 Thread Peter Maydell
On Mon, 12 Aug 2024 at 14:02, Chris Parker wrote: > > I have a very simple use case for QEMU that doesn't seem to be possible, > despite suggestions in some parts of the documentation that it should be, or > am I doing something wrong? > > The basic issue is how to get QEMU to provide new proces