Sign in
android-kvm
/
kvm-unit-tests
/
refs/heads/tabba/ffa-tests
/
.
/
lib
/
arm64
/
ffa_utils.c
blob: 5ad75d5d227beeca13733dc75fd454c2bd4eb7ff [
file
] [
log
] [
blame
] [
edit
]
#include
"ffa_utils.h"
ffa_vm_id_t
get_vm_id
(
void
)
{
struct
ffa_value ret
;
ret
=
ffa_id_get
();
ASSERT_EQ
(
ret
.
func
,
FFA_SUCCESS_32
);
return
ret
.
arg2
;
}
bool
is_primary_vm
(
void
)
{
return
get_vm_id
()
==
PRIMARY_VM_ID
;
}