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

Re: [Xen-devel] VM SMBIOS struct field manipulation

To: "C.J. Adams-Collier" <cjcollier@xxxxxxxxx>
Subject: Re: [Xen-devel] VM SMBIOS struct field manipulation
From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Date: Fri, 09 Nov 2007 07:44:37 +0000
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 08 Nov 2007 23:39:29 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <33f90540711081523o7a6384edi2e9e9394621a23f5@xxxxxxxxxxxxxx>
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: AcgipGCOnwd8fo6XEdyujQAWy6hiGQ==
Thread-topic: [Xen-devel] VM SMBIOS struct field manipulation
User-agent: Microsoft-Entourage/11.3.6.070618
Well, maybe. It depends how useful that is, really, and how you would even specify arbitrary changes to the SMBIOS structures in the config file. It’ll undoubtedly make a mess of the toolstack. For particular VM-specific changes you might be better just to change the SMBIOS code in hvmloader and build a VM-specific hvmloader binary.

 -- Keir

On 8/11/07 23:23, "C.J. Adams-Collier" <cjcollier@xxxxxxxxx> wrote:

Great.  Thanks Kier,

I'll get familiar with it.  If we create a patch to allow SMBIOS structure updates from a data source via dom0, would you want it?

It looks like using a custom boot_ioremap from linux-2.6.18-xen.hg /arch/i(386|a64)/kernel/efi.c might allow manipulation of smbios fields for PV guests.  Are you familiar enough with this code to tell me whether I'm entirely off base here?

Cheers,

C.J.

On Nov 7, 2007 11:50 PM, Keir Fraser <Keir.Fraser@xxxxxxxxxxxx> wrote:
PV guests don't get an SMBIOS table; only HVM guests do. To change the structure (Which is fairly hardcoded) you need to modify the hvmloader sources. Look at tools/firmware/hvmloader/smbios.c.

 -- Keir


On 8/11/07 00:40, "C.J. Adams-Collier" <cjcollier@xxxxxxxxx> wrote:

Hey folks,

Is it possible to define smbios struct fields <http://src.vmindex.org/xen_3.0.4/xref/src/tools/firmware/hvmloader/smbios_types.h#75>  <http://src.vmindex.org/xen_3.0.4/xref/src/tools/firmware/hvmloader/smbios_types.h#75>   in the xmdomain.cfg <http://src.vmindex.org/xen_3.0.4/xref/src/docs/man/xmdomain.cfg.pod.5>  files?


If not, which files should I patch?  Do I need to create my own "device_model" or "loader" driver?  I would like to do this for both HV and PV.

Cheers,

C.J .




_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>