* [uml-devel] [PATCH] skas3 for x86_64 arch @ 2004-02-20 19:24 Matt Ayres 2004-02-20 20:55 ` BlaisorBlade 0 siblings, 1 reply; 6+ messages in thread From: Matt Ayres @ 2004-02-20 19:24 UTC (permalink / raw) To: user-mode-linux-devel Hi, I just did a quick port of the skas3 patch to the x86_64 architecture. Everything seems very straightforward except for the do_mmap2 function. I don't have a x86_64 machine or an emulator so I can't even verify this even compiles. I would appreciate if someone able to test this could let me know if it compiles/works and if there are any problems provide verbose information. If it doesn't compile, pasting the errors of the build should be enough. If it compiles but panics I would appreciate the oops to be run through ksymoops and that output sent. The patch is at: http://www.tektonic.net/public/host-skas3-x86_64.patch Thanks! -- Matt Ayres <matta@tektonic.net> TekTonic ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ User-mode-linux-devel mailing list User-mode-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [uml-devel] [PATCH] skas3 for x86_64 arch 2004-02-20 19:24 [uml-devel] [PATCH] skas3 for x86_64 arch Matt Ayres @ 2004-02-20 20:55 ` BlaisorBlade 2004-02-20 21:05 ` Matt Ayres 0 siblings, 1 reply; 6+ messages in thread From: BlaisorBlade @ 2004-02-20 20:55 UTC (permalink / raw) To: user-mode-linux-devel; +Cc: Matt Ayres Alle 20:24, venerdì 20 febbraio 2004, Matt Ayres ha scritto: > Hi, > > I just did a quick port of the skas3 patch to the x86_64 architecture. > Everything seems very straightforward except for the do_mmap2 function. Sorry, but you've changed the prototype of sys32_mmap2 by adding the mm parameter (which goes only on do_mmap2). So it cannot possibly compile. -asmlinkage long sys32_mmap2(unsigned long addr, unsigned long len, +/* common code for old and new mmaps */ +static inline long do_mmap2(struct mm_struct *mm, +unsigned long addr, unsigned long len, unsigned long prot, unsigned long flags, unsigned long fd, unsigned long pgoff) + +asmlinkage long sys32_mmap2(struct mm_struct *mm, +unsigned long addr, unsigned long len, +unsigned long prot, unsigned long flags, +unsigned long fd, unsigned long pgoff) +{ +return do_mmap2(addr, len, prot, flags, fd, pgoff); +} + Apart for this, I did not see anything strange (but I give a *very* quick look, i.e. 1 minute, so I'm not sure). > I don't have a x86_64 machine or an emulator so I can't even verify this > even compiles. Have you tried a cross build with make ARCH=x86_64 ? I'm not sure if that can work or requires cross-compilators, but maybe not. -- Paolo Giarrusso, aka Blaisorblade Linux registered user n. 292729 ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id\x1356&alloc_id438&opÌk _______________________________________________ User-mode-linux-devel mailing list User-mode-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [uml-devel] [PATCH] skas3 for x86_64 arch 2004-02-20 20:55 ` BlaisorBlade @ 2004-02-20 21:05 ` Matt Ayres 2004-02-21 9:45 ` Cameron Patrick 0 siblings, 1 reply; 6+ messages in thread From: Matt Ayres @ 2004-02-20 21:05 UTC (permalink / raw) To: BlaisorBlade; +Cc: user-mode-linux-devel On Fri, 2004-02-20 at 15:55, BlaisorBlade wrote: > Alle 20:24, venerdì 20 febbraio 2004, Matt Ayres ha scritto: > > Hi, > > > > I just did a quick port of the skas3 patch to the x86_64 architecture. > > Everything seems very straightforward except for the do_mmap2 function. > > Sorry, but you've changed the prototype of sys32_mmap2 by adding the mm > parameter (which goes only on do_mmap2). So it cannot possibly compile. That area confuses me, I can't find anything in the kernel that actually uses sys32_mmap2. I've changed it for compatibility, but i'm not sure how it will work. do_mmap2 doesn't exist for x86_64. do_mmap2 did exist in kernel 2.4.20 and I simply copied the code from there. I've uploaded a new patch, https://www.tektonic.net/public/linux-2.4.25-x86_64-skas3.patch. I wasn't using the updated skas patch for 2.4.25 so it wouldn't have worked anyway. The main problem I think is that skas changes the do_mmap_pgoff function, so I had to update the arch/x86_64/sys_x86_64.c file also where I don't even think it will actually touch any code in that file as UML will be running in 32-bit mode. > > Have you tried a cross build with make ARCH=x86_64 ? I'm not sure if that can > work or requires cross-compilators, but maybe not. Yes, I tried that and got an error very early saying it can't be done. The x86_64 emulator seems to cost money. I'll have to see if i'm using a cross compiler or not, I always thought gcc had that enabled by default. -- Matt Ayres <matta@tektonic.net> TekTonic ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ User-mode-linux-devel mailing list User-mode-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [uml-devel] [PATCH] skas3 for x86_64 arch 2004-02-20 21:05 ` Matt Ayres @ 2004-02-21 9:45 ` Cameron Patrick 2004-02-22 2:51 ` matta 0 siblings, 1 reply; 6+ messages in thread From: Cameron Patrick @ 2004-02-21 9:45 UTC (permalink / raw) To: user-mode-linux-devel Matt Ayres wrote: | The x86_64 emulator seems to cost money. Have you tried Bochs? I've not used it for x86-64 myself but it claims to be able to do it. 'tis a bit slow, though. Cameron. ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ User-mode-linux-devel mailing list User-mode-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [uml-devel] [PATCH] skas3 for x86_64 arch 2004-02-21 9:45 ` Cameron Patrick @ 2004-02-22 2:51 ` matta 2004-02-22 3:06 ` Cameron Patrick 0 siblings, 1 reply; 6+ messages in thread From: matta @ 2004-02-22 2:51 UTC (permalink / raw) To: cameron; +Cc: user-mode-linux-devel Yes, I installed bochs and just tried the AMD64 kernel provided by SuSe on their site and when it booted up it stated my CPU wasn't capable of 64-bit. So it looks like it does support it, but only when running under a 64-bit CPU. I just went out and bought an Opteron so now I really need to get this working :) > Matt Ayres wrote: > > | The x86_64 emulator seems to cost money. > > Have you tried Bochs? I've not used it for x86-64 myself but it > claims to be able to do it. 'tis a bit slow, though. > > Cameron. > > > ------------------------------------------------------- > SF.Net is sponsored by: Speed Start Your Linux Apps Now. > Build and deploy apps & Web services for Linux with > a free DVD software kit from IBM. Click Now! > http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click > _______________________________________________ > User-mode-linux-devel mailing list > User-mode-linux-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ User-mode-linux-devel mailing list User-mode-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [uml-devel] [PATCH] skas3 for x86_64 arch 2004-02-22 2:51 ` matta @ 2004-02-22 3:06 ` Cameron Patrick 0 siblings, 0 replies; 6+ messages in thread From: Cameron Patrick @ 2004-02-22 3:06 UTC (permalink / raw) To: user-mode-linux-devel matta@tektonic.net wrote: | Yes, I installed bochs and just tried the AMD64 kernel provided by SuSe on | their site and when it booted up it stated my CPU wasn't capable of | 64-bit. So it looks like it does support it, but only when running under | a 64-bit CPU. It works for me on my Athlon XP. (Well, I didn't try to actually do anything with it, but the kernel prints out messages and stuff.) This is using the Debian unstable `bochs' package. Screenshot- http://cp.yi.org/cameron/bochs.png That said, a real Opteron would be a lot more practical for most things; especially, e.g. running gcc :-) Cameron. ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ User-mode-linux-devel mailing list User-mode-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2004-02-22 3:14 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2004-02-20 19:24 [uml-devel] [PATCH] skas3 for x86_64 arch Matt Ayres 2004-02-20 20:55 ` BlaisorBlade 2004-02-20 21:05 ` Matt Ayres 2004-02-21 9:45 ` Cameron Patrick 2004-02-22 2:51 ` matta 2004-02-22 3:06 ` Cameron Patrick
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox