From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: guest threads Date: Thu, 22 Mar 2007 13:54:43 +0200 Message-ID: <46026E83.2000204@qumranet.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org To: tarski Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org tarski wrote: > hello everyone, > > I was just wondering how KVM schedules multiple Virtual machines (guest > operating systems) running on top of it? If a thread/process blocks on a guest > os does KVM block the whole virtual machine or are other threads/processes > running on that particular guest given a chance to run? > > kvm is not aware of threads and processes within guests. kvm (actually, the Linux scheduler) will deschedule a guest if one of these two conditions occur: - if the guest executes the 'hlt' instruction (typically when it has no processes to run) - using normal Linux process preemption rules (timeslice expires, higher priority thread becomes runnable, etc.) so it's quite possible for multiple guest threads or processes to run within a single host timeslice. -- error compiling committee.c: too many arguments to function ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV