From: Avi Kivity <avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
To: Gregory Haskins <ghaskins-Et1tbQHTxzrQT0dZR+AlfA@public.gmane.org>
Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: [PATCH] KVM: VMX cannot yet handle migration-after-preemption, so disable it
Date: Wed, 25 Jul 2007 07:13:25 +0300 [thread overview]
Message-ID: <46A6CDE5.60904@qumranet.com> (raw)
In-Reply-To: <46A694EC0200005A000281E3-Igcdv/6uVdMHoYOw/+koYqIwWpluYiW7@public.gmane.org>
Gregory Haskins wrote:
> On Wed, 2007-07-25 at 06:20 +0300, Avi Kivity wrote:
>
>
>> I'd rather wait for the real fix, especially as this is an experimental
>> branch. Can you provide details of the issue?
>>
>>
>
> Sure. Keep in mind I am working with the RT kernel, so things might be
> tighter and/or different than the vanilla kernel w.r.t. what I am about
> to say:
>
> But in a nutshell, the current code calls vcpu_clear() during a sched-in
> operation. If the vcpu is simply uninitialized, no problem. We clear
> it inline in the handler. However, if the vcpu is migrating we have an
> issue. A synchronous smp_call_function_single() is invoked to
> vcpu_clear the remote pCPU, but you must have interrupts enabled to call
> this function to avoid a deadlock in the IPI handshake. sched-in()
> handlers are (and should be) called with interrupts and preemption
> disabled.
>
>
Preemption disabled yes, but interrupts? IIRC I picked the place where
sched_in is called to have interrupts enabled, but maybe -rt changes
that. Seems like finding a better position for that hook would solve
the problem.
--
Do not meddle in the internals of kernels, for they are subtle and quick to panic.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
next prev parent reply other threads:[~2007-07-25 4:13 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-25 4:10 [PATCH] KVM: VMX cannot yet handle migration-after-preemption, so disable it Gregory Haskins
[not found] ` <46A694EC0200005A000281E3-Igcdv/6uVdMHoYOw/+koYqIwWpluYiW7@public.gmane.org>
2007-07-25 4:13 ` Avi Kivity [this message]
-- strict thread matches above, loose matches on Subject: below --
2007-07-25 4:22 Gregory Haskins
2007-07-24 20:47 Gregory Haskins
[not found] ` <20070724204022.5456.72025.stgit-sLgBBP33vUGnsjUZhwzVf9HuzzzSOjJt@public.gmane.org>
2007-07-25 3:20 ` 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=46A6CDE5.60904@qumranet.com \
--to=avi-atkuwr5tajbwk0htik3j/w@public.gmane.org \
--cc=ghaskins-Et1tbQHTxzrQT0dZR+AlfA@public.gmane.org \
--cc=kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox