misc: pvpanic: introduce events device attribue
authorzhenwei pi <pizhenwei@bytedance.com>
Sun, 10 Jan 2021 11:53:58 +0000 (19:53 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Jan 2021 13:28:17 +0000 (14:28 +0100)
commit8d6da6575ffec171161d36a06c015142b0049637
treebd1bdd45d6f88de6d2b20f133a0f69957af48093
parent487709fa1be2f27aa8e7de6c60587b4302a21467
misc: pvpanic: introduce events device attribue

Suggested by Paolo & Greg, add 'events' device attribute that can be
used to limit which capabilities the driver uses.

Finally, the pvpanic guest driver works by the limitation of both
device capability and user setting.

Signed-off-by: zhenwei pi <pizhenwei@bytedance.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Link: https://lore.kernel.org/r/20210110115358.79100-3-pizhenwei@bytedance.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/ABI/testing/sysfs-bus-pci-devices-pvpanic
drivers/misc/pvpanic.c