Re: [PATCH] If interrupt injection is not possible do not scan IRR.

2009-05-19 Thread Avi Kivity
Gleb Natapov wrote: Forget to remove debug output before submitting. Resending. Signed-off-by: Gleb Natapov g...@redhat.com diff --git a/arch/x86/kvm/i8259.c b/arch/x86/kvm/i8259.c index 1ccb50c..d32ceac 100644 --- a/arch/x86/kvm/i8259.c +++ b/arch/x86/kvm/i8259.c @@ -218,6 +218,11 @@ int

[PATCH] If interrupt injection is not possible do not scan IRR.

2009-05-18 Thread Gleb Natapov
Signed-off-by: Gleb Natapov g...@redhat.com --- arch/x86/kvm/i8259.c |5 + arch/x86/kvm/irq.c |1 - arch/x86/kvm/x86.c |9 + 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/arch/x86/kvm/i8259.c b/arch/x86/kvm/i8259.c index 1ccb50c..d32ceac 100644 ---

Re: [PATCH] If interrupt injection is not possible do not scan IRR.

2009-05-18 Thread Avi Kivity
Gleb Natapov wrote: @@ -3174,10 +3174,11 @@ static void inject_pending_irq(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run) vcpu-arch.nmi_injected = true; kvm_x86_ops-set_nmi(vcpu); } - } else if (kvm_cpu_has_interrupt(vcpu))

Re: [PATCH] If interrupt injection is not possible do not scan IRR.

2009-05-18 Thread Gleb Natapov
On Mon, May 18, 2009 at 12:00:40PM +0300, Avi Kivity wrote: Gleb Natapov wrote: @@ -3174,10 +3174,11 @@ static void inject_pending_irq(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run) vcpu-arch.nmi_injected = true; kvm_x86_ops-set_nmi(vcpu);

Re: [PATCH] If interrupt injection is not possible do not scan IRR.

2009-05-18 Thread Gleb Natapov
Forget to remove debug output before submitting. Resending. Signed-off-by: Gleb Natapov g...@redhat.com diff --git a/arch/x86/kvm/i8259.c b/arch/x86/kvm/i8259.c index 1ccb50c..d32ceac 100644 --- a/arch/x86/kvm/i8259.c +++ b/arch/x86/kvm/i8259.c @@ -218,6 +218,11 @@ int kvm_pic_read_irq(struct kvm