All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gerd Hoffmann <kraxel@suse.de>
To: Keir Fraser <Keir.Fraser@cl.cam.ac.uk>
Cc: xen-devel@lists.xensource.com, Jan Beulich <jbeulich@novell.com>
Subject: Re: bi-modal backends - fronend mode detection
Date: Mon, 06 Nov 2006 09:47:18 +0100	[thread overview]
Message-ID: <454EF696.2040708@suse.de> (raw)
In-Reply-To: <C171F6F4.3D2E%Keir.Fraser@cl.cam.ac.uk>

Keir Fraser wrote:
> Actually this doesn't necessarily work reliably. We don't know what mode the
> HVM guest will happen to be running in when we query it via a hypercall. We
> should add an address-bits field to the frontend device-info directory. This
> can be filled in by frontend drivers, and also by the tools when creating PV
> guests. In the absence of the address-bits field, backend can assume native
> bit width or 32-bit width, whichever seems likely to work with most older
> HVM clients.

We have that issue for PV domains too (32-on-64 starts working now),
which is more problematic as we have both 32bit and 64bit distros in the
wild, which of course don't add info to xenstore indicating the protocol
variant.

For the pv-on-hvm case we maybe have the chance to fix it up in a sane
way before plenty of systems use it we do it quickly, for example by
requiring guests adding the info to the xenstore.  I'd go with some
"protocol" instead of "address bits" field, giving numbers "1" and "2"
to the current 32bit and 64bit structs and leaving the door open to
introduce some new protocol "3" at some point in the future.

cheers,
  Gerd

-- 
Gerd Hoffmann <kraxel@suse.de>
http://www.suse.de/~kraxel/julika-dora.jpeg

      parent reply	other threads:[~2006-11-06  8:47 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-03 15:16 bi-modal backends - fronend mode detection Jan Beulich
2006-11-03 16:14 ` Gerd Hoffmann
2006-11-03 20:43 ` Keir Fraser
2006-11-04  7:51   ` Keir Fraser
2006-11-06  8:30     ` Jan Beulich
2006-11-06  9:00       ` Keir Fraser
2006-11-06  8:47     ` Gerd Hoffmann [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=454EF696.2040708@suse.de \
    --to=kraxel@suse.de \
    --cc=Keir.Fraser@cl.cam.ac.uk \
    --cc=jbeulich@novell.com \
    --cc=xen-devel@lists.xensource.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.