From: Pavel Machek <pavel@ucw.cz>
To: Zachary Amsden <zach@vmware.com>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: VMI Interface Proposal Documentation for I386, Part 4
Date: Thu, 16 Mar 2006 00:37:03 +0100 [thread overview]
Message-ID: <20060315233703.GE1919@elf.ucw.cz> (raw)
In-Reply-To: <4415CE1C.1060608@vmware.com>
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();
next prev parent reply other threads:[~2006-03-15 23:37 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-13 19:55 Zachary Amsden
2006-03-15 23:37 ` Pavel Machek [this message]
2006-03-16 7:00 ` Zachary Amsden
2006-03-16 15:18 ` Alan Cox
2006-03-16 15:29 ` Zachary Amsden
2006-03-16 18:40 ` Alan Cox
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=20060315233703.GE1919@elf.ucw.cz \
--to=pavel@ucw.cz \
--cc=linux-kernel@vger.kernel.org \
--cc=zach@vmware.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome