Fabrice Bellard wrote: > As something like VMI is expected to be supported soon by QEMU, I have a > small question: does the virtualization API you are defining supports > that the guest kernel code can be executed in ring 3 ? > It certainly supports running the kernel in ring 1 or 2. The kernel uses the test CS.rpl != 3 to distinguish between kernel and user modes, and we're not proposing changing that. > In QEMU for example, the guest kernel code can be executed either by the > dynamic translator (in this case CS.rpl = 0 and SS.rpl = 0) or by the > kqemu kernel module (in this case CS.rpl = 3 and SS.rpl = 3). So a good > behaviour would be to ignore the rpl field of both CS and SS in kernel mode. > I think that would be a more widespread change than the ones we're proposing, but perhaps I'm overlooking something. J