Re: [RFC PATCH 0/4] KVM: Emulate UMIP (or almost do so)

From: Paolo Bonzini
Date: Fri Mar 10 2017 - 03:36:11 EST

On 10/03/2017 09:02, Yu Zhang wrote:
>> Besides, is this all the test for UMIP unit test? I.e. do we need to
>> construct a scenario in the test to trigger vm exit and let hypervisor
>> inject a GP fault? - I did not see this scenario in this patch. Or any
>> other suggestions? :-)
> Hi Paolo, any suggestions?
> Sorry for the disturb. :)

Hi, you get the scenario where a vmexit is triggered by the hypervisor
if you run the unit test on a machine that lacks UMIP support.

We can also add a module parameter to force emulation, so that it will
be possible to test UMIP emulation on newer processors too.