+};A global capability for all devices? No, this needs to be a per-device
+static unsigned int capability = PVPANIC_PANICKED | PVPANIC_CRASH_LOADED;
+static unsigned int events;
+
+static ssize_t capability_show(struct device *dev,
+ struct device_attribute *attr, char *buf)
+{
+ return sysfs_emit(buf, "%x\n", capability);
attttribute as you are showing it to userspace as such.
+static struct attribute *pvpanic_pci_dev_attrs[] = {You did not document these new sysfs files in Documentation/ABI/ so it's
+ &dev_attr_capability.attr,
+ &dev_attr_events.attr,
+ NULL
+};
+ATTRIBUTE_GROUPS(pvpanici_pci_dev);
hard to judge what they do. Please do so next version.