Message ID | 4995F516.6080603@redhat.com (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
Avi Kivity <avi@redhat.com> writes:
> + vmx_load_host_state(vcpu);
Works here as well (on intel).
(On kvm-83, gcc complains about passing argument 1 of
'vmx_load_host_state' from incompatible pointer type.)
Thanks for the terrific support. kvm rocks!
Regards,
Matteo Frigo
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Matteo Frigo wrote: > (On kvm-83, gcc complains about passing argument 1 of > 'vmx_load_host_state' from incompatible pointer type.) > Yes, should be to_vmx(vcpu). Same value anyway so it works. > Thanks for the terrific support. kvm rocks! > Thanks for the debugging help. kvm users rock!
diff --git a/kernel/x86/vmx.c b/kernel/x86/vmx.c index 7507ce2..048460d 100644 --- a/kernel/x86/vmx.c +++ b/kernel/x86/vmx.c @@ -910,6 +910,7 @@ static int vmx_get_msr(struct kvm_vcpu *vcpu, u32 msr_index, u64 *pdata) data = vmcs_readl(GUEST_SYSENTER_ESP); break; default: + vmx_load_host_state(vcpu); msr = find_msr_entry(to_vmx(vcpu), msr_index); if (msr) { data = msr->data;