Lines Matching refs:guestdbg
67 if (vcpu->arch.guestdbg.nr_hw_bp <= 0 || in enable_all_hw_bp()
68 vcpu->arch.guestdbg.hw_bp_info == NULL) in enable_all_hw_bp()
79 for (i = 0; i < vcpu->arch.guestdbg.nr_hw_bp; i++) { in enable_all_hw_bp()
80 start = vcpu->arch.guestdbg.hw_bp_info[i].addr; in enable_all_hw_bp()
81 len = vcpu->arch.guestdbg.hw_bp_info[i].len; in enable_all_hw_bp()
107 if (vcpu->arch.guestdbg.nr_hw_wp <= 0 || in enable_all_hw_wp()
108 vcpu->arch.guestdbg.hw_wp_info == NULL) in enable_all_hw_wp()
121 for (i = 0; i < vcpu->arch.guestdbg.nr_hw_wp; i++) { in enable_all_hw_wp()
122 start = vcpu->arch.guestdbg.hw_wp_info[i].addr; in enable_all_hw_wp()
123 len = vcpu->arch.guestdbg.hw_wp_info[i].len; in enable_all_hw_wp()
132 vcpu->arch.guestdbg.cr0 = vcpu->arch.sie_block->gcr[0]; in kvm_s390_backup_guest_per_regs()
133 vcpu->arch.guestdbg.cr9 = vcpu->arch.sie_block->gcr[9]; in kvm_s390_backup_guest_per_regs()
134 vcpu->arch.guestdbg.cr10 = vcpu->arch.sie_block->gcr[10]; in kvm_s390_backup_guest_per_regs()
135 vcpu->arch.guestdbg.cr11 = vcpu->arch.sie_block->gcr[11]; in kvm_s390_backup_guest_per_regs()
140 vcpu->arch.sie_block->gcr[0] = vcpu->arch.guestdbg.cr0; in kvm_s390_restore_guest_per_regs()
141 vcpu->arch.sie_block->gcr[9] = vcpu->arch.guestdbg.cr9; in kvm_s390_restore_guest_per_regs()
142 vcpu->arch.sie_block->gcr[10] = vcpu->arch.guestdbg.cr10; in kvm_s390_restore_guest_per_regs()
143 vcpu->arch.sie_block->gcr[11] = vcpu->arch.guestdbg.cr11; in kvm_s390_restore_guest_per_regs()
270 vcpu->arch.guestdbg.nr_hw_bp = nr_bp; in kvm_s390_import_bp_data()
271 vcpu->arch.guestdbg.hw_bp_info = bp_info; in kvm_s390_import_bp_data()
272 vcpu->arch.guestdbg.nr_hw_wp = nr_wp; in kvm_s390_import_bp_data()
273 vcpu->arch.guestdbg.hw_wp_info = wp_info; in kvm_s390_import_bp_data()
287 for (i = 0; i < vcpu->arch.guestdbg.nr_hw_wp; i++) { in kvm_s390_clear_bp_data()
288 hw_wp_info = &vcpu->arch.guestdbg.hw_wp_info[i]; in kvm_s390_clear_bp_data()
292 kfree(vcpu->arch.guestdbg.hw_wp_info); in kvm_s390_clear_bp_data()
293 vcpu->arch.guestdbg.hw_wp_info = NULL; in kvm_s390_clear_bp_data()
295 kfree(vcpu->arch.guestdbg.hw_bp_info); in kvm_s390_clear_bp_data()
296 vcpu->arch.guestdbg.hw_bp_info = NULL; in kvm_s390_clear_bp_data()
298 vcpu->arch.guestdbg.nr_hw_wp = 0; in kvm_s390_clear_bp_data()
299 vcpu->arch.guestdbg.nr_hw_bp = 0; in kvm_s390_clear_bp_data()
316 struct kvm_hw_bp_info_arch *bp_info = vcpu->arch.guestdbg.hw_bp_info; in find_hw_bp()
319 if (vcpu->arch.guestdbg.nr_hw_bp == 0) in find_hw_bp()
322 for (i = 0; i < vcpu->arch.guestdbg.nr_hw_bp; i++) { in find_hw_bp()
344 if (vcpu->arch.guestdbg.nr_hw_wp == 0) in any_wp_changed()
347 for (i = 0; i < vcpu->arch.guestdbg.nr_hw_wp; i++) { in any_wp_changed()
348 wp_info = &vcpu->arch.guestdbg.hw_wp_info[i]; in any_wp_changed()
398 vcpu->arch.guestdbg.nr_hw_wp > 0) { in debug_exit_required()
407 vcpu->arch.guestdbg.nr_hw_bp > 0) { in debug_exit_required()
413 vcpu->arch.guestdbg.last_bp = addr; in debug_exit_required()
418 if (bp_info && vcpu->arch.guestdbg.last_bp != peraddr) { in debug_exit_required()