From: Avery Pennarun <apenwarr@nit.ca>
To: "Mark A. Williamson" <mark.williamson@cl.cam.ac.uk>
Cc: xen-devel@lists.sourceforge.net, david.hopwood@blueyonder.co.uk
Subject: Re: win4lin-like porting of win98 to xen?
Date: Sun, 10 Oct 2004 21:03:03 -0400 [thread overview]
Message-ID: <20041011010303.GD11053@worldvisions.ca> (raw)
In-Reply-To: <200410110138.10997.mark.williamson@cl.cam.ac.uk>
On Mon, Oct 11, 2004 at 01:38:10AM +0100, Mark A. Williamson wrote:
> > > That suggests using some kind of Xen-compatible kernel that can provide
> > > the DOS syscalls Win 9x needs to run.
> >
> > This certainly won't work. Despite their reliance on DOS for some
> > drivers, Win9x are not strictly layered on DOS; they are 32-bit
> > protected-mode OSes that also rely heavily on direct hardware access.
>
> Hmmm. Some tweaks to shadow page tables could be used to trap attempts to
> load the page table base register, so the memory management code would
> work. Of course IO port accesses would be prevented by Xen completely but
> this could be worked round.
Clearly something must work, because win4lin runs fine (and very fast!)
under Linux, and I'm v*ery* sure it's not allowed to randomly probe I/O
ports there.
> > Duplicating the approach used by Win4Lin is also not a feasible amount of
> > work; it's almost a rewrite of the lower layers of Win9x.
>
> What bits of Win 9x does Win4Lin actually replace?
At least: video driver, input drivers, sound drivers, network drivers,
parallel/serial port drivers, filesystem. It doesn't emulate a block device
because it replaces the filesystem entirely.
> From what I've read, the kernel patch adds a DOS syscall interface that
> somehow helps Windows (apps) to run. Presumably they don't reimplement
> all functionality of the win9x kernel-layer (the thought makes me
> shiver!). I've never looked at the Win4Lin patch but it would be
> interesting to know exactly where it hooks into Windows Land.
The kernel patch, while mildly interesting, is definitely not the hardest
part of win4lin.
> For win9x under Xen I think that getting Win4Lin running under XenLinux
> would be the most straightforward way of doing things.
Yes.
> Is the kernel patch GPL? If so, the commercial bit must be the userland
> software and the device drivers, right? Given that, the quickest way to a
> free Win4Lin would be to reuse their kernel patch and rewrite the tools /
> drivers... Still a nontrivial piece of work.
A free win4lin (ie. rewriting all those drivers) would be a *massive* amount
of work. Fun, but a lot of work. And it gets more and more obsolete each
day. Lots of stuff still runs under win98, but it's certainly not a target
platform for modern developers.
Have fun,
Avery
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
next prev parent reply other threads:[~2004-10-11 1:03 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-10 16:17 win4lin-like porting of win98 to xen? Mikhail Ramendik
2004-10-10 16:32 ` M.A. Williamson
2004-10-10 19:39 ` Mikhail Ramendik
2004-10-10 22:41 ` Mark A. Williamson
2004-10-11 0:05 ` David Hopwood
2004-10-11 0:33 ` Brian Wolfe
2004-10-11 0:38 ` Mark A. Williamson
2004-10-11 1:03 ` Avery Pennarun [this message]
2004-10-11 9:05 ` Mikhail Ramendik
2004-10-11 9:21 ` Steven Hand
2004-10-11 1:52 ` David Hopwood
-- strict thread matches above, loose matches on Subject: below --
2004-10-11 11:33 Tom Cranbrook
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20041011010303.GD11053@worldvisions.ca \
--to=apenwarr@nit.ca \
--cc=david.hopwood@blueyonder.co.uk \
--cc=mark.williamson@cl.cam.ac.uk \
--cc=xen-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.