* guest threads
@ 2007-03-22 10:48 tarski
[not found] ` <loom.20070322T113842-266-eS7Uydv5nfjZ+VzJOa5vwg@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: tarski @ 2007-03-22 10:48 UTC (permalink / raw)
To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
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?
Thanks
Tarski
-------------------------------------------------------------------------
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
^ permalink raw reply [flat|nested] 3+ messages in thread[parent not found: <loom.20070322T113842-266-eS7Uydv5nfjZ+VzJOa5vwg@public.gmane.org>]
* Re: guest threads [not found] ` <loom.20070322T113842-266-eS7Uydv5nfjZ+VzJOa5vwg@public.gmane.org> @ 2007-03-22 11:48 ` Dor Laor 2007-03-22 11:54 ` Avi Kivity 1 sibling, 0 replies; 3+ messages in thread From: Dor Laor @ 2007-03-22 11:48 UTC (permalink / raw) To: tarski, kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f > >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? The KVM does not schedule processes at all. Actually this is its power over Xen. There is no need to build a complex schedule, we're using such - the Linux kernel. Currently, except for aio, there are no threads in qemu so our user space does not use threads. Had it used threads and for the aio case, the execution of the guest relays on the call to ioctl kvm_run. So without aio, the guest is not running while waiting for disk. With aio the guest is running in the main thread context while another thread serves the aio. > >Thanks > >Tarski > > >----------------------------------------------------------------------- -- >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=DEVD EV >_______________________________________________ >kvm-devel mailing list >kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org >https://lists.sourceforge.net/lists/listinfo/kvm-devel ------------------------------------------------------------------------- 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 ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: guest threads [not found] ` <loom.20070322T113842-266-eS7Uydv5nfjZ+VzJOa5vwg@public.gmane.org> 2007-03-22 11:48 ` Dor Laor @ 2007-03-22 11:54 ` Avi Kivity 1 sibling, 0 replies; 3+ messages in thread From: Avi Kivity @ 2007-03-22 11:54 UTC (permalink / raw) To: tarski; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f 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 ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-03-22 11:54 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-22 10:48 guest threads tarski
[not found] ` <loom.20070322T113842-266-eS7Uydv5nfjZ+VzJOa5vwg@public.gmane.org>
2007-03-22 11:48 ` Dor Laor
2007-03-22 11:54 ` Avi Kivity
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox