The BIOS used by this domain.
+#### ~/bios-strings/bios-vendor = STRING [HVM,INTERNAL]
+#### ~/bios-strings/bios-version = STRING [HVM,INTERNAL]
+#### ~/bios-strings/system-manufacturer = STRING [HVM,INTERNAL]
+#### ~/bios-strings/system-product-name = STRING [HVM,INTERNAL]
+#### ~/bios-strings/system-version = STRING [HVM,INTERNAL]
+#### ~/bios-strings/system-serial-number = STRING [HVM,INTERNAL]
+#### ~/bios-strings/enclosure-manufacturer = STRING [HVM,INTERNAL]
+#### ~/bios-strings/enclosure-serial-number = STRING [HVM,INTERNAL]
+#### ~/bios-strings/enclosure-asset-tag = STRING [HVM,INTERNAL]
+#### ~/bios-strings/battery-manufacturer = STRING [HVM,INTERNAL]
+#### ~/bios-strings/battery-device-name = STRING [HVM,INTERNAL]
+
+These xenstore values are used to override some of the default string
+values in the SMBIOS table constructed in hvmloader. See the SMBIOS
+table specification at http://www.dmtf.org/standards/smbios/
+
+#### ~/bios-strings/oem-* = STRING [HVM,INTERNAL]
+
+1 to 99 OEM strings can be set in xenstore using values of the form
+'~/bios-strings/oem-1' to '~/bios-strings/oem-99'. These strings will be
+loaded into the SMBIOS type 11 structure.
+
#### ~/platform/* = ("0"|"1") [HVM,INTERNAL]
Various boolean platform properties.
const char *s;
void *pts;
uint32_t length;
+ uint32_t counter = 0;
pts = get_smbios_pt_struct(3, &length);
if ( (pts != NULL)&&(length > 0) )
p->header.length = sizeof(struct smbios_type_3);
p->header.handle = SMBIOS_HANDLE_TYPE3;
- p->manufacturer_str = 1;
+ p->manufacturer_str = ++counter;
p->type = 0x01; /* other */
p->version_str = 0;
p->serial_number_str = 0;
strcpy((char *)start, s);
start += strlen(s) + 1;
- /* No internal defaults for this if the value is not set */
+ /* No internal defaults for following ones if the value is not set */
s = xenstore_read(HVM_XS_ENCLOSURE_SERIAL_NUMBER, NULL);
if ( (s != NULL)&&(*s != '\0') )
{
strcpy((char *)start, s);
start += strlen(s) + 1;
- p->serial_number_str = 2;
+ p->serial_number_str = ++counter;
+ }
+ s = xenstore_read(HVM_XS_ENCLOSURE_ASSET_TAG, NULL);
+ if ( (s != NULL) && (*s != '\0') )
+ {
+ strcpy(start, s);
+ start += strlen(s) + 1;
+ p->asset_tag_str = ++counter;
}
*((uint8_t *)start) = 0;
#define HVM_XS_SYSTEM_SERIAL_NUMBER "bios-strings/system-serial-number"
#define HVM_XS_ENCLOSURE_MANUFACTURER "bios-strings/enclosure-manufacturer"
#define HVM_XS_ENCLOSURE_SERIAL_NUMBER "bios-strings/enclosure-serial-number"
+#define HVM_XS_ENCLOSURE_ASSET_TAG "bios-strings/enclosure-asset-tag"
#define HVM_XS_BATTERY_MANUFACTURER "bios-strings/battery-manufacturer"
#define HVM_XS_BATTERY_DEVICE_NAME "bios-strings/battery-device-name"