Re: [PATCH 1/7] KVM: userspace interface

From: Alan Cox
Date: Thu Oct 19 2006 - 16:35:14 EST


Ar Iau, 2006-10-19 am 13:49 -0500, ysgrifennodd Anthony Liguori:
> ioctls are probably wrong here though. Ideally, you would want to be
> able to support an SMP guest. This means you need to have two virtual
> processors executing in kernel space. If you use ioctls, it forces you

Not really and in fact with qemu you'd want to halt a trap on the second
virtual CPU until emulation was over if only to get I/O and other
instruction ordering right. Thats not an argument that only that view
should be supported of course.

> If you used a read/write interface, you could poll for any number of
> processors and handle IO emulation in a single userspace thread (which
> seems closer to how hardware really works anyway).

Agreed.

Alan

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