firmware: qemu_fw_cfg.c: hold ACPI global lock during device access
authorGabriel Somlo <somlo@cmu.edu>
Tue, 8 Mar 2016 18:30:50 +0000 (13:30 -0500)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 7 Apr 2016 12:16:40 +0000 (15:16 +0300)
commitdef7ac806a9ac035abf0e7573ccc8bbfd38e163c
tree0487db594de37d6fcc0794d919627a89dd45b034
parent05dbcb430795b2e1fb1d5c757f8619d3dbed0a1c
firmware: qemu_fw_cfg.c: hold ACPI global lock during device access

Allowing for the future possibility of implementing AML-based
(i.e., firmware-triggered) access to the QEMU fw_cfg device,
acquire the global ACPI lock when accessing the device on behalf
of the guest-side sysfs driver, to prevent any potential race
conditions.

Suggested-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Gabriel Somlo <somlo@cmu.edu>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/firmware/qemu_fw_cfg.c