From: Paul Mackerras <paulus@samba.org>
To: Alexander Graf <agraf@suse.de>
Cc: Scott Wood <scottwood@freescale.com>,
kvm@vger.kernel.org, kvm-ppc@vger.kernel.org
Subject: Re: [PATCH] KVM: Add KVM_CAP_IRQ_ARCH capability
Date: Fri, 15 Mar 2013 09:28:03 +1100 [thread overview]
Message-ID: <20130314222803.GJ9841@iris.ozlabs.ibm.com> (raw)
In-Reply-To: <76C38059-3AE6-45F3-9CAC-D3041FFEF54C@suse.de>
On Thu, Mar 14, 2013 at 08:03:30PM +0100, Alexander Graf wrote:
>
> On 14.03.2013, at 19:35, Scott Wood wrote:
>
> > On 03/14/2013 01:33:30 PM, Alexander Graf wrote:
> >> We also want int pic_fd, no?
> >
> > Not sure we really need that on the vcpu. We'll need it on the vm unless we add it as an arg to the vcpu cap enable.
>
> I don't think we need anything vm global for the cpu <-> PIC connections. Also, if you want to deregister a CPU (hotplug remove), you probably want to tell the PIC that the CPU has gone.
I had kvm_arch_vcpu_free() calling a release function for the selected
PIC, which should be enough to let the PIC know the CPU has gone away,
I would think.
I agree we don't need anything vm global. The only vm ioctl which
needs to care about interrupt controllers is KVM_IRQ_LINE, and the
approach I take in my patchset is just to call all of the compiled-in
interrupt controllers until one of them takes it. That assumes that
each irq architecture adds its own private data pointer to kvm->arch
if it's compiled in, which is feasible provided there are only a few
architectures supported, and gives the advantages of strong typing.
I did it this way because with the irq architecture being specified
per vcpu, there is no overall vm global irq architecture.
Paul.
next prev parent reply other threads:[~2013-03-14 22:28 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-14 1:20 [PATCH] KVM: Add KVM_CAP_IRQ_ARCH capability Paul Mackerras
2013-03-14 18:20 ` Scott Wood
2013-03-14 18:33 ` Alexander Graf
2013-03-14 18:35 ` Scott Wood
2013-03-14 19:03 ` Alexander Graf
2013-03-14 19:10 ` Scott Wood
2013-03-14 21:46 ` Alexander Graf
2013-03-14 22:28 ` Paul Mackerras [this message]
2013-03-14 22:38 ` Scott Wood
2013-03-14 22:19 ` Paul Mackerras
2013-03-14 22:41 ` Scott Wood
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=20130314222803.GJ9841@iris.ozlabs.ibm.com \
--to=paulus@samba.org \
--cc=agraf@suse.de \
--cc=kvm-ppc@vger.kernel.org \
--cc=kvm@vger.kernel.org \
--cc=scottwood@freescale.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