qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] qemu processes


From: Alex Bennée
Subject: Re: [Qemu-devel] qemu processes
Date: Wed, 12 Jun 2019 17:48:21 +0100

You've actually contacted the development list but I can answer the question.

QEMU is multi-threaded so there will be a thread per KVM based vCPU
(and also for TCG based vCPUs where MTTCG is enabled). There will also
be a number of additional threads created including at least one for
the main monitor thread and potentially additional threads for
servicing IO requests. So expect to see $SMP + 1 + n threads for each
QEMU instance.

On Wed, 12 Jun 2019 at 16:32, Ryan Boyce <address@hidden> wrote:
>
> Hi Stefan,
>
> I am a big fan of your blog! In relation to your blog post,
> http://blog.vmsplice.net/2011/03/qemu-internals-big-picture-overview.html,
> I have a question I am really hoping you can answer:
>
> When I start a VM, I see that the qemu-kvm processes start and run as
> "qemu-kvm..... -name "something1"...."
> My issue, though, is I see multiple processes running as "qemu-kvm.....
> -name "something1"...." and each of these processes has memory/cpu/disk
> mapped to it.
> Does qemu-kvm run VMs on a one-to-one VM-to-host process basis? Or does
> each virtual cpu on the guest get its own process on the host?
> For example, If I have a VM that has 4 virtual cpus, will I see 4 processes
> (PIDs) on the host or should I see just see one for the VM itself.
>
> Any help you can give would be GREATLY appreciated. Thank you!
>
> Ryan



-- 
Alex Bennée
KVM/QEMU Hacker for Linaro



reply via email to

[Prev in Thread] Current Thread [Next in Thread]