diff options
| author | Eric Auger <eric.auger@redhat.com> | 2017-04-13 03:06:20 -0400 |
|---|---|---|
| committer | Christoffer Dall <cdall@linaro.org> | 2017-05-08 08:35:04 -0400 |
| commit | 71afe470e20db133b30730cfa856e5d6854312e9 (patch) | |
| tree | ed474996951d6e6be477c076768f32ecf29780ce /include/kvm | |
| parent | 0979bfa69421279459b4516542503f1d577d2ec5 (diff) | |
KVM: arm64: vgic-its: Introduce migration ABI infrastructure
We plan to support different migration ABIs, ie. characterizing
the ITS table layout format in guest RAM. For example, a new ABI
will be needed if vLPIs get supported for nested use case.
So let's introduce an array of supported ABIs (at the moment a single
ABI is supported though). The following characteristics are foreseen
to vary with the ABI: size of table entries, save/restore operation,
the way abi settings are applied.
By default the MAX_ABI_REV is applied on its creation. In subsequent
patches we will introduce a way for the userspace to change the ABI
in use.
The entry sizes now are set according to the ABI version and not
hardcoded anymore.
Signed-off-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Christoffer Dall <cdall@linaro.org>
Diffstat (limited to 'include/kvm')
| -rw-r--r-- | include/kvm/arm_vgic.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/kvm/arm_vgic.h b/include/kvm/arm_vgic.h index 26ed4fb896bb..fabcc649e2ce 100644 --- a/include/kvm/arm_vgic.h +++ b/include/kvm/arm_vgic.h | |||
| @@ -162,6 +162,9 @@ struct vgic_its { | |||
| 162 | u32 creadr; | 162 | u32 creadr; |
| 163 | u32 cwriter; | 163 | u32 cwriter; |
| 164 | 164 | ||
| 165 | /* migration ABI revision in use */ | ||
| 166 | u32 abi_rev; | ||
| 167 | |||
| 165 | /* Protects the device and collection lists */ | 168 | /* Protects the device and collection lists */ |
| 166 | struct mutex its_lock; | 169 | struct mutex its_lock; |
| 167 | struct list_head device_list; | 170 | struct list_head device_list; |
