xref: /freebsd/sys/contrib/xen/hvm/hvm_xs_strings.h (revision 3a9fd8242b35884921dfc4e886f284a75870a536)
1*3a9fd824SRoger Pau Monné /******************************************************************************
2*3a9fd824SRoger Pau Monné  * hvm/hvm_xs_strings.h
3*3a9fd824SRoger Pau Monné  *
4*3a9fd824SRoger Pau Monné  * HVM xenstore strings used in HVMLOADER.
5*3a9fd824SRoger Pau Monné  *
6*3a9fd824SRoger Pau Monné  * Permission is hereby granted, free of charge, to any person obtaining a copy
7*3a9fd824SRoger Pau Monné  * of this software and associated documentation files (the "Software"), to
8*3a9fd824SRoger Pau Monné  * deal in the Software without restriction, including without limitation the
9*3a9fd824SRoger Pau Monné  * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
10*3a9fd824SRoger Pau Monné  * sell copies of the Software, and to permit persons to whom the Software is
11*3a9fd824SRoger Pau Monné  * furnished to do so, subject to the following conditions:
12*3a9fd824SRoger Pau Monné  *
13*3a9fd824SRoger Pau Monné  * The above copyright notice and this permission notice shall be included in
14*3a9fd824SRoger Pau Monné  * all copies or substantial portions of the Software.
15*3a9fd824SRoger Pau Monné  *
16*3a9fd824SRoger Pau Monné  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17*3a9fd824SRoger Pau Monné  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18*3a9fd824SRoger Pau Monné  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19*3a9fd824SRoger Pau Monné  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20*3a9fd824SRoger Pau Monné  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21*3a9fd824SRoger Pau Monné  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22*3a9fd824SRoger Pau Monné  * DEALINGS IN THE SOFTWARE.
23*3a9fd824SRoger Pau Monné  *
24*3a9fd824SRoger Pau Monné  * Copyright (c) 2013, Citrix Systems
25*3a9fd824SRoger Pau Monné  */
26*3a9fd824SRoger Pau Monné 
27*3a9fd824SRoger Pau Monné #ifndef __XEN_PUBLIC_HVM_HVM_XS_STRINGS_H__
28*3a9fd824SRoger Pau Monné #define __XEN_PUBLIC_HVM_HVM_XS_STRINGS_H__
29*3a9fd824SRoger Pau Monné 
30*3a9fd824SRoger Pau Monné #define HVM_XS_HVMLOADER               "hvmloader"
31*3a9fd824SRoger Pau Monné #define HVM_XS_BIOS                    "hvmloader/bios"
32*3a9fd824SRoger Pau Monné #define HVM_XS_GENERATION_ID_ADDRESS   "hvmloader/generation-id-address"
33*3a9fd824SRoger Pau Monné #define HVM_XS_ALLOW_MEMORY_RELOCATE   "hvmloader/allow-memory-relocate"
34*3a9fd824SRoger Pau Monné 
35*3a9fd824SRoger Pau Monné /* The following values allow additional ACPI tables to be added to the
36*3a9fd824SRoger Pau Monné  * virtual ACPI BIOS that hvmloader constructs. The values specify the guest
37*3a9fd824SRoger Pau Monné  * physical address and length of a block of ACPI tables to add. The format of
38*3a9fd824SRoger Pau Monné  * the block is simply concatenated raw tables (which specify their own length
39*3a9fd824SRoger Pau Monné  * in the ACPI header).
40*3a9fd824SRoger Pau Monné  */
41*3a9fd824SRoger Pau Monné #define HVM_XS_ACPI_PT_ADDRESS         "hvmloader/acpi/address"
42*3a9fd824SRoger Pau Monné #define HVM_XS_ACPI_PT_LENGTH          "hvmloader/acpi/length"
43*3a9fd824SRoger Pau Monné 
44*3a9fd824SRoger Pau Monné /* Any number of SMBIOS types can be passed through to an HVM guest using
45*3a9fd824SRoger Pau Monné  * the following xenstore values. The values specify the guest physical
46*3a9fd824SRoger Pau Monné  * address and length of a block of SMBIOS structures for hvmloader to use.
47*3a9fd824SRoger Pau Monné  * The block is formatted in the following way:
48*3a9fd824SRoger Pau Monné  *
49*3a9fd824SRoger Pau Monné  * <length><struct><length><struct>...
50*3a9fd824SRoger Pau Monné  *
51*3a9fd824SRoger Pau Monné  * Each length separator is a 32b integer indicating the length of the next
52*3a9fd824SRoger Pau Monné  * SMBIOS structure. For DMTF defined types (0 - 121), the passed in struct
53*3a9fd824SRoger Pau Monné  * will replace the default structure in hvmloader. In addition, any
54*3a9fd824SRoger Pau Monné  * OEM/vendortypes (128 - 255) will all be added.
55*3a9fd824SRoger Pau Monné  */
56*3a9fd824SRoger Pau Monné #define HVM_XS_SMBIOS_PT_ADDRESS       "hvmloader/smbios/address"
57*3a9fd824SRoger Pau Monné #define HVM_XS_SMBIOS_PT_LENGTH        "hvmloader/smbios/length"
58*3a9fd824SRoger Pau Monné 
59*3a9fd824SRoger Pau Monné /* Set to 1 to enable SMBIOS default portable battery (type 22) values. */
60*3a9fd824SRoger Pau Monné #define HVM_XS_SMBIOS_DEFAULT_BATTERY  "hvmloader/smbios/default_battery"
61*3a9fd824SRoger Pau Monné 
62*3a9fd824SRoger Pau Monné /* The following xenstore values are used to override some of the default
63*3a9fd824SRoger Pau Monné  * string values in the SMBIOS table constructed in hvmloader.
64*3a9fd824SRoger Pau Monné  */
65*3a9fd824SRoger Pau Monné #define HVM_XS_BIOS_STRINGS            "bios-strings"
66*3a9fd824SRoger Pau Monné #define HVM_XS_BIOS_VENDOR             "bios-strings/bios-vendor"
67*3a9fd824SRoger Pau Monné #define HVM_XS_BIOS_VERSION            "bios-strings/bios-version"
68*3a9fd824SRoger Pau Monné #define HVM_XS_SYSTEM_MANUFACTURER     "bios-strings/system-manufacturer"
69*3a9fd824SRoger Pau Monné #define HVM_XS_SYSTEM_PRODUCT_NAME     "bios-strings/system-product-name"
70*3a9fd824SRoger Pau Monné #define HVM_XS_SYSTEM_VERSION          "bios-strings/system-version"
71*3a9fd824SRoger Pau Monné #define HVM_XS_SYSTEM_SERIAL_NUMBER    "bios-strings/system-serial-number"
72*3a9fd824SRoger Pau Monné #define HVM_XS_BASEBOARD_MANUFACTURER  "bios-strings/baseboard-manufacturer"
73*3a9fd824SRoger Pau Monné #define HVM_XS_BASEBOARD_PRODUCT_NAME  "bios-strings/baseboard-product-name"
74*3a9fd824SRoger Pau Monné #define HVM_XS_BASEBOARD_VERSION       "bios-strings/baseboard-version"
75*3a9fd824SRoger Pau Monné #define HVM_XS_BASEBOARD_SERIAL_NUMBER "bios-strings/baseboard-serial-number"
76*3a9fd824SRoger Pau Monné #define HVM_XS_BASEBOARD_ASSET_TAG     "bios-strings/baseboard-asset-tag"
77*3a9fd824SRoger Pau Monné #define HVM_XS_BASEBOARD_LOCATION_IN_CHASSIS "bios-strings/baseboard-location-in-chassis"
78*3a9fd824SRoger Pau Monné #define HVM_XS_ENCLOSURE_MANUFACTURER  "bios-strings/enclosure-manufacturer"
79*3a9fd824SRoger Pau Monné #define HVM_XS_ENCLOSURE_SERIAL_NUMBER "bios-strings/enclosure-serial-number"
80*3a9fd824SRoger Pau Monné #define HVM_XS_ENCLOSURE_ASSET_TAG     "bios-strings/enclosure-asset-tag"
81*3a9fd824SRoger Pau Monné #define HVM_XS_BATTERY_MANUFACTURER    "bios-strings/battery-manufacturer"
82*3a9fd824SRoger Pau Monné #define HVM_XS_BATTERY_DEVICE_NAME     "bios-strings/battery-device-name"
83*3a9fd824SRoger Pau Monné 
84*3a9fd824SRoger Pau Monné /* 1 to 99 OEM strings can be set in xenstore using values of the form
85*3a9fd824SRoger Pau Monné  * below. These strings will be loaded into the SMBIOS type 11 structure.
86*3a9fd824SRoger Pau Monné  */
87*3a9fd824SRoger Pau Monné #define HVM_XS_OEM_STRINGS             "bios-strings/oem-%d"
88*3a9fd824SRoger Pau Monné 
89*3a9fd824SRoger Pau Monné #endif /* __XEN_PUBLIC_HVM_HVM_XS_STRINGS_H__ */
90