Re: [PATCH v2 10/10] linux-user: completely re-write init_guest_space

2020-04-02 Thread Richard Henderson
On 4/1/20 2:47 AM, Alex Bennée wrote: > +/* > + * Now we are going to try and map something, we start by trying > + * to satisfy exactly what the guest wants. This is unlikely to > + * succeed but will make the code generators job easier if it can > + * be done. > + * > +

Re: [PATCH v2 10/10] linux-user: completely re-write init_guest_space

2020-04-02 Thread Alex Bennée
Alex Bennée writes: > This tries to simplify the init_guest_space code to be a little less > convoluted and remove the brute force mapping algorithm that gets > tripped up so badly by the sanitizers. > > We first try to do what is requested by the host. Failing that we try > and satisfy the gue

[PATCH v2 10/10] linux-user: completely re-write init_guest_space

2020-04-01 Thread Alex Bennée
This tries to simplify the init_guest_space code to be a little less convoluted and remove the brute force mapping algorithm that gets tripped up so badly by the sanitizers. We first try to do what is requested by the host. Failing that we try and satisfy the guest requested base address. If all t