On Sun, Aug 09, 2009 at 05:54:30PM +0300, Avi Kivity wrote:
> On 08/09/2009 03:41 PM, Gleb Natapov wrote:
>> Introduce new function kvm_notifier_set_irq() that should be used
>> to change irq line level from irq notifiers. When irq notifier
>> change irq line level it calls into irq chip code recursively. The
>> function avoids taking a lock recursively.
>>
>
> This looks really horrible. I don't have an alternative yet, but I'll
> think of one.
I agree this is not nice. This is needed only for device assignment
case. That explains why I don't like device assignment :) The problem
is that the only communication channel from guest to assigned device that
goes through the host is interrupt injection/acknowledgement, so we try to
do things (lowering IRQ) on this path that usually are done somewhere else.
--
Gleb.
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
- [PATCH 05/10] Protect irq_sources_bitmap by kvm->lock inst... Gleb Natapov
- [PATCH 01/10] Change irq routing table to use gsi indexed arr... Gleb Natapov
- [PATCH 07/10] Move irq notifiers lists to its own locking. Gleb Natapov
- [PATCH 08/10] Move IO APIC to its own lock. Gleb Natapov
- Re: [PATCH 08/10] Move IO APIC to its own lock. Avi Kivity
- Re: [PATCH 08/10] Move IO APIC to its own lock. Gleb Natapov
- Re: [PATCH 08/10] Move IO APIC to its own lock. Avi Kivity
- Re: [PATCH 08/10] Move IO APIC to its own lo... Gleb Natapov
- [PATCH 09/10] Drop kvm->irq_lock lock. Gleb Natapov
- [PATCH 10/10] Introduce MSI message sending interface that by... Gleb Natapov
- Re: [PATCH 10/10] Introduce MSI message sending interfac... Avi Kivity
- Re: [PATCH 10/10] Introduce MSI message sending inte... Gleb Natapov
- Re: [PATCH 10/10] Introduce MSI message sending ... Avi Kivity
- Re: [PATCH 10/10] Introduce MSI message send... Gleb Natapov
- Re: [PATCH 10/10] Introduce MSI message... Avi Kivity
- Re: [PATCH 10/10] Introduce MSI mes... Gleb Natapov
