qemu-ppc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-ppc] [ppc-kvm] a question about kvm interrupts handle


From: Wangkai (Kevin,C)
Subject: [Qemu-ppc] [ppc-kvm] a question about kvm interrupts handle
Date: Fri, 1 Feb 2013 07:47:18 +0000

Dear

 

I find the new version of kvm, for kvmppc_handle_exit function, new function

kvmppc_restart_interrupt was added to process the interrupts of host.

 

I think when the interrupt was enable by calling local_irq_enable(), the

Interrupts can occur and execute from the host interrupt vector again,

So is that needed to call kvmppc_restart_interrupt?

 

int kvmppc_handle_exit(struct kvm_run *run, struct kvm_vcpu *vcpu,

                       unsigned int exit_nr)

{

         int r = RESUME_HOST;

 

         /* update before a new last_exit_type is rewritten */

         kvmppc_update_timing_stats(vcpu);

 

         /* restart interrupts if they were meant for the host */

         kvmppc_restart_interrupt(vcpu, exit_nr);

 

         if (likely(exit_nr != BOOKE_INTERRUPT_MACHINE_CHECK))

                   local_irq_enable();

 

……

}

 

Thank you.

Wangkai

 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]