From: "Yang, Sheng" <sheng.yang@intel.com>
To: kvm@vger.kernel.org
Cc: Ben-Ami Yassour <benami@il.ibm.com>,
avi@qumranet.com, amit.shah@qumranet.com, muli@il.ibm.com,
weidong.han@intel.com, anthony@codemonkey.ws
Subject: Re: [PATCH 2/4] KVM: pci device assignment
Date: Mon, 28 Jul 2008 15:27:20 +0800 [thread overview]
Message-ID: <200807281527.20609.sheng.yang@intel.com> (raw)
In-Reply-To: <1216728835-19721-3-git-send-email-benami@il.ibm.com>
On Tuesday 22 July 2008 20:13:53 Ben-Ami Yassour wrote:
>
> -int kvm_pic_read_irq(struct kvm_pic *s)
> +int kvm_pic_read_irq(struct kvm *kvm)
> {
> int irq, irq2, intno;
> + struct kvm_pic *s = pic_irqchip(kvm);
>
> irq = pic_get_irq(&s->pics[0]);
> if (irq >= 0) {
> @@ -186,6 +187,8 @@ int kvm_pic_read_irq(struct kvm_pic *s)
> irq = 7;
> intno = s->pics[0].irq_base + irq;
> }
> + kvm_notify_acked_irq(kvm, irq);
> +
> pic_update_irq(s);
>
> return intno;
One coding style suggestion,
struct kvm_pic has *irq_request_opaque which is struct kvm indeed. How
about contain kvm in kvm_pic explicitly? (seems cleaner, though needs
more modification).
Another thing is about host share IRQ: Do we want follow the straight
forward way to add it? That's it, return IRQ_HANDLED from irq handler
and wait for EOI of guest?
I found it's not easy to provide support for MSI without shared IRQ
support. We don't know when guest want to enable MSI or it decided to
shared IRQ, maybe we can intercept the unmask of IOAPIC to know that,
but it's a little tricky.
--
regards
Yang, Sheng
next prev parent reply other threads:[~2008-07-28 7:24 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-22 12:13 device assignemnt: updated patches Ben-Ami Yassour
2008-07-22 12:13 ` [PATCH 1/4] KVM: Add irq ack notifier list Ben-Ami Yassour
2008-07-22 12:13 ` [PATCH 2/4] KVM: pci device assignment Ben-Ami Yassour
2008-07-22 12:13 ` [PATCH 3/4] VT-d: changes to support KVM Ben-Ami Yassour
2008-07-22 12:13 ` [PATCH 4/4] KVM: Device assignemnt with VT-d Ben-Ami Yassour
2008-07-22 12:18 ` device assignment - userspace part Ben-Ami Yassour
2008-07-22 12:18 ` [PATCH 1/1] KVM/userspace: Support for assigning PCI devices to guest Ben-Ami Yassour
2008-07-26 9:02 ` [PATCH 4/4] KVM: Device assignemnt with VT-d Avi Kivity
2008-07-28 6:49 ` Han, Weidong
2008-07-28 16:34 ` Ben-Ami Yassour
2008-07-26 8:46 ` [PATCH 2/4] KVM: pci device assignment Avi Kivity
2008-07-28 7:27 ` Yang, Sheng [this message]
2008-07-28 16:41 ` Ben-Ami Yassour
2008-07-28 8:33 ` Amit Shah
2008-07-26 8:19 ` [PATCH 1/4] KVM: Add irq ack notifier list Avi Kivity
2008-07-26 9:05 ` device assignemnt: updated patches Avi Kivity
2008-07-26 9:24 ` Han, Weidong
2008-07-26 9:32 ` Avi Kivity
2008-07-26 9:48 ` Han, Weidong
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=200807281527.20609.sheng.yang@intel.com \
--to=sheng.yang@intel.com \
--cc=amit.shah@qumranet.com \
--cc=anthony@codemonkey.ws \
--cc=avi@qumranet.com \
--cc=benami@il.ibm.com \
--cc=kvm@vger.kernel.org \
--cc=muli@il.ibm.com \
--cc=weidong.han@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox