From: Tom Rotenberg Subject: Re: Possible bug with pass-through hot-plug? Date: Mon, 19 Oct 2009 04:27:47 +0200 Message-ID: <8686c3cd0910181927q5973f02en9e07b2667017f5db@mail.gmail.com> References: <20091012223616.GC9072@verge.net.au> <20091013094345.GA16712@verge.net.au> <8686c3cd0910130252m6a57388cv8b4d5211a14a4998@mail.gmail.com> <20091015093107.GA11293@verge.net.au> <8686c3cd0910150238h3d79d81dse8ee1ecb8f5350f2@mail.gmail.com> <20091015110632.GA14946@verge.net.au> <8686c3cd0910150702l542f75cbq6ffeee9c1ea47057@mail.gmail.com> <20091016074352.GA17063@verge.net.au> <8686c3cd0910172220k25ba4f13kdb1ca1c6854d6fdd@mail.gmail.com> <20091019020901.GG11338@verge.net.au> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <20091019020901.GG11338@verge.net.au> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Simon Horman Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org OK, so i'll try to see, if i manage to hack some working ASL code myself, but i don't think it will work too much for me :) So, i'll also wait for a patch from you (if and when such patch will be released). If i'll manage to solve it myself, i'll post the patch. On Mon, Oct 19, 2009 at 4:09 AM, Simon Horman wrote: > Hi Tom, > > On Sun, Oct 18, 2009 at 07:20:05AM +0200, Tom Rotenberg wrote: >> Simon, >> >> Just checked what u propsed, and it works. > > I must confess that I am surprised. Good work :-) > >> So, i'm pretty sure, that the problem is with the ASL code. I thought >> of an implementaion change of the ASL code, which will make it work: >> we will change it from: >> ... >> if ( slt =3D=3D 0x1 ) >> else if (slt =3D=3D 0x2) >> ... >> else if (slt =3D=3D 0x20) >> .,.. >> >> to the following (just as an example): >> if ( slt < 0x10 ) >> { >> =A0 =A0 if (slt =3D=3D 0x1) >> ... >> } else { >> =A0 =A0 if ( slt =3D=3D 0x11) >> ... >> } >> >> What do u think about this? > > I think that could be a good attack. To be honest I haven't done > that much work with ASL, so I'm not sure how easy it would be > to implement anything more sophisticated than what you suggest. > > The ASL code that you're hacking on was auto generated (off-line, by me) > (unless I'm mistaken). Auto generating the replacement is probably > a good idea. I can take a stab at that if you like, though time is > quite tight at the moment as I'm travelling and in meetings a lot, > so it might have to wait a week or so. > >