Re: [PATCH 2/3] rust: arch/um: Disable FP/SIMD instruction to match x86

2023-01-15 Thread Sergio González Collado
On Sat, 17 Dec 2022 at 05:49, David Gow wrote: > > The kernel disables all SSE and similar FP/SIMD instructions on > x86-based architectures (partly because we shouldn't be using floats in > the kernel, and partly to avoid the need for stack alignment, see: > https://gcc.gnu.org/bugzilla/show_bug.

Re: [PATCH 3/3] rust: arch/um: Add support for CONFIG_RUST under x86_64 UML

2023-01-15 Thread Sergio González Collado
On Sat, 17 Dec 2022 at 05:48, David Gow wrote: > > CONFIG_RUST currently supports x86_64, but does not support it under > UML. With the previous patches applied, adding support is trivial: > add CONFIG_HAVE_RUST to UML if X86_64 is set. > > The scripts/generate_rust_target.rs file already checks f

Re: [PATCH 3/3] rust: arch/um: Add support for CONFIG_RUST under x86_64 UML

2023-01-15 Thread Sergio González Collado
On Sat, 17 Dec 2022 at 05:48, David Gow wrote: > > CONFIG_RUST currently supports x86_64, but does not support it under > UML. With the previous patches applied, adding support is trivial: > add CONFIG_HAVE_RUST to UML if X86_64 is set. > > The scripts/generate_rust_target.rs file already checks f

Re: [PATCH 1/3] rust: arch/um: Use 'pie' relocation mode under UML

2023-01-15 Thread Thomas Meyer
Hi, Am 17. Dezember 2022 05:44:34 MEZ schrieb David Gow : >UML expects a position independent executable for some reason, I think I did add this to make UML build on Debian... > so tell >rustc to generate pie objects. Otherwise we get a bunch of relocations >we can't deal with in libcore. > >S

Re: [PATCH 3/3] rust: arch/um: Add support for CONFIG_RUST under x86_64 UML

2023-01-15 Thread Miguel Ojeda
On Sat, Dec 17, 2022 at 5:45 AM David Gow wrote: > > diff --git a/Documentation/rust/arch-support.rst > b/Documentation/rust/arch-support.rst > index 6982b63775da..a526ca1c688b 100644 > --- a/Documentation/rust/arch-support.rst > +++ b/Documentation/rust/arch-support.rst > @@ -17,3 +17,5 @@ Archi