Skip to contentSkip to conversation

VM SMBIOS struct field manipulation

DISCUSSION C.J. Adams-Collier 2 participants 4 messages Nov 8, 2007 – Nov 9, 2007

lore
Share & tools
lore
#0 lore raw

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.

Signature · 1 line
moo.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#1 lore raw

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

Quoted 8 lines · C.J. Adams-Collier

Hey folks,

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

Quoted 6 lines

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
[email protected]
http://lists.xensource.com/xen-devel

#2 lore raw

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.

Quoted 25 lines · Keir Fraser

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" <[email protected]> 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><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 .

Signature · 1 line
moo.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#3 lore raw

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

Quoted 10 lines · C.J. Adams-Collier

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?

Quoted 35 lines

Cheers,

C.J.

Quoted 28 lines · Keir Fraser

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

Quoted 18 lines · C.J. Adams-Collier

Hey folks,

Is it possible to define smbios struct fields
<http://src.vmindex.org/xen_3.0.4/xref/src/tools/firmware/hvmloader/smbios_t
ypes.h#75>
<http://src.vmindex.org/xen_3.0.4/xref/src/tools/firmware/hvmloader/smbios_t
ypes.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
[email protected]
http://lists.xensource.com/xen-devel