Re: VMware detection code in boot loader

2000-06-22 Thread Mike Smith
In message [EMAIL PROTECTED] Mike Smith writes: : a larger issue. It is not the loader's job to detect the underlying : hardware configuration. : : Actually, in a broad fashion, it _is_. This is why the loader : understands PCI and PnP, for example. How hard would it be to add usb

Re: VMware detection code in boot loader

2000-06-22 Thread Warner Losh
In message [EMAIL PROTECTED] Mike Smith writes: : As far as the loader is concerned, though, neither of these are on the : boot path, so we can typically wait until the kernel's up and we can use : some "real real" drivers. 8) Well, I have seen boards that support booting off pccard devices...

Re: VMware detection code in boot loader

2000-06-21 Thread Warner Losh
In message [EMAIL PROTECTED] Mike Smith writes: : a larger issue. It is not the loader's job to detect the underlying : hardware configuration. : : Actually, in a broad fashion, it _is_. This is why the loader : understands PCI and PnP, for example. How hard would it be to add usb and

Re: VMware detection code in boot loader

2000-06-19 Thread Martin Cracauer
In [EMAIL PROTECTED], Luoqi Chen wrote: In [EMAIL PROTECTED], Luoqi Chen wrote: It is not the loader's job to detect the underlying hardware configuration. I disagree. I would like to tell which machine I am booting on to choose an appropriate kernel. Eventually (it may take

Re: VMware detection code in boot loader

2000-06-18 Thread Luoqi Chen
In [EMAIL PROTECTED], Luoqi Chen wrote: It is not the loader's job to detect the underlying hardware configuration. I disagree. I would like to tell which machine I am booting on to choose an appropriate kernel. Eventually (it may take a while) we should be able to boot any i386/AT

Re: VMware detection code in boot loader

2000-06-13 Thread Luoqi Chen
Given the way VMware works, I'd have nothing against making it a FICL words, except... ...VMware is a port. For some reason, I dislike the idea of having support targetted at exclusively one specific port. Though we have features added specifically to deal with certain ports, they were all

Re: VMware detection code in boot loader

2000-06-13 Thread Mike Smith
a larger issue. It is not the loader's job to detect the underlying hardware configuration. Actually, in a broad fashion, it _is_. This is why the loader understands PCI and PnP, for example. -- \\ Give a man a fish, and you feed him for a day. \\ Mike Smith \\ Tell him he should learn

Re: VMware detection code in boot loader

2000-06-13 Thread Mike Smith
a larger issue. It is not the loader's job to detect the underlying hardware configuration. Actually, in a broad fashion, it _is_. This is why the loader understands PCI and PnP, for example. Why do we want to do that? Are we going to offload device probe routines to the

Re: VMware detection code in boot loader

2000-06-11 Thread Daniel C. Sobral
Mike Smith wrote: VMware intercepts the inb/outb instruction to port 0x5658 when the eax register is set to a magic value, otherwise it would be handled as any other ports. I think, again, that adding an i386-specific word that detects the presence of VMware is a perfectly sensible

Re: VMware detection code in boot loader

2000-06-11 Thread Louis A. Mamakos
Mike Smith wrote: VMware intercepts the inb/outb instruction to port 0x5658 when the eax register is set to a magic value, otherwise it would be handled as any other ports. I think, again, that adding an i386-specific word that detects the presence of VMware is a perfectly

Re: VMware detection code in boot loader

2000-06-11 Thread Peter Wemm
"Daniel C. Sobral" wrote: Mike Smith wrote: VMware intercepts the inb/outb instruction to port 0x5658 when the eax register is set to a magic value, otherwise it would be handled as any other ports. I think, again, that adding an i386-specific word that detects the presence of

Re: VMware detection code in boot loader

2000-06-11 Thread Mike Smith
Mike Smith wrote: VMware intercepts the inb/outb instruction to port 0x5658 when the eax register is set to a magic value, otherwise it would be handled as any other ports. I think, again, that adding an i386-specific word that detects the presence of VMware is a perfectly

Re: VMware detection code in boot loader

2000-06-11 Thread Daniel C. Sobral
Peter Wemm wrote: 2) Add the VMware detecting to FICL, as originally suggested. Why make #2 vmware specific? Why not set $emulation to native,vmware,bochs, etc. This is applicable to any platform that may have some sort of emulator. Putting it in an environment variable has the

