Balaji Rao wrote:
> On Wednesday 30 January 2008 08:09:32 pm Avi Kivity wrote:
>   
>>> I intended to do this here. Looks like its not the right way to check for
>>> presence in vcpu context. How do i do it ? please explain.
>>>
>>> +static void vmx_inject_nmi(struct kvm_vcpu *vcpu) {
>>> +
>>> +       struct vcpu_vmx * vmx = to_vmx(vcpu);
>>> +               if (vmx->launched)
>>> +               vmcs_write32(VM_ENTRY_INTR_INFO_FIELD,
>>> +                       2 | INTR_TYPE_NMI | INTR_INFO_VALID_MASK);
>>> +}
>>>       
>> No, this is the wrong place.  If you have a vcpu, you'd better be in
>> vcpu context.
>>     
> Oh.. ok. Looks like I have not understood the vcpu concept correctly. Will 
> put 
> more thought into it and understand it before I attempt to fix this.
>
>   

To be clear, vcpu context is the time between vcpu_load() and 
vcpu_put(), holding vcpu->mutex.

-- 
error compiling committee.c: too many arguments to function


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
kvm-devel mailing list
kvm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-devel

Reply via email to