xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] SMBIOS table passthrough support
@ 2012-02-21  2:56 Ross Philipson
  2012-02-21  8:46 ` Ian Campbell
  0 siblings, 1 reply; 7+ messages in thread
From: Ross Philipson @ 2012-02-21  2:56 UTC (permalink / raw)
  To: xen-devel@lists.xensource.com

[-- Attachment #1: Type: text/plain, Size: 235 bytes --]

Updates to the layout of the HVM parameter and information page defined in hvm_info_table.h. The SMBIOS pass-through tables are written to the bottom half of this page.

Signed-off-by: Ross Philipson <ross.philipson@citrix.com>



[-- Attachment #2: smbios-passthrough-01.patch --]
[-- Type: application/octet-stream, Size: 1882 bytes --]

diff -r 0900b1c905f1 xen/include/public/hvm/hvm_info_table.h
--- a/xen/include/public/hvm/hvm_info_table.h	Mon Feb 20 18:58:07 2012 +0000
+++ b/xen/include/public/hvm/hvm_info_table.h	Mon Feb 20 20:35:36 2012 -0500
@@ -25,12 +25,15 @@
 #ifndef __XEN_PUBLIC_HVM_HVM_INFO_TABLE_H__
 #define __XEN_PUBLIC_HVM_HVM_INFO_TABLE_H__
 
-#define HVM_INFO_PFN         0x09F
-#define HVM_INFO_OFFSET      0x800
-#define HVM_INFO_PADDR       ((HVM_INFO_PFN << 12) + HVM_INFO_OFFSET)
+#define HVM_INFO_PFN           0x09F
+#define HVM_INFO_OFFSET        0x800
+#define HVM_INFO_PADDR         ((HVM_INFO_PFN << 12) + HVM_INFO_OFFSET)
+#define HVM_SMBIOS_INFO_OFFSET 0x0
+#define HVM_SMBIOS_INFO_PADDR  ((HVM_INFO_PFN << 12) + HVM_SMBIOS_INFO_OFFSET)
+#define HVM_SMBIOS_INFO_MAX    0x800
 
 /* Maximum we can support with current vLAPIC ID mapping. */
-#define HVM_MAX_VCPUS        128
+#define HVM_MAX_VCPUS          128
 
 struct hvm_info_table {
     char        signature[8]; /* "HVM INFO" */
@@ -69,4 +72,31 @@
     uint8_t     vcpu_online[(HVM_MAX_VCPUS + 7)/8];
 };
 
+struct hvm_smbios_table_header {
+    /*
+     * Beginning after this stucture, includes fixed table size 
+     * string list, and terminator.
+     */
+    uint32_t    length;
+};
+
+#define HVM_SMBIOS_INCLUDE_SYSTEM_BOARD     0x00000001
+#define HVM_SMBIOS_INCLUDE_PORTABLE_BATTERY 0x00000002
+#define HVM_SMBIOS_INCLUDE_POWER_SUPPLY     0x00000004
+#define HVM_SMBIOS_INCLUDE_VENDOR_OEM       0x00000008
+
+struct hvm_smbios_info_table {
+    char        signature[8]; /* "SMBIOSPT" */
+    uint32_t    length; /* all tables + this struct */
+    uint8_t     checksum;
+
+    /* Control flags for table options */
+    uint32_t    flags;
+
+    /* Count of table headers that following this stucture. */
+    uint32_t    count;
+
+    /* Begin SMBIOS tables */
+};
+
 #endif /* __XEN_PUBLIC_HVM_HVM_INFO_TABLE_H__ */

[-- Attachment #3: Type: text/plain, Size: 132 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-02-23 16:09 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-21  2:56 [PATCH 1/3] SMBIOS table passthrough support Ross Philipson
2012-02-21  8:46 ` Ian Campbell
2012-02-21 13:42   ` Ross Philipson
2012-02-21 15:21     ` Ian Campbell
2012-02-21 20:34       ` Cihula, Joseph
2012-02-23 16:09         ` Ross Philipson
2012-02-23 10:42       ` Tim Deegan

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).