File tree Expand file tree Collapse file tree 5 files changed +1
-16
lines changed Expand file tree Collapse file tree 5 files changed +1
-16
lines changed Original file line number Diff line number Diff line change 26
26
#include <asm/fpsimd.h>
27
27
#include <asm/kvm.h>
28
28
#include <asm/kvm_asm.h>
29
- #include <asm/thread_info.h>
30
29
31
30
#define __KVM_HAVE_ARCH_INTC_INITIALIZED
32
31
@@ -321,7 +320,6 @@ struct kvm_vcpu_arch {
321
320
struct kvm_guest_debug_arch vcpu_debug_state ;
322
321
struct kvm_guest_debug_arch external_debug_state ;
323
322
324
- struct thread_info * host_thread_info ; /* hyp VA */
325
323
struct user_fpsimd_state * host_fpsimd_state ; /* hyp VA */
326
324
327
325
struct {
Original file line number Diff line number Diff line change 7
7
*/
8
8
#include <linux/irqflags.h>
9
9
#include <linux/sched.h>
10
- #include <linux/thread_info.h>
11
10
#include <linux/kvm_host.h>
12
11
#include <asm/fpsimd.h>
13
12
#include <asm/kvm_asm.h>
@@ -28,17 +27,9 @@ int kvm_arch_vcpu_run_map_fp(struct kvm_vcpu *vcpu)
28
27
{
29
28
int ret ;
30
29
31
- struct thread_info * ti = & current -> thread_info ;
32
30
struct user_fpsimd_state * fpsimd = & current -> thread .uw .fpsimd_state ;
33
31
34
- /*
35
- * Make sure the host task thread flags and fpsimd state are
36
- * visible to hyp:
37
- */
38
- ret = create_hyp_mappings (ti , ti + 1 , PAGE_HYP );
39
- if (ret )
40
- goto error ;
41
-
32
+ /* Make sure the host task fpsimd state is visible to hyp: */
42
33
ret = create_hyp_mappings (fpsimd , fpsimd + 1 , PAGE_HYP );
43
34
if (ret )
44
35
goto error ;
@@ -54,7 +45,6 @@ int kvm_arch_vcpu_run_map_fp(struct kvm_vcpu *vcpu)
54
45
goto error ;
55
46
}
56
47
57
- vcpu -> arch .host_thread_info = kern_hyp_va (ti );
58
48
vcpu -> arch .host_fpsimd_state = kern_hyp_va (fpsimd );
59
49
error :
60
50
return ret ;
Original file line number Diff line number Diff line change 29
29
#include <asm/fpsimd.h>
30
30
#include <asm/debug-monitors.h>
31
31
#include <asm/processor.h>
32
- #include <asm/thread_info.h>
33
32
34
33
struct kvm_exception_table_entry {
35
34
int insn , fixup ;
Original file line number Diff line number Diff line change 25
25
#include <asm/fpsimd.h>
26
26
#include <asm/debug-monitors.h>
27
27
#include <asm/processor.h>
28
- #include <asm/thread_info.h>
29
28
30
29
#include <nvhe/fixed_config.h>
31
30
#include <nvhe/mem_protect.h>
Original file line number Diff line number Diff line change 24
24
#include <asm/fpsimd.h>
25
25
#include <asm/debug-monitors.h>
26
26
#include <asm/processor.h>
27
- #include <asm/thread_info.h>
28
27
29
28
/* VHE specific context */
30
29
DEFINE_PER_CPU (struct kvm_host_data , kvm_host_data );
You can’t perform that action at this time.
0 commit comments