ANDROID: KVM: arm64: Refcount shadow structs on vcpu_{load/put}()
Nothing currently prevents the host from tearing down a shadow VM while a vCPU is loaded, which is likely to corrupt the hypervisor state. To prevent this, refcount the shadow vm structs on vcpu_load() and vcpu_put() and make sure to only allow tearing down a shadow VM when it's refcount is 0. Signed-off-by:Quentin Perret <qperret@google.com> Bug: 209580772 Change-Id: I2860c3297516f8af6ff4a0d4c91127af4a34b62e Signed-off-by:
Will Deacon <willdeacon@google.com>
Loading
Please sign in to comment