From: Paolo Bonzini <pbonzini@redhat.com>
To: Matt Gingell <gingell@google.com>,
qemu-devel@nongnu.org, jan.kiszka@web.de
Subject: Re: [Qemu-devel] [RFC v2] Add support for KVM_CAP_SPLIT_IRQCHIP
Date: Wed, 4 Nov 2015 22:23:14 +0100 [thread overview]
Message-ID: <563A7742.3020306@redhat.com> (raw)
In-Reply-To: <F9B4A640-06A1-40FC-B214-DEC74C09C234@google.com>
On 02/11/2015 22:19, Matt Gingell wrote:
> Hi Jan,
>
> Would you be able to look this over? I’d like to get this into shape to commit,
> either now or once the corresponding kernel patch goes in.
>
> Thanks,
> Matt
>
> Add support for KVM_CAP_SPLIT_IRQCHIP
>
> Adds a new alternative 'split' to the -machine kernel-irqchip option.
> When split mode is specified:
>
> 1.) KVM_CAP_SPLIT_IRQCHIP is enabled.
>
> 2.) The PIC, PIT, and IOAPIC are implemented in userspace while the
> LAPIC is implemented by KVM.
>
> 3.) The software IOAPIC delivers interrupts to the KVM LAPIC via
> kvm_set_irq. Interrupt delivery is configured via the MSI routing
> table, for which routes are reserved in target-i386/kvm.c then
> configured in hw/intc/ioapic.c
>
> 4.) KVM delivers IOAPIC EOIs via a new exit KVM_EXIT_IOAPIC_EOI,
> which is handled in target-i386/kvm.c and relayed to the software
> IOAPIC via ioapic_eoi_broadcast.
I had looked at v1, and there was nothing surprising. I was travelling
and couldn't comment immediately.
I only have a couple of notes:
1) the kvm_*_in_kernel() rename should be a separate patch;
2) this:
+ if (machine_kernel_irqchip_split(machine)) {
+ ret = kvm_vm_enable_cap(s, KVM_CAP_SPLIT_IRQCHIP, 0, 24);
+ if (ret) {
+ error_report("Could not enable split irqchip mode: %s\n",
+ strerror(-ret));
and "bool kvm_split_irqchip" should go in target-i386/kvm.c, using the
existing kvm_arch_irqchip_create hook;
3) other arches than i386 should reject kernel_irqchip=split.
More importantly, I would like to understand what is the kernel issue
that you are getting. It should be resolved before 4.4 goes out in two
months, of course.
Paolo
next prev parent reply other threads:[~2015-11-04 21:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-02 21:19 [Qemu-devel] [RFC v2] Add support for KVM_CAP_SPLIT_IRQCHIP Matt Gingell
2015-11-04 21:23 ` Paolo Bonzini [this message]
2015-11-06 5:12 ` Matt Gingell
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=563A7742.3020306@redhat.com \
--to=pbonzini@redhat.com \
--cc=gingell@google.com \
--cc=jan.kiszka@web.de \
--cc=qemu-devel@nongnu.org \
/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.