Hyp no longer needs access to the host task's thread flags so remove the
corresponding hyp mapping.

Signed-off-by: Andrew Scull <asc...@google.com>
Cc: Dave Martin <dave.mar...@arm.com>
---
 arch/arm64/include/asm/kvm_host.h |  2 --
 arch/arm64/kvm/fpsimd.c           | 11 +----------
 2 files changed, 1 insertion(+), 12 deletions(-)

diff --git a/arch/arm64/include/asm/kvm_host.h 
b/arch/arm64/include/asm/kvm_host.h
index f6a478d3a902..8a559fa2f237 100644
--- a/arch/arm64/include/asm/kvm_host.h
+++ b/arch/arm64/include/asm/kvm_host.h
@@ -26,7 +26,6 @@
 #include <asm/fpsimd.h>
 #include <asm/kvm.h>
 #include <asm/kvm_asm.h>
-#include <asm/thread_info.h>
 
 #define __KVM_HAVE_ARCH_INTC_INITIALIZED
 
@@ -307,7 +306,6 @@ struct kvm_vcpu_arch {
        struct kvm_guest_debug_arch vcpu_debug_state;
        struct kvm_guest_debug_arch external_debug_state;
 
-       struct thread_info *host_thread_info;   /* hyp VA */
        struct user_fpsimd_state *host_fpsimd_state;    /* hyp VA */
 
        struct {
diff --git a/arch/arm64/kvm/fpsimd.c b/arch/arm64/kvm/fpsimd.c
index 0c5e79be34d5..3e5a02137643 100644
--- a/arch/arm64/kvm/fpsimd.c
+++ b/arch/arm64/kvm/fpsimd.c
@@ -27,22 +27,13 @@ int kvm_arch_vcpu_run_map_fp(struct kvm_vcpu *vcpu)
 {
        int ret;
 
-       struct thread_info *ti = &current->thread_info;
        struct user_fpsimd_state *fpsimd = &current->thread.uw.fpsimd_state;
 
-       /*
-        * Make sure the host task thread flags and fpsimd state are
-        * visible to hyp:
-        */
-       ret = create_hyp_mappings(ti, ti + 1, PAGE_HYP);
-       if (ret)
-               goto error;
-
+       /* Make sure the host task fpsimd state is visible to hyp: */
        ret = create_hyp_mappings(fpsimd, fpsimd + 1, PAGE_HYP);
        if (ret)
                goto error;
 
-       vcpu->arch.host_thread_info = kern_hyp_va(ti);
        vcpu->arch.host_fpsimd_state = kern_hyp_va(fpsimd);
 error:
        return ret;
-- 
2.30.1.766.gb4fecdf3b7-goog

_______________________________________________
kvmarm mailing list
kvmarm@lists.cs.columbia.edu
https://lists.cs.columbia.edu/mailman/listinfo/kvmarm

Reply via email to