xen/mcelog: add PPIN to record when available
[sfrench/cifs-2.6.git] / include / xen / interface / xen-mca.h
index d7a45f08fb48a98c73703dd44bcfbcf5e953d237..7483a78d24251e46bbcca9007003d0f06f2725bc 100644 (file)
@@ -331,7 +331,11 @@ struct xen_mc {
 };
 DEFINE_GUEST_HANDLE_STRUCT(xen_mc);
 
-/* Fields are zero when not available */
+/*
+ * Fields are zero when not available. Also, this struct is shared with
+ * userspace mcelog and thus must keep existing fields at current offsets.
+ * Only add new fields to the end of the structure
+ */
 struct xen_mce {
        __u64 status;
        __u64 misc;
@@ -352,6 +356,9 @@ struct xen_mce {
        __u32 socketid; /* CPU socket ID */
        __u32 apicid;   /* CPU initial apic ID */
        __u64 mcgcap;   /* MCGCAP MSR: machine check capabilities of CPU */
+       __u64 synd;     /* MCA_SYND MSR: only valid on SMCA systems */
+       __u64 ipid;     /* MCA_IPID MSR: only valid on SMCA systems */
+       __u64 ppin;     /* Protected Processor Inventory Number */
 };
 
 /*