From: Zachary Amsden <zach@vmware.com>
To: Jeremy Fitzhardinge <jeremy@goop.org>
Cc: virtualization@lists.osdl.org,
"Eric W. Biederman" <ebiederm@xmission.com>
Subject: Re: huh startup_ipi_hook?
Date: Mon, 30 Apr 2007 11:33:06 -0700 [thread overview]
Message-ID: <46363662.40806@vmware.com> (raw)
In-Reply-To: <4632F653.3000102@goop.org>
Jeremy Fitzhardinge wrote:
> This is a fairly close match to Xen's requirements. Certainly, anything
> APIC-related is useless for us, since there's no APIC emulation going on.
>
> I won't speak for Zach, but his counter-argument is generally along the
> lines of "we can just make use of the existing code with a couple of
> little hooks near the bottom". But I wonder if the existing genapic
> interface can be used (or extended) to cover these cases without having
> needing to have APIC-level interfaces in paravirt_ops.
Because we faithfully emulate the APIC and IO-APIC, that is the
underlying hardware for us, and we don't have a fancy paravirtualized
interrupt controller because there is no need for it. The only
obstruction to this approach is that trapping and emulating APIC access
is slow. And some APIC registers have side effects on read. So we
simply replace APIC read / write with faster hypercalls.
Of course we can create a bunch of new code to use the genapic
interface. It is just a matter of copying apic.c and io-apic.c verbatim
and applying the sed command s/apic/vmi_apic/g. We can easily do this,
but the only point would be to eliminate the low-level APIC access
paravirt-op, which is not a maintenance burden, performance problem, or
encumberance on anyone. So it would be purely a cleanliness thing.
Doubling code to make two separate copies when the interface in question
is already well abstracted and contained in a header file doesn't make
it cleaner, at least to me.
Zach
next prev parent reply other threads:[~2007-04-30 18:33 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-28 7:14 huh startup_ipi_hook? Eric W. Biederman
2007-04-28 7:22 ` Jeremy Fitzhardinge
2007-04-28 8:06 ` Eric W. Biederman
2007-04-28 8:26 ` Jeremy Fitzhardinge
2007-04-28 8:42 ` Eric W. Biederman
2007-04-28 8:59 ` Jeremy Fitzhardinge
2007-04-30 18:33 ` Zachary Amsden [this message]
2007-04-30 18:54 ` Jeremy Fitzhardinge
2007-04-30 20:35 ` Zachary Amsden
2007-04-30 21:05 ` Jeremy Fitzhardinge
2007-04-30 21:40 ` Zachary Amsden
2007-04-28 8:45 ` Andi Kleen
2007-04-28 9:05 ` Eric W. Biederman
2007-04-30 20:30 ` Zachary Amsden
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=46363662.40806@vmware.com \
--to=zach@vmware.com \
--cc=ebiederm@xmission.com \
--cc=jeremy@goop.org \
--cc=virtualization@lists.osdl.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).