Path: blob/main/sys/contrib/xen/hvm/hvm_xs_strings.h
48253 views
/******************************************************************************1* hvm/hvm_xs_strings.h2*3* HVM xenstore strings used in HVMLOADER.4*5* Permission is hereby granted, free of charge, to any person obtaining a copy6* of this software and associated documentation files (the "Software"), to7* deal in the Software without restriction, including without limitation the8* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or9* sell copies of the Software, and to permit persons to whom the Software is10* furnished to do so, subject to the following conditions:11*12* The above copyright notice and this permission notice shall be included in13* all copies or substantial portions of the Software.14*15* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR16* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,17* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE18* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER19* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING20* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER21* DEALINGS IN THE SOFTWARE.22*23* Copyright (c) 2013, Citrix Systems24*/2526#ifndef __XEN_PUBLIC_HVM_HVM_XS_STRINGS_H__27#define __XEN_PUBLIC_HVM_HVM_XS_STRINGS_H__2829#define HVM_XS_HVMLOADER "hvmloader"30#define HVM_XS_BIOS "hvmloader/bios"31#define HVM_XS_GENERATION_ID_ADDRESS "hvmloader/generation-id-address"32#define HVM_XS_ALLOW_MEMORY_RELOCATE "hvmloader/allow-memory-relocate"3334/* The following values allow additional ACPI tables to be added to the35* virtual ACPI BIOS that hvmloader constructs. The values specify the guest36* physical address and length of a block of ACPI tables to add. The format of37* the block is simply concatenated raw tables (which specify their own length38* in the ACPI header).39*/40#define HVM_XS_ACPI_PT_ADDRESS "hvmloader/acpi/address"41#define HVM_XS_ACPI_PT_LENGTH "hvmloader/acpi/length"4243/* Any number of SMBIOS types can be passed through to an HVM guest using44* the following xenstore values. The values specify the guest physical45* address and length of a block of SMBIOS structures for hvmloader to use.46* The block is formatted in the following way:47*48* <length><struct><length><struct>...49*50* Each length separator is a 32b integer indicating the length of the next51* SMBIOS structure. For DMTF defined types (0 - 121), the passed in struct52* will replace the default structure in hvmloader. In addition, any53* OEM/vendortypes (128 - 255) will all be added.54*/55#define HVM_XS_SMBIOS_PT_ADDRESS "hvmloader/smbios/address"56#define HVM_XS_SMBIOS_PT_LENGTH "hvmloader/smbios/length"5758/* Set to 1 to enable SMBIOS default portable battery (type 22) values. */59#define HVM_XS_SMBIOS_DEFAULT_BATTERY "hvmloader/smbios/default_battery"6061/* The following xenstore values are used to override some of the default62* string values in the SMBIOS table constructed in hvmloader.63*/64#define HVM_XS_BIOS_STRINGS "bios-strings"65#define HVM_XS_BIOS_VENDOR "bios-strings/bios-vendor"66#define HVM_XS_BIOS_VERSION "bios-strings/bios-version"67#define HVM_XS_SYSTEM_MANUFACTURER "bios-strings/system-manufacturer"68#define HVM_XS_SYSTEM_PRODUCT_NAME "bios-strings/system-product-name"69#define HVM_XS_SYSTEM_VERSION "bios-strings/system-version"70#define HVM_XS_SYSTEM_SERIAL_NUMBER "bios-strings/system-serial-number"71#define HVM_XS_BASEBOARD_MANUFACTURER "bios-strings/baseboard-manufacturer"72#define HVM_XS_BASEBOARD_PRODUCT_NAME "bios-strings/baseboard-product-name"73#define HVM_XS_BASEBOARD_VERSION "bios-strings/baseboard-version"74#define HVM_XS_BASEBOARD_SERIAL_NUMBER "bios-strings/baseboard-serial-number"75#define HVM_XS_BASEBOARD_ASSET_TAG "bios-strings/baseboard-asset-tag"76#define HVM_XS_BASEBOARD_LOCATION_IN_CHASSIS "bios-strings/baseboard-location-in-chassis"77#define HVM_XS_ENCLOSURE_MANUFACTURER "bios-strings/enclosure-manufacturer"78#define HVM_XS_ENCLOSURE_SERIAL_NUMBER "bios-strings/enclosure-serial-number"79#define HVM_XS_ENCLOSURE_ASSET_TAG "bios-strings/enclosure-asset-tag"80#define HVM_XS_BATTERY_MANUFACTURER "bios-strings/battery-manufacturer"81#define HVM_XS_BATTERY_DEVICE_NAME "bios-strings/battery-device-name"8283/* 1 to 99 OEM strings can be set in xenstore using values of the form84* below. These strings will be loaded into the SMBIOS type 11 structure.85*/86#define HVM_XS_OEM_STRINGS "bios-strings/oem-%d"8788#endif /* __XEN_PUBLIC_HVM_HVM_XS_STRINGS_H__ */899091