refactor: rename type for FF-A IDs
The FF-A ID is a unsigned 16-bit value that was named
ffa_vm_id_t. This patch changes it to simply ffa_id_t.
This is to make clearer the ID type is used for other
endpoints other than simply VMs.
Signed-off-by: J-Alves <joao.alves@arm.com>
Change-Id: I60319c08481b2380bd0063b108a35fc01e2af537
diff --git a/src/arch/aarch64/hypervisor/handler.c b/src/arch/aarch64/hypervisor/handler.c
index 31ccc83..19b0f05 100644
--- a/src/arch/aarch64/hypervisor/handler.c
+++ b/src/arch/aarch64/hypervisor/handler.c
@@ -333,9 +333,9 @@
*/
static bool spmd_handler(struct ffa_value *args, struct vcpu *current)
{
- ffa_vm_id_t sender = ffa_sender(*args);
- ffa_vm_id_t receiver = ffa_receiver(*args);
- ffa_vm_id_t current_vm_id = current->vm->id;
+ ffa_id_t sender = ffa_sender(*args);
+ ffa_id_t receiver = ffa_receiver(*args);
+ ffa_id_t current_vm_id = current->vm->id;
uint32_t fwk_msg = ffa_fwk_msg(*args);
uint8_t fwk_msg_func_id = fwk_msg & SPMD_FWK_MSG_FUNC_MASK;
@@ -665,12 +665,12 @@
return true;
case FFA_NOTIFICATION_BITMAP_CREATE_32:
*args = api_ffa_notification_bitmap_create(
- (ffa_vm_id_t)args->arg1, (ffa_vcpu_count_t)args->arg2,
+ (ffa_id_t)args->arg1, (ffa_vcpu_count_t)args->arg2,
current);
return true;
case FFA_NOTIFICATION_BITMAP_DESTROY_32:
*args = api_ffa_notification_bitmap_destroy(
- (ffa_vm_id_t)args->arg1, current);
+ (ffa_id_t)args->arg1, current);
return true;
case FFA_NOTIFICATION_BIND_32:
*args = api_ffa_notification_update_bindings(
@@ -1390,7 +1390,7 @@
void handle_system_register_access(uintreg_t esr_el2)
{
struct vcpu *vcpu = current();
- ffa_vm_id_t vm_id = vcpu->vm->id;
+ ffa_id_t vm_id = vcpu->vm->id;
uintreg_t ec = GET_ESR_EC(esr_el2);
CHECK(ec == EC_MSR);