Lines Matching refs:data
64 struct hvm_asid_data *data = &this_cpu(hvm_asid_data); in hvm_asid_init() local
66 data->max_asid = nasids - 1; in hvm_asid_init()
67 data->disabled = !opt_asid_enabled || (nasids <= 1); in hvm_asid_init()
69 if ( g_disabled != data->disabled ) in hvm_asid_init()
71 printk("HVM: ASIDs %sabled.\n", data->disabled ? "dis" : "en"); in hvm_asid_init()
73 g_disabled = data->disabled; in hvm_asid_init()
77 data->core_asid_generation = 1; in hvm_asid_init()
80 data->next_asid = 1; in hvm_asid_init()
96 struct hvm_asid_data *data = &this_cpu(hvm_asid_data); in hvm_asid_flush_core() local
98 if ( data->disabled ) in hvm_asid_flush_core()
101 if ( likely(++data->core_asid_generation != 0) ) in hvm_asid_flush_core()
110 data->disabled = 1; in hvm_asid_flush_core()
115 struct hvm_asid_data *data = &this_cpu(hvm_asid_data); in hvm_asid_handle_vmenter() local
119 if ( data->disabled ) in hvm_asid_handle_vmenter()
123 if ( asid->generation == data->core_asid_generation ) in hvm_asid_handle_vmenter()
127 if ( unlikely(data->next_asid > data->max_asid) ) in hvm_asid_handle_vmenter()
130 data->next_asid = 1; in hvm_asid_handle_vmenter()
131 if ( data->disabled ) in hvm_asid_handle_vmenter()
136 asid->asid = data->next_asid++; in hvm_asid_handle_vmenter()
137 asid->generation = data->core_asid_generation; in hvm_asid_handle_vmenter()