From: Avi Kivity <avi@qumranet.com>
To: Zhao Forrest <forrest.zhao@gmail.com>
Cc: kvm-devel@lists.sourceforge.net
Subject: Re: KVM architecture docs
Date: Tue, 04 Mar 2008 11:21:58 +0200 [thread overview]
Message-ID: <47CD14B6.9010908@qumranet.com> (raw)
In-Reply-To: <ac8af0be0803040102y2e6d4e58mac45b15a8d648953@mail.gmail.com>
Zhao Forrest wrote:
>> The incoming packet is processed by the host ethernet stack; it is
>> forwarded to the bridge, which forwards it to the tap. When the tap
>> queues the packet, it sends a signal to qemu (since the tap file
>> descriptor has a signal associated). When the kernel delivers the
>> signal, it notices the qemu thread is running on cpu 1, so it sends an
>> inter-processor interrupt to cpu 1. The interrupt causes the processor
>>
> Is the behavior of "When the kernel delivers the signal, it notices the
> qemu thread is running on cpu 1, so it sends an IPI to cpu 1" a generic
> signal-delivery behavior in Linux kernel? Or KVM need to add some hook
> to achieve this?
>
>
This is generic behavior. The same thing happens when running plain
qemu, except that instead of breaking out from guest mode, the IPI
causes the processor to break out from user mode and trap into the kernel.
This is one of the most powerful characteristics of kvm: it works with
ordinary kernel mechanisms, so that all the properties and features of
the kernel apply to kvm automatically. In this particular case, it
means that all the scheduler features, including real-time scheduling,
apply to kvm guests. With mmu notifiers, the trend will grow even stronger.
--
error compiling committee.c: too many arguments to function
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
next prev parent reply other threads:[~2008-03-04 9:21 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-03 15:51 KVM architecture docs Alessandro Sardo
2008-03-03 18:23 ` Avi Kivity
2008-03-04 4:12 ` Zhao Forrest
2008-03-04 8:25 ` Avi Kivity
2008-03-04 9:02 ` Zhao Forrest
2008-03-04 9:21 ` Avi Kivity [this message]
2008-03-04 14:17 ` Javier Guerra
2008-03-04 15:08 ` Avi Kivity
2008-03-05 4:06 ` Zhao Forrest
2008-03-05 5:19 ` Avi Kivity
2008-03-05 6:05 ` Zhao Forrest
2008-03-05 6:10 ` Avi Kivity
2008-03-05 6:38 ` Avi Kivity
2008-03-05 6:51 ` Zhao Forrest
2008-03-05 6:58 ` 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=47CD14B6.9010908@qumranet.com \
--to=avi@qumranet.com \
--cc=forrest.zhao@gmail.com \
--cc=kvm-devel@lists.sourceforge.net \
/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