Re: kvm-60: kexec in guest crashes the host

Dan Aloni
2008-02-27T21:32:29Z

On Wed, Feb 27, 2008 at 04:02:53PM +0200, Avi Kivity wrote:
> Avi Kivity wrote:
[...]
>>
>> I managed to reproduce it (FC6 kernel kexecing itself). It is Intel
>> specific.
>>
>>
>
> The attached patch fixes the problem for me.

Works for me too.

> diff --git a/kernel/vmx.c b/kernel/vmx.c
> index 7ce02d2..ccc8174 100644
> --- a/kernel/vmx.c
> +++ b/kernel/vmx.c
> @@ -1356,6 +1356,7 @@ static void vmx_set_efer(struct kvm_vcpu *vcpu, u64 efer)
>
> msr->data = efer & ~EFER_LME;
> }
> + vmx_load_host_state(vmx);
> setup_msrs(vmx);
> }