From: Keir Fraser Subject: Re: VM SMBIOS struct field manipulation Date: Fri, 09 Nov 2007 07:44:37 +0000 Message-ID: References: <33f90540711081523o7a6384edi2e9e9394621a23f5@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1159419874==" Return-path: In-Reply-To: <33f90540711081523o7a6384edi2e9e9394621a23f5@mail.gmail.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "C.J. Adams-Collier" Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org > This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --===============1159419874== Content-type: multipart/alternative; boundary="B_3277439078_93950085" > This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --B_3277439078_93950085 Content-type: text/plain; charset="ISO-8859-1" Content-transfer-encoding: quoted-printable 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=B9l= l undoubtedly make a mess of the toolstack. For particular VM-specific change= s 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" wrote: > Great. Thanks Kier, >=20 > I'll get familiar with it. If we create a patch to allow SMBIOS structur= e > updates from a data source via dom0, would you want it? >=20 > 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 f= or PV > guests. Are you familiar enough with this code to tell me whether I'm > entirely off base here? >=20 > Cheers, >=20 > C.J. >=20 > On Nov 7, 2007 11:50 PM, Keir Fraser 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. >>=20 >> -- Keir >>=20 >>=20 >> On 8/11/07 00:40, "C.J. Adams-Collier" wrote: >>=20 >>> Hey folks, >>>=20 >>> Is it possible to define smbios struct fields >>> >> ypes.h#75> =20 >>> >> ypes.h#75> in the xmdomain.cfg >>> >>> files? >>>=20 >>>=20 >>> 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. >>>=20 >>> Cheers, >>>=20 >>> C.J . >>=20 >=20 >=20 --B_3277439078_93950085 Content-type: text/html; charset="ISO-8859-1" Content-transfer-encoding: quoted-printable Re: [Xen-devel] VM SMBIOS struct field manipulation Well,= maybe. It depends how useful that is, really, and how you would even specif= y arbitrary changes to the SMBIOS structures in the config file. It’ll= undoubtedly make a mess of the toolstack. For particular VM-specific change= s 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@gmail.com>= ; wrote:

Great.  Thanks Kier,

I'll get familiar with it.  If we create a patch to allow SMBIOS struc= ture 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 guest= s.  Are you familiar enough with this code to tell me whether I'm entir= ely off base here?

Cheers,

C.J.

On Nov 7, 2007 11:50 PM, Keir Fraser <Keir.Fraser@cl.cam.ac.uk> 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@gmail.com>= ; 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/xre= f/src/tools/firmware/hvmloader/smbios_types.h#75>   in the = xmdomain.cfg <http://src.vmindex.org/xen_3.0.4/xref/src/docs/man/xmdo= main.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 th= is for both HV and PV.

Cheers,

C.J .




--B_3277439078_93950085-- --===============1159419874== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============1159419874==--