Re: [PATCH v4 0/3] target/i386: Restrict system-specific features from user emulation

2023-09-13 Thread Philippe Mathieu-Daudé
On 12/9/23 19:25, Paolo Bonzini wrote: > However, the dependency of user-mode emulation on KVM is really an > implementation detail of QEMU.  It's very much baked into linux-user and > hard to remove, but I'm not sure it's a good idea to add more #ifdef > CONFIG_USER_ONLY

Re: [PATCH v4 0/3] target/i386: Restrict system-specific features from user emulation

2023-09-12 Thread Paolo Bonzini
Il mar 12 set 2023, 18:44 Philippe Mathieu-Daudé ha scritto: > I can try to improve it with your comments, but I have no idea of > x86 CPU features. > I will take a look. > However, the dependency of user-mode emulation on KVM is really an > > implementation detail of QEMU. It's very much bake

Re: [PATCH v4 0/3] target/i386: Restrict system-specific features from user emulation

2023-09-12 Thread Philippe Mathieu-Daudé
On 12/9/23 16:07, Paolo Bonzini wrote: On 9/11/23 23:13, Philippe Mathieu-Daudé wrote: Too many system-specific code (and in particular KVM related) is pulled in user-only build. This led to adding unjustified stubs as kludge to unagressive linker non-optimizations. This series restrict x86 sys

Re: [PATCH v4 0/3] target/i386: Restrict system-specific features from user emulation

2023-09-12 Thread Paolo Bonzini
On 9/11/23 23:13, Philippe Mathieu-Daudé wrote: Too many system-specific code (and in particular KVM related) is pulled in user-only build. This led to adding unjustified stubs as kludge to unagressive linker non-optimizations. This series restrict x86 system-specific features to sysemu, so we d

[PATCH v4 0/3] target/i386: Restrict system-specific features from user emulation

2023-09-11 Thread Philippe Mathieu-Daudé
Too many system-specific code (and in particular KVM related) is pulled in user-only build. This led to adding unjustified stubs as kludge to unagressive linker non-optimizations. This series restrict x86 system-specific features to sysemu, so we don't require any stub, and remove all x86 KVM decl