From: Avi Kivity <avi@redhat.com>
To: Chris Lalancette <clalance@redhat.com>
Cc: kvm@vger.kernel.org
Subject: Re: [PATCH 0/5]: Fix kdump under KVM
Date: Wed, 28 Oct 2009 11:59:51 +0200 [thread overview]
Message-ID: <4AE81617.6060406@redhat.com> (raw)
In-Reply-To: <1256661667-9298-1-git-send-email-clalance@redhat.com>
On 10/27/2009 06:41 PM, Chris Lalancette wrote:
> This patch series aims to get kdump working inside a KVM guest.
> The current problem with using kdump is that KVM always delivers
> PIT interrupts to the BSP, and the BSP only. While this is
> technically allowed by the MPS spec, most motherboards actually
> deliver timer interrupts to *any* LAPIC in virtual wire mode.
> Since a crash can occur on any CPU, timer interrupts must
> be able to reach any CPU in order for kdump to work properly.
>
> Therefore, this patch series kicks all of the relevant vCPUs
> when delivering a timer interrupt. With these patches in
> place, kdump in a RHEL-5 guest works properly.
>
This is pretty expensive on large guests. However I suppose under
normal conditions we won't be in virtual wire mode?
The kick from i8254 code is pretty bad, as you mention. I forget why it
is needed at all - shouldn't kvm_set_irq() end up kicking the correct
vcpu (and note the pic still insists on the bsp:)
/*
* callback when PIC0 irq status changed
*/
static void pic_irq_request(void *opaque, int level)
{
struct kvm *kvm = opaque;
struct kvm_vcpu *vcpu = kvm->bsp_vcpu;
struct kvm_pic *s = pic_irqchip(kvm);
int irq = pic_get_irq(&s->pics[0]);
s->output = level;
if (vcpu && level && (s->pics[0].isr_ack & (1 << irq))) {
s->pics[0].isr_ack &= ~(1 << irq);
kvm_vcpu_kick(vcpu);
}
}
--
error compiling committee.c: too many arguments to function
next prev parent reply other threads:[~2009-10-28 9:59 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-27 16:41 [PATCH 0/5]: Fix kdump under KVM Chris Lalancette
2009-10-27 16:41 ` [PATCH 1/5] Fix up some comments around the source tree Chris Lalancette
2009-10-27 16:41 ` [PATCH 2/5] Remove KVM_REQ_PENDING_TIMER Chris Lalancette
2009-10-27 16:41 ` [PATCH 3/5] Remove references to VCPU in i8254 Chris Lalancette
2009-10-27 16:41 ` [PATCH 4/5] Remove timer.c Chris Lalancette
2009-10-27 16:41 ` [PATCH 5/5] Fix kdump under KVM Chris Lalancette
2009-10-27 17:42 ` Marcelo Tosatti
2009-10-28 10:21 ` Chris Lalancette
2009-10-28 12:41 ` Marcelo Tosatti
2009-10-30 12:23 ` Chris Lalancette
2009-10-30 13:07 ` Marcelo Tosatti
2009-10-30 15:28 ` Chris Lalancette
2009-10-30 18:03 ` David S. Ahern
2009-10-30 22:21 ` Marcelo Tosatti
2009-10-30 22:19 ` Marcelo Tosatti
2009-11-01 15:21 ` Avi Kivity
2009-11-02 13:22 ` Chris Lalancette
2009-11-02 13:30 ` Avi Kivity
2009-10-28 9:59 ` Avi Kivity [this message]
2009-10-28 10:13 ` [PATCH 0/5]: " Chris Lalancette
2009-10-28 10:31 ` Avi Kivity
2009-10-29 8:34 ` Chris Lalancette
2009-10-29 10:15 ` Avi Kivity
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=4AE81617.6060406@redhat.com \
--to=avi@redhat.com \
--cc=clalance@redhat.com \
--cc=kvm@vger.kernel.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.