On 2015年08月12日 15:59, gchen gchen wrote: > On 2015年08月12日 14:45, Richard Henderson wrote: >> On 08/11/2015 11:03 PM, gchen gchen wrote: >>> Under Alpha host, for ubuntu12.04.5 i386 guest, it will cause failure: >>> "Invalid ELF image for this architecture". >>> >>> The related issue commit is "a70daba linux-user: Tell guest about big >>> host page sizes". >>> >>> Signed-off-by: Chen Gang<gang.chen.5...@gmail.com> >>> --- >>> linux-user/elfload.c | 4 ++++ >>> 1 file changed, 4 insertions(+) >> >> Nack. There's 99 problems with host page size> guest page size. This >> solves none of them, and in the hackiest way possible. >> > > Under alpha virtual machine, if set i386 guest page size 8KB, it will > cause failure directly (any dynamically linked binaries can not work). > > This fix can let i386 bash/cp/vi/ls run under alpha virtual machine, > although there maybe be many other issues (which I did not meet, now). > > Do you have any other ideas for solving this issue? e.g. can we rebuild > all i386 programs with segment alignment to 8KB? I am not quite sure, > but some i386 programs (which are interested in) have no source code! > :-(. >
By the way, the patches about the alpha are my current work, I can do it during my work time, it will have no any negative effect with my tilegx linux-user development in my free time. :-) One of my current work contents are: "run ubuntu12.04.5 (no graphic) under alpha virtual machine, and run wine under ubuntu12.04.5 i386 guest under ubuntu alpha vm, and wine will run Win32 graphic programs". - I want to x86_64 laptop run Alpha linux-user run i386 linux-user run wine run Win32 graphic programs. I guess, I need build X libs under ubuntu Alpha vm (which nographic) -- use them for alpha linux-user. - At present, x86_64 laptop run arm linux-user run i386 linux-user run wine run Windows i386 graphic programs are OK, the performance is acceptable! the qemu code keeps no touch -- our qemu is very good!!!. Welcome any ideas, suggestions and completions. Thanks. -- Chen Gang Open, share, and attitude like air, water, and life which God blessed