From: "Charles Coffing" Subject: Re: Drivers Date: Mon, 25 Oct 2004 15:42:12 -0600 Sender: xen-devel-admin@lists.sourceforge.net Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__Part03233224.2__=" Return-path: Errors-To: xen-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Ian.Pratt@cl.cam.ac.uk Cc: xen-devel@lists.sourceforge.net, Ky Srinivasan List-Id: xen-devel@lists.xenproject.org This is a MIME message. If you are reading this text, you may want to consider changing to a mail reader or gateway that understands how to properly handle MIME multipart messages. --=__Part03233224.2__= Content-Type: multipart/alternative; boundary="=__Part03233224.3__=" --=__Part03233224.3__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Related to this, I wrote a little script that disassembles the kernel and drivers, looking for privileged instructions. (The BUG macro must first be modified to avoid many false positives, however.) It turned up a problem in the file linux-2.6.8.1/drivers/mtd/maps/nettel.c. I've attached a patch -- can we put this in the patches directory? I also noticed a number of scary things in the kernel itself (moves to/from CR4, various CLI/STI pairs, maybe some others but I forget ATM) but it appears that these are avoided at runtime. Some of these could and probably should be cleaned up, though, since they exist in the arch/xen tree. I'll come back with some more details on this. Thanks. >>>Ian Pratt 10/25/04 2:11 pm >>> >Do we have a list of drivers that have been validated to work in a Xen >environment. Equally important would be the list of drivers that we know >have some issues working in a Xen environment. Pretty much all the drivers built into the current dom0 config have been booted on some machine and found to work. There have been some reports of a strange issue involving the e100 driver and the debian startup scripts, but we haven't reproduced locally and there seems to be a good workaround. If someone sends us an oops message its probably trivial to fix. I've actually been impressed (amazed!) at how few problems we've found with Linux drivers running over Xen. We're certainly rather stricter than what's possible to get away with on native x86, but I guess the ubiquity of PCI has meant that most popular drivers have been debugged on sparc/alpha/ia64/ppc and have had the bogus assumptions beaten out of them. The only hardware drivers known to have problems are agpgart and drm. The patch directory contains a few patches that fix some obvious bugs, but more work is required. The xfree86 server VESA driver doesn't work due to it requiring support for vm86 mode. Stephan is looking into this. The other driver that I know we have an issue with is the cisco linux-iscsi initiator on 2.4. There's a workaround by setting hacking the driver to set DISABLE_CLUSTERING. The 2.6 iscsi driver works fine. Ian ------------------------------------------------------- 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 Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel --=__Part03233224.3__= Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable =20
Related to this, I wrote a little script that disassembl= es the kernel and drivers, looking for privileged instructions. =  (The "BUG" macro must first be modified to avoid many = false positives, however.)
 
It turned up a problem in the file linux-2.6.8.1/drivers/mtd/maps/net= tel.c.  I've attached a patch -- can we put this in the = patches directory?
 
I also noticed a number of scary things in the kernel itself = (moves to/from CR4, various CLI/STI pairs, maybe some others = but I forget ATM) but it appears that these are avoided at runtime.&nbs= p; Some of these could and probably should be cleaned up, = though, since they exist in the arch/xen tree.  I'll come = back with some more details on this.
 
Thanks.
 


>>>Ian Pratt <Ian.Pratt@cl.cam.ac.uk> = 10/25/04 2:11 pm >>>
>Do we have a list of drivers that = have been validated to work in a Xen
>environment. Equally important = would be the list of drivers that we know
>have some issues working = in a Xen environment.

Pretty much all the drivers built into the = current dom0 config
have been booted on some machine and found to = work.

There have been some reports of a strange issue involving = the
e100 driver and the debian startup scripts, but we haven'treproduced locally and there seems to be a good workaround. If
someone= sends us an oops message its probably trivial to fix.

I've = actually been impressed (amazed!) at how few problems = we've
found with Linux drivers running over Xen. We're = certainly rather
stricter than what's possible to get away with on = native x86, but
I guess the ubiquity of PCI has meant that most = popular drivers
have been debugged on sparc/alpha/ia64/ppc and have had = the bogus
assumptions beaten out of them.

