Re: VMI Interface Proposal Documentation for I386, Part 4

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux