Lines Matching refs:wp_info

176 			    struct kvm_hw_wp_info_arch *wp_info)  in __import_wp_info()  argument
179 wp_info->len = bp_data->len; in __import_wp_info()
180 wp_info->addr = bp_data->addr; in __import_wp_info()
181 wp_info->phys_addr = bp_data->phys_addr; in __import_wp_info()
182 wp_info->old_data = NULL; in __import_wp_info()
184 if (wp_info->len < 0 || wp_info->len > MAX_WP_SIZE) in __import_wp_info()
187 wp_info->old_data = kmalloc(bp_data->len, GFP_KERNEL_ACCOUNT); in __import_wp_info()
188 if (!wp_info->old_data) in __import_wp_info()
191 ret = read_guest_abs(vcpu, wp_info->phys_addr, wp_info->old_data, in __import_wp_info()
192 wp_info->len); in __import_wp_info()
194 kfree(wp_info->old_data); in __import_wp_info()
195 wp_info->old_data = NULL; in __import_wp_info()
208 struct kvm_hw_wp_info_arch *wp_info = NULL; in kvm_s390_import_bp_data() local
235 wp_info = kmalloc_array(nr_wp, in kvm_s390_import_bp_data()
236 sizeof(*wp_info), in kvm_s390_import_bp_data()
238 if (!wp_info) { in kvm_s390_import_bp_data()
257 &wp_info[nr_wp]); in kvm_s390_import_bp_data()
273 vcpu->arch.guestdbg.hw_wp_info = wp_info; in kvm_s390_import_bp_data()
277 kfree(wp_info); in kvm_s390_import_bp_data()
341 struct kvm_hw_wp_info_arch *wp_info = NULL; in any_wp_changed() local
348 wp_info = &vcpu->arch.guestdbg.hw_wp_info[i]; in any_wp_changed()
349 if (!wp_info || !wp_info->old_data || wp_info->len <= 0) in any_wp_changed()
352 temp = kmalloc(wp_info->len, GFP_KERNEL_ACCOUNT); in any_wp_changed()
357 if (!read_guest_abs(vcpu, wp_info->phys_addr, temp, in any_wp_changed()
358 wp_info->len)) { in any_wp_changed()
359 if (memcmp(temp, wp_info->old_data, wp_info->len)) { in any_wp_changed()
361 return wp_info; in any_wp_changed()
392 struct kvm_hw_wp_info_arch *wp_info = NULL; in debug_exit_required() local
399 wp_info = any_wp_changed(vcpu); in debug_exit_required()
400 if (wp_info) { in debug_exit_required()
401 debug_exit->addr = wp_info->addr; in debug_exit_required()