From: Avi Kivity <avi@redhat.com>
To: Jan Kiszka <jan.kiszka@siemens.com>
Cc: Marcelo Tosatti <mtosatti@redhat.com>, kvm@vger.kernel.org
Subject: Re: [PATCH 04/16] qemu-kvm: Drop IRQ0 override test from ioapic_set_irq
Date: Mon, 16 May 2011 13:29:34 +0300 [thread overview]
Message-ID: <4DD0FC8E.1020905@redhat.com> (raw)
In-Reply-To: <1f4e95a22a6397729461883d155916be032a9dba.1305288845.git.jan.kiszka@siemens.com>
On 05/13/2011 03:13 PM, Jan Kiszka wrote:
> The IRQ0 override is not configurable while using the user space IOAPIC.
> When the in-kernel irqchip is active, ioapic_set_irq is never called. So
> drop this useless test.
>
> @@ -146,7 +145,7 @@ static void ioapic_set_irq(void *opaque, int vector, int level)
> * the cleanest way of doing it but it should work. */
>
> DPRINTF("%s: %s vec %x\n", __func__, level ? "raise" : "lower", vector);
> - if (vector == 0&& irq0override) {
> + if (vector == 0) {
> vector = 2;
> }
> if (vector>= 0&& vector< IOAPIC_NUM_PINS) {
Incidentally, the variable should be called pin, not vector, and
gsi->ioapic/pic wiring should be done outside the ioapic code.
--
error compiling committee.c: too many arguments to function
next prev parent reply other threads:[~2011-05-16 10:29 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-13 12:13 [PATCH 00/16] qemu-kvm: Cleanup and switch to upstream - Part II Jan Kiszka
2011-05-13 12:13 ` [PATCH 01/16] qemu-kvm: Drop kvm_cpu_register_phys_memory_client wrapper Jan Kiszka
2011-05-13 12:13 ` [PATCH 02/16] qemu-kvm: Drop kvm_inject_interrupt Jan Kiszka
2011-05-13 12:13 ` [PATCH 03/16] Revert "qemu-kvm-x86: consider the irq0override flag in kvm_arch_init_irq_routing" Jan Kiszka
2011-05-16 10:24 ` Avi Kivity
2011-05-16 10:33 ` Avi Kivity
2011-05-13 12:13 ` [PATCH 04/16] qemu-kvm: Drop IRQ0 override test from ioapic_set_irq Jan Kiszka
2011-05-16 10:29 ` Avi Kivity [this message]
2011-05-13 12:13 ` [PATCH 05/16] qemu-kvm: Clean up IRQ0 override configuration Jan Kiszka
2011-05-13 12:14 ` [PATCH 06/16] qemu-kvm: Refactor irqchip and routing initialization Jan Kiszka
2011-05-13 12:14 ` [PATCH 07/16] qemu-kvm: Fold kvm_get_gsi_count into kvm_create_irqchip Jan Kiszka
2011-05-13 12:14 ` [PATCH 08/16] qemu-kvm: Make some private functions static Jan Kiszka
2011-05-13 12:14 ` [PATCH 09/16] qemu-kvm: Implement kvm_has_pit_state2 in upstream style Jan Kiszka
2011-05-13 12:14 ` [PATCH 10/16] qemu-kvm: Fold kvm_set_irq_level into kvm_set_irq Jan Kiszka
2011-05-13 12:14 ` [PATCH 11/16] qemu-kvm: Remove kvm_context from public interfaces Jan Kiszka
2011-05-13 12:14 ` [PATCH 12/16] qemu-kvm: Fold kvm_set_boot_vcpu_id into kvm_set_boot_cpu_id Jan Kiszka
2011-05-13 12:14 ` [PATCH 13/16] qemu-kvm: Remove handle_io_window Jan Kiszka
2011-05-13 12:14 ` [PATCH 14/16] qemu-kvm: Merge kvm_context into KVMState Jan Kiszka
2011-05-13 12:14 ` [PATCH 15/16] qemu-kvm: Use KVM-optimized interrupt handler Jan Kiszka
2011-05-13 12:14 ` [PATCH 16/16] qemu-kvm: Use upstream kvm_init Jan Kiszka
2011-05-16 10:37 ` [PATCH 00/16] qemu-kvm: Cleanup and switch to upstream - Part II Avi Kivity
2011-05-17 18:47 ` Marcelo Tosatti
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=4DD0FC8E.1020905@redhat.com \
--to=avi@redhat.com \
--cc=jan.kiszka@siemens.com \
--cc=kvm@vger.kernel.org \
--cc=mtosatti@redhat.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