Update SPCI_VERSION implementation to match latest spec.
This also updates the version number from 0.9 to 1.0.
Bug: 132420445
Change-Id: I991ea9f71634935c21a590f9309dd66ac910eff5
diff --git a/inc/vmapi/hf/call.h b/inc/vmapi/hf/call.h
index 5642683..d4119d6 100644
--- a/inc/vmapi/hf/call.h
+++ b/inc/vmapi/hf/call.h
@@ -319,9 +319,11 @@
}
/** Obtains the Hafnium's version of the implemented SPCI specification. */
-static inline struct spci_value spci_version(void)
+static inline int32_t spci_version(uint32_t requested_version)
{
- return spci_call((struct spci_value){.func = SPCI_VERSION_32});
+ return spci_call((struct spci_value){.func = SPCI_VERSION_32,
+ .arg1 = requested_version})
+ .func;
}
/**