lkml.org 
[lkml]   [2006]   [Mar]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: VMI Interface Proposal Documentation for I386, Part 4
Hi!

> 6) Interrupts must always be enabled when running code in userspace.

I'd say this breaks userspace.

This code used to work when ran as root:

void
main(void)
{
int i;
iopl(3);
while (1) {
asm volatile("cli");
// for (i=0; i<20000000; i++)
for (i=0; i<1000000000; i++)
asm volatile("");
asm volatile("sti");
sleep(1);
}
}

...and was actually useful.

> 7) IOPL semantics for userspace are changed; although userspace may be
> granted port access, it can not affect the interrupt flag.

I'm not sure how will X like this.

Pavel

--
57: MD5CryptoServiceProvider MD5 = new MD5CryptoServiceProvider();
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-03-16 00:39    [W:0.109 / U:1.128 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site