From: Avi Kivity <avi@redhat.com>
To: Sheng Yang <sheng@linux.intel.com>
Cc: kvm@vger.kernel.org, Amit Shah <amit.shah@redhat.com>
Subject: Re: [PATCH 1/1] KVM: IRQ ACK notifier should be used with in-kernel irqchip
Date: Sun, 19 Oct 2008 11:16:16 +0200 [thread overview]
Message-ID: <48FAFAE0.9050201@redhat.com> (raw)
In-Reply-To: <200810091643.40817.sheng@linux.intel.com>
Sheng Yang wrote:
> On Thursday 09 October 2008 16:34:47 Avi Kivity wrote:
>
>> Sheng Yang wrote:
>>
>>> Also remove unnecessary parameter of unregister irq ack notifier.
>>>
>>> diff --git a/virt/kvm/irq_comm.c b/virt/kvm/irq_comm.c
>>> index d0169f5..54b251d 100644
>>> --- a/virt/kvm/irq_comm.c
>>> +++ b/virt/kvm/irq_comm.c
>>> @@ -50,11 +50,15 @@ void kvm_notify_acked_irq(struct kvm *kvm, unsigned
>>> gsi) void kvm_register_irq_ack_notifier(struct kvm *kvm,
>>> struct kvm_irq_ack_notifier *kian)
>>> {
>>> + /* Must be called with in-kernel IRQ chip, otherwise it's nonsense */
>>> + ASSERT(irqchip_in_kernel(kvm));
>>> + ASSERT(kian);
>>> hlist_add_head(&kian->link, &kvm->arch.irq_ack_notifier_list);
>>> }
>>>
>> We don't want a BUG() here is the user specifies -no-kvm-irqchip; is
>> there a check on the irq assignment ioctls before calling this?
>>
>
> Yes. kvm_register_irq_ack_notifier should be called within irqchip_in_kernel()
> (on the other side, only if we have irqchip_in_kernel(), ack_notifier is
> useful, so we shouldn't call it without it), And I can't see if this would be
> useful with userspace irqchip, so add a ASSERT here.
>
Yes.
The code changed quite a lot here due to ia64 gaining VT-d support. Can
you regenerate the patch?
--
error compiling committee.c: too many arguments to function
next prev parent reply other threads:[~2008-10-19 9:16 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-09 8:16 [PATCH 1/1] KVM: IRQ ACK notifier should be used with in-kernel irqchip Sheng Yang
2008-10-09 8:34 ` Avi Kivity
2008-10-09 8:43 ` Sheng Yang
2008-10-19 9:16 ` Avi Kivity [this message]
-- strict thread matches above, loose matches on Subject: below --
2008-10-20 8:07 Sheng Yang
2008-10-22 10:26 ` Avi Kivity
2008-11-28 10:25 ` Mark McLoughlin
2008-12-01 2:31 ` Sheng Yang
2008-10-08 9:04 [PATCH] KVM: Unregister IRQ ACK notifier " Sheng Yang
2008-10-08 9:28 ` [PATCH 1/1] KVM: IRQ ACK notifier should be used " Sheng Yang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=48FAFAE0.9050201@redhat.com \
--to=avi@redhat.com \
--cc=amit.shah@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=sheng@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.