Il 16/12/2013 10:32, Jan Kiszka ha scritto:
> As long as we do not expose all the VMX related states to user space,
> there is no way to properly reset a VCPU when VMX is enabled. Emulate
> this for now by catching host-side clearings of the feature control MSR.
> This allows to reboot a VM while it is running some hypervisor code.
>
> Signed-off-by: Jan Kiszka <[email protected]>
> ---
>
> Better ideas? Or continue to leave it as it is?
The final vmx_vcpu_reset is the only really ugly part, but it is
_really_ ugly... Can you modify QEMU to restore MSRs first, and reduce
vmx_reset_nested to just
if (is_guest_mode(vcpu))
nested_vmx_vmexit(vcpu);
free_nested(vmx);
?
Paolo
--
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