public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Avi Kivity <avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
To: Hollis Blanchard <hollis-yUx37fBWTUITNcAmw9vGhQ@public.gmane.org>
Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: portability layer?
Date: Thu, 29 Mar 2007 09:11:12 +0200	[thread overview]
Message-ID: <460B6690.90503@qumranet.com> (raw)
In-Reply-To: <1175107843.1653.69.camel@basalt>

Hollis Blanchard wrote:
>> No, I'm saying that some #ifdeffery in both libkvm and the ioctl 
>> interface is unavoidable.
>>     
>
> If by #ifdeffery you mean having per-architecture definitions of
> structures like kvm_regs, absolutely. If you mean literal #ifdefs in the
> middle a header file, I believe that can and should be avoided.
>
>   

If it can be avoided I'm all for it.

>> Right now this is handled by qemu, which means our higher level tools 
>> are _already_ nonportable.
>>     
>
> Yes, but not *all* the higher level tools are. At some point you have a
> common interface, and at this point I think I've answered my own
> question: the qemu monitor connection is the portable interface.
>
> That means everything layered above qemu, such as libvirt and thus
> virt-manager, should work on all architectures +/- without changes.
> Lower-level software, such as GDB, would need per-architecture support.
>
>   

Ah, _those_ higher layer tools.

Each of these interfaces needs to be stabilized for different reasons:

- the kernel ABI allows the kernel and userspace to be upgraded 
independently
- libkvm is mainly for when we've merged all our changes into mainline 
qemu, and for the theoretical second user
- the qemu monitor is for the higher level tools

Note that the qemu monitor (and commandline) interface is under the 
control of the qemu maintainers, not us.  So far it has been steadily 
improving.

>> [I have a feeling we're talking a little past each other, probably due 
>> to me not knowing ppc at any level of detail.  No doubt things will 
>> become clearer when the code arrives]
>>     
>
> I don't have any code for you, but you will be the first to know when I
> do. :) Right now I'm just trying to make sure we don't accidentally
> paint ourselves into a corner with a stable ABI.
>   

The stable ABI here is just the support baseline, not a freeze.  We know 
for certain that changes are needed for smp, paravirt drivers, new 
hardware virtualization extensions, and new archs.  And of course it 
only holds for x86; other archs will stabilize when they are ready.


-- 
Do not meddle in the internals of kernels, for they are subtle and quick to panic.


-------------------------------------------------------------------------
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

      reply	other threads:[~2007-03-29  7:11 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
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 [this message]

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=460B6690.90503@qumranet.com \
    --to=avi-atkuwr5tajbwk0htik3j/w@public.gmane.org \
    --cc=hollis-yUx37fBWTUITNcAmw9vGhQ@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