* [PATCH v4 01/04] HVM firmware passthrough HVM defs header
@ 2012-12-20 18:55 Ross Philipson
2013-01-09 8:42 ` Keir Fraser
0 siblings, 1 reply; 3+ messages in thread
From: Ross Philipson @ 2012-12-20 18:55 UTC (permalink / raw)
To: xen-devel@lists.xensource.com
[-- Attachment #1: Type: text/plain, Size: 289 bytes --]
Add public HVM definitions header for firmware passthrough support (including
comment describing the feature's use). In addition this header is used to
collect the various xenstore string values that are used in HVMLOADER.
Signed-off-by: Ross Philipson <ross.philipson@citrix.com>
[-- Attachment #2: hvm-firmware-passthrough-v4-01.patch --]
[-- Type: application/octet-stream, Size: 4525 bytes --]
Add public HVM definitions header for firmware passthrough support (including
comment describing the feature's use). In addition this header is used to
collect the various xenstore string values that are used in HVMLOADER.
Signed-off-by: Ross Philipson <ross.philipson@citrix.com>
diff -r 090cc3e20d3e tools/include/xen-tools/hvm_defs.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/tools/include/xen-tools/hvm_defs.h Wed Dec 19 14:22:48 2012 -0500
@@ -0,0 +1,85 @@
+/*
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ */
+
+#ifndef _XEN_TOOLS_HVM_DEFS_H__
+#define _XEN_TOOLS_HVM_DEFS_H__
+
+#define HVM_XS_HVMLOADER "hvmloader"
+#define HVM_XS_BIOS "hvmloader/bios"
+#define HVM_XS_GENERATION_ID_ADDRESS "hvmloader/generation-id-address"
+
+/* The following values allow additional ACPI tables to be added to the
+ * virtual ACPI BIOS that hvmloader constructs. The values specify the guest
+ * physical address and length of a block of ACPI tables to add. The format of
+ * the block is simply concatenated raw tables (which specify their own length
+ * in the ACPI header).
+ */
+#define HVM_XS_ACPI_PT_ADDRESS "hvmloader/acpi/address"
+#define HVM_XS_ACPI_PT_LENGTH "hvmloader/acpi/length"
+
+/* Any number of SMBIOS types can be passed through to an HVM guest using
+ * the following xenstore values. The values specify the guest physical
+ * address and length of a block of SMBIOS structures for hvmloader to use.
+ * The block is formatted in the following way:
+ *
+ * <length><struct><length><struct>...
+ *
+ * Each length separator is a 32b integer indicating the length of the next
+ * SMBIOS structure. For DMTF defined types (0 - 121), the passed in struct
+ * will replace the default structure in hvmloader. In addition, any
+ * OEM/vendortypes (128 - 255) will all be added.
+ */
+#define HVM_XS_SMBIOS_PT_ADDRESS "hvmloader/smbios/address"
+#define HVM_XS_SMBIOS_PT_LENGTH "hvmloader/smbios/length"
+
+/* Set to 1 to enable SMBIOS default portable battery (type 22) values. */
+#define HVM_XS_SMBIOS_DEFAULT_BATTERY "hvmloader/smbios/default_battery"
+
+/* The following xenstore values are used to override some of the default
+ * string values in the SMBIOS table constructed in hvmloader.
+ */
+#define HVM_XS_BIOS_STRINGS "bios-strings"
+#define HVM_XS_BIOS_VENDOR "bios-strings/bios-vendor"
+#define HVM_XS_BIOS_VERSION "bios-strings/bios-version"
+#define HVM_XS_SYSTEM_MANUFACTURER "bios-strings/system-manufacturer"
+#define HVM_XS_SYSTEM_PRODUCT_NAME "bios-strings/system-product-name"
+#define HVM_XS_SYSTEM_VERSION "bios-strings/system-version"
+#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_BATTERY_MANUFACTURER "bios-strings/battery-manufacturer"
+#define HVM_XS_BATTERY_DEVICE_NAME "bios-strings/battery-device-name"
+
+/* 1 to 99 OEM strings can be set in xenstore using values of the form
+ * below. These strings will be loaded into the SMBIOS type 11 structure.
+ */
+#define HVM_XS_OEM_STRINGS "bios-strings/oem-%02d"
+
+#endif /* _XEN_TOOLS_HVM_DEFS_H__ */
+
+/*
+ * Local variables:
+ * mode: C
+ * c-set-style: "BSD"
+ * c-basic-offset: 4
+ * tab-width: 4
+ * indent-tabs-mode: nil
+ * End:
+ */
[-- Attachment #3: bee9b37e76.aa.sf --]
[-- Type: application/octet-stream, Size: 105 bytes --]
bee9b37e76
0
0
NONE
C:\Users\rossp\AppData\Roaming\ShareFile\Outlook\bee9b37e76\
0
0
0
NONE
NONE
[-- Attachment #4: d8db81bac3.aa.sf --]
[-- Type: application/octet-stream, Size: 105 bytes --]
d8db81bac3
0
0
NONE
C:\Users\rossp\AppData\Roaming\ShareFile\Outlook\d8db81bac3\
0
0
0
NONE
NONE
[-- Attachment #5: 483a0d23ee.aa.sf --]
[-- Type: application/octet-stream, Size: 105 bytes --]
483a0d23ee
0
0
NONE
C:\Users\rossp\AppData\Roaming\ShareFile\Outlook\483a0d23ee\
0
0
0
NONE
NONE
[-- Attachment #6: ebb5603a64.aa.sf --]
[-- Type: application/octet-stream, Size: 105 bytes --]
ebb5603a64
0
0
NONE
C:\Users\rossp\AppData\Roaming\ShareFile\Outlook\ebb5603a64\
0
0
0
NONE
NONE
[-- Attachment #7: 3f7f317064.aa.sf --]
[-- Type: application/octet-stream, Size: 105 bytes --]
3f7f317064
0
0
NONE
C:\Users\rossp\AppData\Roaming\ShareFile\Outlook\3f7f317064\
0
0
0
NONE
NONE
[-- Attachment #8: 76b3a7c263.aa.sf --]
[-- Type: application/octet-stream, Size: 105 bytes --]
76b3a7c263
0
0
NONE
C:\Users\rossp\AppData\Roaming\ShareFile\Outlook\76b3a7c263\
0
0
0
NONE
NONE
[-- Attachment #9: Type: text/plain, Size: 126 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v4 01/04] HVM firmware passthrough HVM defs header
2012-12-20 18:55 [PATCH v4 01/04] HVM firmware passthrough HVM defs header Ross Philipson
@ 2013-01-09 8:42 ` Keir Fraser
2013-01-09 17:53 ` Ross Philipson
0 siblings, 1 reply; 3+ messages in thread
From: Keir Fraser @ 2013-01-09 8:42 UTC (permalink / raw)
To: Ross Philipson, xen-devel@lists.xensource.com
On 20/12/2012 18:55, "Ross Philipson" <Ross.Philipson@citrix.com> wrote:
> Add public HVM definitions header for firmware passthrough support (including
> comment describing the feature's use). In addition this header is used to
> collect the various xenstore string values that are used in HVMLOADER.
Please give this header file a more descriptive name, and place it under
xen/include/public/hvm/ (from whence it will be linked into the
tools/include/ namespace at build time, and accessible from there by tools
and hvmloader sources).
You will need to spin a v5 of this patchset.
I'm happy with you leaving xl integration until after this patchset is in
the tree, personally. Unless any of the toolstack team wants to veto that.
-- Keir
> Signed-off-by: Ross Philipson <ross.philipson@citrix.com>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v4 01/04] HVM firmware passthrough HVM defs header
2013-01-09 8:42 ` Keir Fraser
@ 2013-01-09 17:53 ` Ross Philipson
0 siblings, 0 replies; 3+ messages in thread
From: Ross Philipson @ 2013-01-09 17:53 UTC (permalink / raw)
To: Keir (Xen.org), xen-devel@lists.xensource.com
> -----Original Message-----
> From: Keir Fraser [mailto:keir.xen@gmail.com] On Behalf Of Keir Fraser
> Sent: Wednesday, January 09, 2013 3:42 AM
> To: Ross Philipson; xen-devel@lists.xensource.com
> Subject: Re: [Xen-devel] [PATCH v4 01/04] HVM firmware passthrough HVM
> defs header
>
> On 20/12/2012 18:55, "Ross Philipson" <Ross.Philipson@citrix.com> wrote:
>
> > Add public HVM definitions header for firmware passthrough support
> (including
> > comment describing the feature's use). In addition this header is used
> to
> > collect the various xenstore string values that are used in HVMLOADER.
>
> Please give this header file a more descriptive name, and place it under
> xen/include/public/hvm/ (from whence it will be linked into the
> tools/include/ namespace at build time, and accessible from there by
> tools
> and hvmloader sources).
>
> You will need to spin a v5 of this patchset.
Wilco, thanks
>
> I'm happy with you leaving xl integration until after this patchset is
> in
> the tree, personally. Unless any of the toolstack team wants to veto
> that.
>
> -- Keir
>
> > Signed-off-by: Ross Philipson <ross.philipson@citrix.com>
> >
> > _______________________________________________
> > Xen-devel mailing list
> > Xen-devel@lists.xen.org
> > http://lists.xen.org/xen-devel
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-01-09 17:53 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-20 18:55 [PATCH v4 01/04] HVM firmware passthrough HVM defs header Ross Philipson
2013-01-09 8:42 ` Keir Fraser
2013-01-09 17:53 ` Ross Philipson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).