Re: Questions on the task isolation patches

From: Paolo Bonzini
Date: Tue Dec 20 2016 - 04:27:27 EST




On 16/12/2016 22:00, Chris Metcalf wrote:
>
> Sorry, I think I wasn't clear. Normally when you are running task
> isolated and you enter the kernel, you will get a fatal signal. The
> exception is if you call prctl itself (or exit), the kernel tolerates
> it without a signal, since obviously that's how you need to cleanly
> tell the kernel you are done with task isolation.

Running in a guest is pretty much the same as running in userspace.
Would it be possible to exclude the KVM_RUN ioctl as well? QEMU would
still have to run prctl when a CPU goes to sleep, and KVM_RUN would have
to enable/disable isolated mode when a VM executes HLT (which should
never happen anyway in NFV scenarios).

Paolo