Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1227977
| From | Denys Vlasenko <dvlasenk@redhat.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 1/2] x86/math-emu: Add support for FCMOVcc and F[U]COMI[P] insns |
| Date | 2015-09-18 17:00 +0200 |
| Message-ID | <qa5iP-5JO-45@gated-at.bofh.it> (permalink) |
| References | <q9qSl-5HH-3@gated-at.bofh.it> <q9Yr1-4pF-23@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 09/18/2015 09:33 AM, Ingo Molnar wrote: > > * Denys Vlasenko <dvlasenk@redhat.com> wrote: > >> Run-tested by booting with "no387 nofxsr" and running test programs: >> >> # ./test_FCMOV >> [RUN] Testing fcmovCC instructions >> [OK] fcmovCC >> # ./test_FCOMI >> [RUN] Testing f[u]comi[p] instructions >> [OK] f[u]comi[p] >> >> Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com> >> CC: Ingo Molnar <mingo@kernel.org> >> CC: Borislav Petkov <bp@alien8.de> >> CC: "H. Peter Anvin" <hpa@zytor.com> >> CC: Andy Lutomirski <luto@amacapital.net> >> CC: Kees Cook <keescook@chromium.org> >> CC: x86@kernel.org >> CC: linux-kernel@vger.kernel.org >> --- >> >> The patches did not change since last submission. >> The difference, now they are run-tested. >> >> arch/x86/math-emu/fpu_aux.c | 70 ++++++++++++++++++++++ >> arch/x86/math-emu/fpu_entry.c | 49 +++++++++------ >> arch/x86/math-emu/fpu_proto.h | 12 ++++ >> arch/x86/math-emu/reg_compare.c | 128 ++++++++++++++++++++++++++++++++++++++++ >> 4 files changed, 241 insertions(+), 18 deletions(-) > > I wanted to apply this patch, but noticed the following problem: why are two > instruction families added in a single patch? They were introduced at the same time in the CPU evolution (when CMOV feature was added). The idea is that there may be programs which assume that "cmov" in /proc/cpuinfo means both these insns are safe to use, which is true for all real CPUs. > Note that regressing math-emu for real is a real concern here: we start > interpreting real instructions. If anything breaks, and the failure isn't right at > the instruction that is buggy (but some time later), it would be nice which new > instruction causes the problem and make it all bisectable ... > > So we should be finegrained and only add a single (family) of instructions in a > single patch. Please split this patch into two I'm sending a new patchset. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 1/2] x86/math-emu: Add support for FCMOVcc and F[U]COMI[P] insns Denys Vlasenko <dvlasenk@redhat.com> - 2015-09-16 21:50 +0200
[PATCH 2/2] x86/math-emu: Remove define layer for undocumented opcodes Denys Vlasenko <dvlasenk@redhat.com> - 2015-09-16 21:50 +0200
Re: [PATCH 2/2] x86/math-emu: Remove define layer for undocumented opcodes Ingo Molnar <mingo@kernel.org> - 2015-09-18 09:40 +0200
Re: [PATCH 1/2] x86/math-emu: Add support for FCMOVcc and F[U]COMI[P] insns Denys Vlasenko <dvlasenk@redhat.com> - 2015-09-16 22:00 +0200
Re: [PATCH 1/2] x86/math-emu: Add support for FCMOVcc and F[U]COMI[P] insns Ingo Molnar <mingo@kernel.org> - 2015-09-17 09:30 +0200
Re: [PATCH 1/2] x86/math-emu: Add support for FCMOVcc and F[U]COMI[P] insns Ingo Molnar <mingo@kernel.org> - 2015-09-18 09:40 +0200
Re: [PATCH 1/2] x86/math-emu: Add support for FCMOVcc and F[U]COMI[P] insns Denys Vlasenko <dvlasenk@redhat.com> - 2015-09-18 17:00 +0200
Re: [PATCH 1/2] x86/math-emu: Add support for FCMOVcc and F[U]COMI[P] insns Ingo Molnar <mingo@kernel.org> - 2015-09-20 10:20 +0200
csiph-web