From: "C.J. Adams-Collier" Subject: Re: VM SMBIOS struct field manipulation Date: Thu, 8 Nov 2007 15:23:30 -0800 Message-ID: <33f90540711081523o7a6384edi2e9e9394621a23f5@mail.gmail.com> References: <33f90540711071640l78db064hae3934f30b08bf0a@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0223053734==" Return-path: In-Reply-To: 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: Keir Fraser Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============0223053734== Content-Type: multipart/alternative; boundary="----=_Part_29874_5292920.1194564210363" ------=_Part_29874_5292920.1194564210363 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 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" wrote: > > Hey folks, > > Is it possible to define smbios struct fields > in the > xmdomain.cfg > 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 . > > > -- moo. ------=_Part_29874_5292920.1194564210363 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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@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>  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 .




--
moo. ------=_Part_29874_5292920.1194564210363-- --===============0223053734== 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 --===============0223053734==--