From: Arnd Bergmann <arnd-r2nGTMty4D4@public.gmane.org>
To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: portability layer?
Date: Wed, 28 Mar 2007 17:06:57 +0200 [thread overview]
Message-ID: <200703281706.57575.arnd@arndb.de> (raw)
In-Reply-To: <1175091978.1653.17.camel@basalt>
On Wednesday 28 March 2007, Hollis Blanchard wrote:
> > I don't see a big difference between the ioctl layer and libkvm. In
> > general, a libkvm function is an ioctl, and kvm_callback members are a
> > decoding of kvm_run fields. If you edit kvm_run to suit your needs, you
> > can probably reuse some of it.
>
> kvm_run as it stands is 100% x86-specific. (I doubt it could even be
> easily adapted for ia64, which is more similar to x86 than PowerPC.) So
> right now the kernel ioctl interface has an architecture-specific
> component, which violates the principle of identical interfaces I
> described earlier.
Remember that there _is_ an equivalent of kvm_run on powerpc (not powerpc64)
inside of MacOnLinux, though I could not find it now when looking through
the source.
> That means we either a) need to change the kernel interface or b) define
> a higher-level interface that *is* identical. That higher-level
> interface would be libkvm, hence my original question.
>
> Does my original question make more sense now? If you make libkvm the
> official interface, you would at least need to hide the "cpuid"
> callback, since it is intimately tied to an x86 instruction.
If there is going to be an architecture independent interface, it
should really be able to cover s390 as well, which has yet other
requirements. It's probably closer to amd64 than to powerpc64 though.
Arnd <><
-------------------------------------------------------------------------
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
next prev parent reply other threads:[~2007-03-28 15:06 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-26 21:20 portability layer? Hollis Blanchard
2007-03-27 6:57 ` Avi Kivity
[not found] ` <4608C06C.2000708-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-03-28 14:26 ` Hollis Blanchard
2007-03-28 15:06 ` Arnd Bergmann [this message]
2007-03-28 15:48 ` Avi Kivity
[not found] ` <460A8E44.5080305-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-03-28 18:50 ` Hollis Blanchard
2007-03-29 7:11 ` 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=200703281706.57575.arnd@arndb.de \
--to=arnd-r2ngtmty4d4@public.gmane.org \
--cc=kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.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