Muli Ben-Yehuda wrote:
On Tue, Sep 23, 2008 at 02:18:51PM -0500, Anthony Liguori wrote:

Make sure you issue iopl() before any of the VCPU threads are
spawned.  Otherwise, you may be running into issues when something
other than VCPU-0 is doing PIO/MMIO and you haven't iopl()'d for
that thread.

Yeah, we thought of that, but as far as I can recall this happened
with a single VCPU. In any case, we'll look into it again.

The io thread runs in a separate thread than the VCPU. So if you were doing iopl(3) in the io thread (for instance, when called from machine_init), then the VCPU thread wouldn't necessarily have inherited the iopl().

You could also do it explicitly on vcpu thread construction.

Regards,

Anthony Liguori

Cheers,
Muli

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to