WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] determining dom0 version and bit size from domU

To: "xen-devel" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] determining dom0 version and bit size from domU
From: "James Harper" <james.harper@xxxxxxxxxxxxxxxx>
Date: Sat, 2 Feb 2008 13:40:51 +1100
Delivery-date: Fri, 01 Feb 2008 18:41:20 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AchlRQYpcQr7K5pVTZi8TpkCkQ4v3g==
Thread-topic: determining dom0 version and bit size from domU
To overcome the problems I am having with the windows vbd drivers when
DomU bit width != Dom0 bit width, I would like to implement a kludge
with an algorithm something like:

"
if Dom0 Xen version >= 3.1.1
  set 'protocol' and it's business as usual
else
  if Dom0 is 64 bits
    align the blkif structures to 8 bytes
  else
    align the blkif structures to 4 bytes
"

Unfortunately, it doesn't look like I can determine the version of Xen
that the Dom0 kernel was compiled against, nor the bit width of Dom0. I
think I can get some indication of the hypervisor version, but that is
irrelevant.

Am I out of luck here? If I need to implement anything in Dom0 to do it
then I'll just document the Windows Xen PV drivers as being compatible
only with 3.1.1 and above if you want to mix and match bit widths... but
it would be nice to support older code.

James

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel