Add the shared state used by the in-kernel VBS VTL call/return handlers: vtl_call_ca - guest-physical address of the shared calling area vtl_call_pending - a call arrived while the secure plane was booting vtl_plane_ready - the secure plane has parked in its VTL return The fields live in struct kvm_vcpu_common so they are shared across a logical CPU's plane vCPUs. --- include/linux/kvm_host.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h index a61524ab0d94..61bb59c50ae6 100644 --- a/include/linux/kvm_host.h +++ b/include/linux/kvm_host.h @@ -386,6 +386,11 @@ struct kvm_vcpu_common { bool plane_switch; + /* VBS VTL-call state, shared across this CPU's plane vCPUs. */ + gpa_t vtl_call_ca; + bool vtl_call_pending; + bool vtl_plane_ready; + struct kvm_vcpu_arch_common arch; }; -- 2.55.0