From: "Andrew Ball" Subject: Re: interest SMBIOS on domU's Date: Tue, 16 May 2006 13:05:49 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: B Thomas , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Here's a sample of the tables I have implemented at the moment. Define the best subset to implement, complying with SMBIOS 2.4, and collecting the data has been interesting, so these patches are probably going to need some work. I'm currently ignoring PCI slots, since I don't know much about them. I've been trying to keep the data as minimal as possible, but would certainly entertain adding information if it makes sense. I'll try to post the patches here tomorrow after a brief code review. Peace! Andrew # dmidecode 2.7 SMBIOS 2.4 present. 10 structures occupying 267 bytes. Table at 0x000EA01F. Handle 0x0000, DMI type 0, 24 bytes. BIOS Information =09Vendor: Xen =09Version: 3.0 =09Release Date: Mon May 1 17:06:51 EDT 2006 =09Address: 0xE8000 =09Runtime Size: 96 kB =09ROM Size: 64 kB =09Characteristics: =09BIOS Revision: 3.0 Handle 0x0100, DMI type 1, 27 bytes. System Information =09Manufacturer: Xen =09Product Name: HVM domU =09Version: 3.0 =09Serial Number: Not Specified =09UUID: 01234567-6012-0601-2360-120601234567 =09Wake-up Type: Power Switch =09SKU Number: Not Specified =09Family: Not Specified Handle 0x0300, DMI type 3, 13 bytes. Chassis Information =09Manufacturer: Xen =09Type: Other =09Lock: Not Present =09Version: Not Specified =09Serial Number: Not Specified =09Asset Tag: Not Specified =09Boot-up State: Safe =09Power Supply State: Safe =09Thermal State: Safe =09Security Status: Unknown Handle 0x0401, DMI type 4, 26 bytes. Processor Information =09Socket Designation: CPU 1 =09Type: Central Processor =09Family: Other =09Manufacturer: Intel =09ID: 46 0F 00 00 B7 FB E9 BF =09Version: Not Specified =09Voltage: Unknown =09External Clock: Unknown =09Max Speed: Unknown =09Current Speed: Unknown =09Status: Populated, Enabled =09Upgrade: Other Handle 0x1000, DMI type 16, 15 bytes. Physical Memory Array =09Location: Other =09Use: System Memory =09Error Correction Type: Other =09Maximum Capacity: 128 MB =09Error Information Handle: Not Provided =09Number Of Devices: 1 Handle 0x1100, DMI type 17, 21 bytes. Memory Device =09Array Handle: 0x1000 =09Error Information Handle: 0x0000 =09Total Width: 64 bits =09Data Width: 64 bits =09Size: 128 MB =09Form Factor: DIMM =09Set: None =09Locator: DIMM 1 =09Bank Locator: Not Specified =09Type: RAM =09Type Detail: None Handle 0x1300, DMI type 19, 15 bytes. Memory Array Mapped Address =09Starting Address: 0x00000000000 =09Ending Address: 0x00007F003FF =09Range Size: 130049 kB =09Physical Array Handle: 0x1000 =09Partition Width: 0 Handle 0x1400, DMI type 20, 19 bytes. Memory Device Mapped Address =09Starting Address: 0x00000000000 =09Ending Address: 0x00007F003FF =09Range Size: 130049 kB =09Physical Device Handle: 0x1100 =09Memory Array Mapped Address Handle: 0x1300 =09Partition Row Position: 1 Handle 0x2000, DMI type 32, 11 bytes. System Boot Information =09Status: No errors detected Handle 0x7F00, DMI type 127, 4 bytes. End Of Table On 5/16/06, B Thomas wrote: > I have been using the entire table for some time, with specific highlight= s > for BIOS, System, Module and Chassis. These contain relatively interesti= ng > information about system IDs, manufacturer, version numbers, product name > and so forth. This has been of use to both management software, as well a= s > to your own eyeballs when you're trying to track something down to a > particular machine. I've included a sample of these items below (taken fr= om > an HVM domain0 on a Dell 380). > > Clearly, much of this information is of use as applied to real hardware = and > domain0, but there is probably an interesting subset for virtual machines= in > domU. There's probably an interesting subset and analog for domainU > information. It will be interesting to see what you propose doing for the > domU visible DMI data. Do you intend to go as far as to include slots, > devices and ports ? Will you match what the ACPI tables report ? > > -b > > > Dell Inc. > A06 > 01/09/2006 > > > > 44:45:4c:4c:34:00:10:44:80:54:b5:c0:4f:4e:39:31 > Dell Inc. > Precision WorkStation 380 > 54DTN91 > > > Dell Inc. > 0G9322 > > ..CN7082161EI00M. > > > 101U > Dell Inc. > 54DTN91 > > > > > > On 5/15/06, Andrew Ball wrote: > > > Is anyone else interested in SMBIOS tables for domU's? (These are the > things that dmidecode reads -- they're often used by systems > management software and occasionally used by drivers.) > > I've been working on a patch for fully virtualized domU's for some > time now and am curious about who else might care about it and what > types they think make sense. > > A lot of the types make very little sense, like system chassis, but > the system information one that contains the system UUID (universally > unique identifier) is crucial for supporting arbitrary OSes in HVM > domU's for some systems management software. The idea is to correlate > domU's with dom0's by UUID's of the domU's. > > I'll try to send out the patches soon. I hope they're not too ugly to > stomach -- it's been difficult for me to make something like this > elegant. > > Thanks for your help! > Andrew > -- > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > Andrew D. Ball > anball@gmail.com > http://filebox.vt.edu/~anball1/ > "Festina lente" $\approx$ "Make haste slowly" > -- Caesar Augustus > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel > > --=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Andrew D. Ball anball@gmail.com http://filebox.vt.edu/~anball1/ "Festina lente" $\approx$ "Make haste slowly" -- Caesar Augustus