aboutsummaryrefslogtreecommitdiffstats
path: root/xen/xsm/flask
diff options
context:
space:
mode:
authorDaniel De Graaf <dgdegra@tycho.nsa.gov>2012-08-22 22:13:32 +0100
committerDaniel De Graaf <dgdegra@tycho.nsa.gov>2012-08-22 22:13:32 +0100
commit00e23f230212638718b6ff9214b829a663707a76 (patch)
tree4f64d0c1ad5a7553f7ff871469f98b34e2b15c52 /xen/xsm/flask
parent0c7a69665110b2b35719f7c739aadab56eee84cb (diff)
downloadxen-00e23f230212638718b6ff9214b829a663707a76.tar.gz
xen-00e23f230212638718b6ff9214b829a663707a76.tar.bz2
xen-00e23f230212638718b6ff9214b829a663707a76.zip
xsm: Add missing dummy hooks
A few XSM hooks have been defined without implementation in dummy.c; these will cause a null function pointer deference if called. Also implement the efi_call hook, which was incorrectly added without any implementations. Signed-off-by: Daniel De Graaf <dgdegra@tycho.nsa.gov> Committed-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/xsm/flask')
-rw-r--r--xen/xsm/flask/hooks.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/xen/xsm/flask/hooks.c b/xen/xsm/flask/hooks.c
index 23b84f3e00..de79d66b50 100644
--- a/xen/xsm/flask/hooks.c
+++ b/xen/xsm/flask/hooks.c
@@ -1280,6 +1280,11 @@ static int flask_firmware_info(void)
return domain_has_xen(current->domain, XEN__FIRMWARE);
}
+static int flask_efi_call(void)
+{
+ return domain_has_xen(current->domain, XEN__FIRMWARE);
+}
+
static int flask_acpi_sleep(void)
{
return domain_has_xen(current->domain, XEN__SLEEP);
@@ -1663,6 +1668,7 @@ static struct xsm_operations flask_ops = {
.physinfo = flask_physinfo,
.platform_quirk = flask_platform_quirk,
.firmware_info = flask_firmware_info,
+ .efi_call = flask_efi_call,
.acpi_sleep = flask_acpi_sleep,
.change_freq = flask_change_freq,
.getidletime = flask_getidletime,