The only hardware = drivers known to have problems are agpgart and
drm. The patch directory = contains a few patches that fix some
obvious bugs, but more work is = required. The xfree86 server VESA
driver doesn't work due to it = requiring support for vm86 mode.
Stephan is looking into this.

Th= e other driver that I know we have an issue with is the cisco
linux-iscs= i initiator on 2.4. There's a workaround by setting
hacking the = driver to set DISABLE_CLUSTERING. The 2.6 iscsi
driver works fine.

Ian



--------------------------------------------------= -----
This SF.net email is sponsored by: IT Product Guide on ITManagersJ= ournal
Use IT products in your business? Tell us what you think of = them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates= 3; Click to find out more
http://productguide.itmanagersjournal.com/guid= epromo.tmpl

Xen-devel mailing list
Xen-devel@lists.sourceforge.ne= t
https://lists.sourceforge.net/lists/listinfo/xen-devel
--=__Part03233224.3__=-- --=__Part03233224.2__= Content-Type: application/octet-stream; name="nettel.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="nettel.patch" ZGlmZiAtcnUgbGludXgtMi42LjguMS9kcml2ZXJzL210ZC9tYXBzL25ldHRlbC5jIGxpbnV4LTIu Ni44LjEteGVuMC9kcml2ZXJzL210ZC9tYXBzL25ldHRlbC5jCi0tLSBsaW51eC0yLjYuOC4xL2Ry aXZlcnMvbXRkL21hcHMvbmV0dGVsLmMJMjAwNC0xMC0yMSAxNTo1OToyOS4wMDAwMDAwMDAgLTA2 MDAKKysrIGxpbnV4LTIuNi44LjEteGVuMC9kcml2ZXJzL210ZC9tYXBzL25ldHRlbC5jCTIwMDQt MTAtMjIgMDk6MTI6MTcuMDAwMDAwMDAwIC0wNjAwCkBAIC0yNzAsNyArMjcwLDcgQEAKIAltYXhz aXplID0gQU1EX1dJTkRPV19NQVhTSVpFOwogCiAJKmFtZHBhciA9IFNDNTIwX1BBUihTQzUyMF9Q QVJfQk9PVENTLCBhbWRhZGRyLCBtYXhzaXplKTsKLQlfX2FzbV9fICgid2JpbnZkIik7CisJd2Jp bnZkKCk7CiAKIAluZXR0ZWxfYW1kX21hcC5waHlzID0gYW1kYWRkcjsKIAluZXR0ZWxfYW1kX21h cC52aXJ0ID0gKHVuc2lnbmVkIGxvbmcpCkBAIC0zODIsNyArMzgyLDcgQEAKIAkgKi8KIAlpbnRl bDFhZGRyID0gaW50ZWwwYWRkciArIGludGVsMHNpemU7CiAJKmludGVsMXBhciA9IFNDNTIwX1BB UihpbnRlbDFjcywgaW50ZWwxYWRkciwgbWF4c2l6ZSk7Ci0JX19hc21fXyAoIndiaW52ZCIpOwor CXdiaW52ZCgpOwogCiAJbWF4c2l6ZSArPSBpbnRlbDBzaXplOwogCkBAIC00MDgsNyArNDA4LDcg QEAKIAlpbnRlbDFzaXplID0gaW50ZWxfbXRkLT5zaXplIC0gaW50ZWwwc2l6ZTsKIAlpZiAoaW50 ZWwxc2l6ZSA+IDApIHsKIAkJKmludGVsMXBhciA9IFNDNTIwX1BBUihpbnRlbDFjcywgaW50ZWwx YWRkciwgaW50ZWwxc2l6ZSk7Ci0JCV9fYXNtX18gKCJ3YmludmQiKTsKKwkJd2JpbnZkKCk7CiAJ fSBlbHNlIHsKIAkJKmludGVsMXBhciA9IDA7CiAJfQo= --=__Part03233224.2__=-- ------------------------------------------------------- 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