Re: [PATCH 1/3] KVM: x86: set KVM_REQ_EVENT on local interupt request from user space

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

 




On 12/11/2015 20:08, Matt Gingell wrote:
> Set KVM_REQ_EVENT when a PIC in user space injects a local interrupt.
> 
> Currently a request is only made when neither the PIC nor the APIC is in
> the kernel, which is not sufficient in the split IRQ chip case.
> 
> This addresses a problem in QEMU where interrupts are delayed until
> another path invokes the event loop.
> 
> Reviewed-by: Andy Honig <ahonig@xxxxxxxxxx>
> Signed-off-by: Matt Gingell <gingell@xxxxxxxxxx>
> ---
>  arch/x86/kvm/x86.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
> index 30723a4..456973b 100644
> --- a/arch/x86/kvm/x86.c
> +++ b/arch/x86/kvm/x86.c
> @@ -2683,6 +2683,7 @@ static int kvm_vcpu_ioctl_interrupt(struct kvm_vcpu *vcpu,
>  		return -EEXIST;
>  
>  	vcpu->arch.pending_external_vector = irq->irq;
> +	kvm_make_request(KVM_REQ_EVENT, vcpu);
>  	return 0;
>  }
>  
> 

Reviewed-by: Paolo Bonzini <pbonzini@xxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux