Re: [PATCH v2 0/3] target/i386: allow using named CPU modeles with user mode emulation

2023-06-26 Thread Richard Henderson
On 6/26/23 11:37, Paolo Bonzini wrote: On Mon, Jun 26, 2023 at 11:36 AM Daniel P. Berrangé wrote: If someone wants Nehalem then they should be using qemu-x86_64. If someone wants qemu-i386 then they should be using an older named CPU model predating 'lm'. What you write is true for qemu-syste

Re: [PATCH v2 0/3] target/i386: allow using named CPU modeles with user mode emulation

2023-06-26 Thread Paolo Bonzini
On Mon, Jun 26, 2023 at 11:36 AM Daniel P. Berrangé wrote: > > > If someone wants Nehalem then they should be using qemu-x86_64. > > > If someone wants qemu-i386 then they should be using an older > > > named CPU model predating 'lm'. > > > > What you write is true for qemu-system-*, but the probl

Re: [PATCH v2 0/3] target/i386: allow using named CPU modeles with user mode emulation

2023-06-26 Thread Daniel P . Berrangé
On Mon, Jun 26, 2023 at 11:27:54AM +0200, Paolo Bonzini wrote: > On Mon, Jun 26, 2023 at 11:20 AM Daniel P. Berrangé > wrote: > > > - for qemu-i386, the issue is that this emulator is restricted to running > > > programs on a 32-bit processor, even though it is actually emulating > > > progra

Re: [PATCH v2 0/3] target/i386: allow using named CPU modeles with user mode emulation

2023-06-26 Thread Paolo Bonzini
On Mon, Jun 26, 2023 at 11:20 AM Daniel P. Berrangé wrote: > > - for qemu-i386, the issue is that this emulator is restricted to running > > programs on a 32-bit processor, even though it is actually emulating > > programs that use the 32-bit kernel ABI on any processor. The behavior > > th

Re: [PATCH v2 0/3] target/i386: allow using named CPU modeles with user mode emulation

2023-06-26 Thread Daniel P . Berrangé
On Mon, Jun 26, 2023 at 10:33:14AM +0200, Paolo Bonzini wrote: > When running qemu-i386 even with -cpu Nehalem (aka x86_64-v2), it raises the > warning > > TCG doesn't support requested feature: CPUID.8001H:EDX.lm [bit 29] > > Likewise using qemu-x86_64 with -cpu Haswell, it raises warnings

[PATCH v2 0/3] target/i386: allow using named CPU modeles with user mode emulation

2023-06-26 Thread Paolo Bonzini
When running qemu-i386 even with -cpu Nehalem (aka x86_64-v2), it raises the warning TCG doesn't support requested feature: CPUID.8001H:EDX.lm [bit 29] Likewise using qemu-x86_64 with -cpu Haswell, it raises warnings for TCG doesn't support requested feature: CPUID.01H:ECX.pcid [bit 17]