Re: VMware detection code in boot loader

2000-06-11 Thread Mike Smith
Mike Smith wrote: ...VMware is a port. For some reason, I dislike the idea of having support targetted at exclusively one specific port. Though we have features added specifically to deal with certain ports, they were all more generic features. It's not a port, it's a

Re: VMware detection code in boot loader

2000-06-11 Thread Garance A Drosihn
At 10:47 AM -0700 6/11/00, Mike Smith wrote: It's not a port, it's a platform. We probably want to add extra words to detect other platform features, eg. i386, alpha, ia64, etc. but that doesn't invalidate the basic idea. For instance, I might be running the vmware program itself under linux,

Re: VMware detection code in boot loader

2000-06-10 Thread Luoqi Chen
We have inb and outb. Can't vmware be written in Forth? If inl cannot be replaced with inb, I'd rather add inl than vmware. But we can't set registers to specific values before inb/outb, which also means our inb/outb are quite useless in making BIOS calls. IMHO, it would be better to add

Re: VMware detection code in boot loader

2000-06-10 Thread Luoqi Chen
As for setting registers ti specific values... huh? Why does this matter? Can you explain exactly what your code does and how? VMware intercepts the inb/outb instruction to port 0x5658 when the eax register is set to a magic value, otherwise it would be handled as any other ports. -lq To

Re: VMware detection code in boot loader

2000-06-10 Thread Mike Smith
As for setting registers ti specific values... huh? Why does this matter? Can you explain exactly what your code does and how? VMware intercepts the inb/outb instruction to port 0x5658 when the eax register is set to a magic value, otherwise it would be handled as any other ports. I

Re: VMware detection code in boot loader

2000-06-09 Thread Mike Smith
Would anyone object if I add a ficl word to detect whether we're booting from a vmware virtual machine? Sounds good to me! -- \\ Give a man a fish, and you feed him for a day. \\ Mike Smith \\ Tell him he should learn how to fish himself, \\ [EMAIL PROTECTED] \\ and he'll hate you for a

Re: VMware detection code in boot loader

2000-06-09 Thread Jeroen C. van Gelderen
Luoqi Chen wrote: Would anyone object if I add a ficl word to detect whether we're booting from a vmware virtual machine? I find it extremely useful when I'm running FreeBSD as a guest under NT. Because it is a dual cpu box, I can't use a single kernel to boot both directly or inside the

Re: VMware detection code in boot loader

2000-06-09 Thread Christopher Masto
On Fri, Jun 09, 2000 at 01:14:35PM -0400, Jeroen C. van Gelderen wrote: I'm not sure it is a good idea to name this variable VMWare as that is implementation specific. It may be better to have a var named 'emulation' set to 'none' or 'vmware' or 'bochs' or ... Mmm.. or, giving forth the

Re: VMware detection code in boot loader

2000-06-09 Thread Christopher Masto
extern void ficlOutb(FICL_VM *pVM); extern void ficlInb(FICL_VM *pVM); I'm an idiot. -- Christopher Masto Senior Network Monkey NetMonger Communications [EMAIL PROTECTED][EMAIL PROTECTED]http://www.netmonger.net Free yourself, free your machine, free the

Re: VMware detection code in boot loader

2000-06-09 Thread Peter Wemm
Christopher Masto wrote: On Fri, Jun 09, 2000 at 01:14:35PM -0400, Jeroen C. van Gelderen wrote: I'm not sure it is a good idea to name this variable VMWare as that is implementation specific. It may be better to have a var named 'emulation' set to 'none' or 'vmware' or 'bochs' or ...

Re: VMware detection code in boot loader

2000-06-09 Thread Jeroen C. van Gelderen
Peter Wemm wrote: Christopher Masto wrote: On Fri, Jun 09, 2000 at 01:14:35PM -0400, Jeroen C. van Gelderen wrote: I'm not sure it is a good idea to name this variable VMWare as that is implementation specific. It may be better to have a var named 'emulation' set to 'none' or

Re: VMware detection code in boot loader

2000-06-09 Thread Daniel C. Sobral
Luoqi Chen wrote: Would anyone object if I add a ficl word to detect whether we're booting from a vmware virtual machine? I find it extremely useful when I'm running FreeBSD as a guest under NT. Because it is a dual cpu box, I can't use a single kernel to boot both directly or inside the