On Wednesday 25 June 2008 12:49:39 Amit Shah wrote:
> This will be useful for acking irqs of assigned devices
>
> Signed-off-by: Amit Shah <[EMAIL PROTECTED]>
> ---
>  virt/kvm/ioapic.c |    3 +++
>  virt/kvm/ioapic.h |    1 +
>  2 files changed, 4 insertions(+), 0 deletions(-)
>
> diff --git a/virt/kvm/ioapic.c b/virt/kvm/ioapic.c
> index 9d02136..4759d77 100644
> --- a/virt/kvm/ioapic.c
> +++ b/virt/kvm/ioapic.c
> @@ -295,6 +295,9 @@ static void __kvm_ioapic_update_eoi(struct kvm_ioapic
> *ioapic, int gsi) ent->fields.remote_irr = 0;
>       if (!ent->fields.mask && (ioapic->irr & (1 << gsi)))
>               ioapic_deliver(ioapic, gsi);
> +
> +     if (ioapic->callback)
> +             ioapic->callback(ioapic->kvm, gsi);

I don't mean to call this function 'callback'; but I don't know what to name 
it as well: ack_notifier, maybe?

Also, guests with PIC aren't yet supported (haven't been at all all this 
while). I do have a patch ready for that though which needs testing.
--
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

Reply via email to