All of lore.kernel.org
 help / color / mirror / Atom feed
From: Carsten Otte <cotte-tA70FqPdS9bQT0dZR+AlfA@public.gmane.org>
To: Avi Kivity <avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
Cc: carsteno-tA70FqPdS9bQT0dZR+AlfA@public.gmane.org,
	Laurent Vivier <Laurent.Vivier-6ktuUTfB/bM@public.gmane.org>,
	kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: [PATCH] kvm uses smp_call_function_mask() in	kvm_flush_remote_tlbs()
Date: Tue, 23 Oct 2007 13:50:58 +0200	[thread overview]
Message-ID: <471DE022.1050600@de.ibm.com> (raw)
In-Reply-To: <471CD876.5020404-atKUWr5tajBWk0Htik3J/w@public.gmane.org>

Avi Kivity wrote:
> A cpu unplug first evicts all tasks from the victim cpu.  During this 
> process, it calls kvm via a hotplug notifier, which notifier calls 
> vcpu_clear() for all vcpus that are resident on that cpu.  So after it 
> runs, there won't be any vcpus on the dead cpu.
> 
> The notifier is called from within stop_machine_run(), which ensures 
> that no task is running on any cpu, so by the time the cpu is being 
> unplugged, any concurrent call to kvm_flush_remote_tlbs() will have ended.
> 
> It's a miracle that it works.
Really interresting. I put it on the "neat code I want to read" list 
for long and dark winter evenings :-).

-------------------------------------------------------------------------
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/

      parent reply	other threads:[~2007-10-23 11:50 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-22 14:33 [PATCH] kvm uses smp_call_function_mask() in kvm_flush_remote_tlbs() Laurent Vivier
     [not found] ` <11930635871488-git-send-email-Laurent.Vivier-6ktuUTfB/bM@public.gmane.org>
2007-10-22 14:57   ` [PATCH] kvm uses smp_call_function_mask() inkvm_flush_remote_tlbs() Dor Laor
     [not found]     ` <471CBA60.2030402-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-10-22 15:02       ` Laurent Vivier
     [not found]         ` <471CBB70.5050109-6ktuUTfB/bM@public.gmane.org>
2007-10-22 15:11           ` Avi Kivity
2007-10-22 15:24   ` [PATCH] kvm uses smp_call_function_mask() in kvm_flush_remote_tlbs() Avi Kivity
2007-10-22 16:24   ` Carsten Otte
     [not found]     ` <471CCEC8.9060200-tA70FqPdS9bQT0dZR+AlfA@public.gmane.org>
2007-10-22 17:05       ` Avi Kivity
     [not found]         ` <471CD876.5020404-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-10-22 18:36           ` Avi Kivity
2007-10-23 11:50           ` Carsten Otte [this message]

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=471DE022.1050600@de.ibm.com \
    --to=cotte-ta70fqpds9bqt0dzr+alfa@public.gmane.org \
    --cc=Laurent.Vivier-6ktuUTfB/bM@public.gmane.org \
    --cc=avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org \
    --cc=carsteno-tA70FqPdS9bQT0dZR+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 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.