Lines Matching refs:arch
77 printk("pc: %08lx msr: %08llx\n", vcpu->arch.pc, vcpu->arch.shared->msr); in kvmppc_dump_vcpu()
78 printk("lr: %08lx ctr: %08lx\n", vcpu->arch.lr, vcpu->arch.ctr); in kvmppc_dump_vcpu()
79 printk("srr0: %08llx srr1: %08llx\n", vcpu->arch.shared->srr0, in kvmppc_dump_vcpu()
80 vcpu->arch.shared->srr1); in kvmppc_dump_vcpu()
82 printk("exceptions: %08lx\n", vcpu->arch.pending_exceptions); in kvmppc_dump_vcpu()
99 vcpu->arch.shadow_msr &= ~MSR_SPE; in kvmppc_vcpu_disable_spe()
108 vcpu->arch.shadow_msr |= MSR_SPE; in kvmppc_vcpu_enable_spe()
114 if (vcpu->arch.shared->msr & MSR_SPE) { in kvmppc_vcpu_sync_spe()
115 if (!(vcpu->arch.shadow_msr & MSR_SPE)) in kvmppc_vcpu_sync_spe()
117 } else if (vcpu->arch.shadow_msr & MSR_SPE) { in kvmppc_vcpu_sync_spe()
141 load_fp_state(&vcpu->arch.fp); in kvmppc_load_guest_fp()
142 current->thread.fp_save_area = &vcpu->arch.fp; in kvmppc_load_guest_fp()
166 vcpu->arch.shadow_msr &= ~MSR_FP; in kvmppc_vcpu_sync_fpu()
167 vcpu->arch.shadow_msr |= vcpu->arch.shared->msr & MSR_FP; in kvmppc_vcpu_sync_fpu()
182 load_vr_state(&vcpu->arch.vr); in kvmppc_load_guest_altivec()
183 current->thread.vr_save_area = &vcpu->arch.vr; in kvmppc_load_guest_altivec()
209 vcpu->arch.shadow_msr &= ~MSR_DE; in kvmppc_vcpu_sync_debug()
210 vcpu->arch.shadow_msr |= vcpu->arch.shared->msr & MSR_DE; in kvmppc_vcpu_sync_debug()
220 vcpu->arch.shared->msr |= MSR_DE; in kvmppc_vcpu_sync_debug()
222 vcpu->arch.shadow_msr |= MSR_DE; in kvmppc_vcpu_sync_debug()
223 vcpu->arch.shared->msr &= ~MSR_DE; in kvmppc_vcpu_sync_debug()
234 u32 old_msr = vcpu->arch.shared->msr; in kvmppc_set_msr()
240 vcpu->arch.shared->msr = new_msr; in kvmppc_set_msr()
252 set_bit(priority, &vcpu->arch.pending_exceptions); in kvmppc_booke_queue_irqprio()
258 vcpu->arch.queued_dear = dear_flags; in kvmppc_core_queue_dtlb_miss()
259 vcpu->arch.queued_esr = esr_flags; in kvmppc_core_queue_dtlb_miss()
266 vcpu->arch.queued_dear = dear_flags; in kvmppc_core_queue_data_storage()
267 vcpu->arch.queued_esr = esr_flags; in kvmppc_core_queue_data_storage()
278 vcpu->arch.queued_esr = esr_flags; in kvmppc_core_queue_inst_storage()
285 vcpu->arch.queued_dear = dear_flags; in kvmppc_core_queue_alignment()
286 vcpu->arch.queued_esr = esr_flags; in kvmppc_core_queue_alignment()
292 vcpu->arch.queued_esr = esr_flags; in kvmppc_core_queue_program()
303 return test_bit(BOOKE_IRQPRIO_DECREMENTER, &vcpu->arch.pending_exceptions); in kvmppc_core_pending_dec()
308 clear_bit(BOOKE_IRQPRIO_DECREMENTER, &vcpu->arch.pending_exceptions); in kvmppc_core_dequeue_dec()
324 clear_bit(BOOKE_IRQPRIO_EXTERNAL, &vcpu->arch.pending_exceptions); in kvmppc_core_dequeue_external()
325 clear_bit(BOOKE_IRQPRIO_EXTERNAL_LEVEL, &vcpu->arch.pending_exceptions); in kvmppc_core_dequeue_external()
335 clear_bit(BOOKE_IRQPRIO_WATCHDOG, &vcpu->arch.pending_exceptions); in kvmppc_core_dequeue_watchdog()
345 clear_bit(BOOKE_IRQPRIO_DEBUG, &vcpu->arch.pending_exceptions); in kvmppc_core_dequeue_debug()
356 vcpu->arch.csrr0 = srr0; in set_guest_csrr()
357 vcpu->arch.csrr1 = srr1; in set_guest_csrr()
363 vcpu->arch.dsrr0 = srr0; in set_guest_dsrr()
364 vcpu->arch.dsrr1 = srr1; in set_guest_dsrr()
372 vcpu->arch.mcsrr0 = srr0; in set_guest_mcsrr()
373 vcpu->arch.mcsrr1 = srr1; in set_guest_mcsrr()
383 ulong crit_raw = vcpu->arch.shared->critical; in kvmppc_booke_irqprio_deliver()
388 ulong new_msr = vcpu->arch.shared->msr; in kvmppc_booke_irqprio_deliver()
391 if (!(vcpu->arch.shared->msr & MSR_SF)) { in kvmppc_booke_irqprio_deliver()
399 crit = crit && !(vcpu->arch.shared->msr & MSR_PR); in kvmppc_booke_irqprio_deliver()
406 if ((priority == BOOKE_IRQPRIO_EXTERNAL) && vcpu->arch.epr_flags) in kvmppc_booke_irqprio_deliver()
439 allowed = vcpu->arch.shared->msr & MSR_CE; in kvmppc_booke_irqprio_deliver()
445 allowed = vcpu->arch.shared->msr & MSR_ME; in kvmppc_booke_irqprio_deliver()
455 allowed = vcpu->arch.shared->msr & MSR_EE; in kvmppc_booke_irqprio_deliver()
461 allowed = vcpu->arch.shared->msr & MSR_DE; in kvmppc_booke_irqprio_deliver()
475 set_guest_srr(vcpu, vcpu->arch.pc, in kvmppc_booke_irqprio_deliver()
476 vcpu->arch.shared->msr); in kvmppc_booke_irqprio_deliver()
479 set_guest_csrr(vcpu, vcpu->arch.pc, in kvmppc_booke_irqprio_deliver()
480 vcpu->arch.shared->msr); in kvmppc_booke_irqprio_deliver()
483 set_guest_dsrr(vcpu, vcpu->arch.pc, in kvmppc_booke_irqprio_deliver()
484 vcpu->arch.shared->msr); in kvmppc_booke_irqprio_deliver()
487 set_guest_mcsrr(vcpu, vcpu->arch.pc, in kvmppc_booke_irqprio_deliver()
488 vcpu->arch.shared->msr); in kvmppc_booke_irqprio_deliver()
492 vcpu->arch.pc = vcpu->arch.ivpr | vcpu->arch.ivor[priority]; in kvmppc_booke_irqprio_deliver()
494 kvmppc_set_esr(vcpu, vcpu->arch.queued_esr); in kvmppc_booke_irqprio_deliver()
496 kvmppc_set_dar(vcpu, vcpu->arch.queued_dear); in kvmppc_booke_irqprio_deliver()
498 if (vcpu->arch.epr_flags & KVMPPC_EPR_USER) in kvmppc_booke_irqprio_deliver()
500 else if (vcpu->arch.epr_flags & KVMPPC_EPR_KERNEL) { in kvmppc_booke_irqprio_deliver()
501 BUG_ON(vcpu->arch.irq_type != KVMPPC_IRQ_MPIC); in kvmppc_booke_irqprio_deliver()
508 if (vcpu->arch.epcr & SPRN_EPCR_ICM) in kvmppc_booke_irqprio_deliver()
514 clear_bit(priority, &vcpu->arch.pending_exceptions); in kvmppc_booke_irqprio_deliver()
523 if (vcpu->arch.pending_exceptions & BOOKE_IRQMASK_EE) in kvmppc_booke_irqprio_deliver()
525 if (vcpu->arch.pending_exceptions & BOOKE_IRQMASK_CE) in kvmppc_booke_irqprio_deliver()
527 if (vcpu->arch.pending_exceptions & BOOKE_IRQPRIO_MACHINE_CHECK) in kvmppc_booke_irqprio_deliver()
543 u32 period = TCR_GET_WP(vcpu->arch.tcr); in watchdog_next_timeout()
574 if ((vcpu->arch.tsr & (TSR_ENW | TSR_WIS)) != (TSR_ENW | TSR_WIS)) in arm_next_watchdog()
577 spin_lock_irqsave(&vcpu->arch.wdt_lock, flags); in arm_next_watchdog()
584 mod_timer(&vcpu->arch.wdt_timer, jiffies + nr_jiffies); in arm_next_watchdog()
586 del_timer(&vcpu->arch.wdt_timer); in arm_next_watchdog()
587 spin_unlock_irqrestore(&vcpu->arch.wdt_lock, flags); in arm_next_watchdog()
597 new_tsr = tsr = vcpu->arch.tsr; in kvmppc_watchdog_func()
609 } while (cmpxchg(&vcpu->arch.tsr, tsr, new_tsr) != tsr); in kvmppc_watchdog_func()
621 if (final && (vcpu->arch.tcr & TCR_WRC_MASK) && in kvmppc_watchdog_func()
622 vcpu->arch.watchdog_enabled) { in kvmppc_watchdog_func()
640 if ((vcpu->arch.tcr & TCR_DIE) && (vcpu->arch.tsr & TSR_DIS)) in update_timer_ints()
645 if ((vcpu->arch.tcr & TCR_WIE) && (vcpu->arch.tsr & TSR_WIS)) in update_timer_ints()
653 unsigned long *pending = &vcpu->arch.pending_exceptions; in kvmppc_core_check_exceptions()
667 vcpu->arch.shared->int_pending = !!*pending; in kvmppc_core_check_exceptions()
683 if (vcpu->arch.shared->msr & MSR_WE) { in kvmppc_core_prepare_to_enter()
714 vcpu->arch.epr_needed = true; in kvmppc_core_check_requests()
727 if (!vcpu->arch.sane) { in kvmppc_vcpu_run()
762 debug = vcpu->arch.dbg_reg; in kvmppc_vcpu_run()
765 current->thread.debug = vcpu->arch.dbg_reg; in kvmppc_vcpu_run()
767 vcpu->arch.pgdir = current->mm->pgd; in kvmppc_vcpu_run()
810 __func__, vcpu->arch.pc, vcpu->arch.last_inst); in emulation_exit()
814 run->hw.hardware_exit_reason |= vcpu->arch.last_inst; in emulation_exit()
828 struct debug_reg *dbg_reg = &(vcpu->arch.dbg_reg); in kvmppc_handle_debug()
829 u32 dbsr = vcpu->arch.dbsr; in kvmppc_handle_debug()
842 if (dbsr && (vcpu->arch.shared->msr & MSR_DE) && in kvmppc_handle_debug()
843 (vcpu->arch.dbg_reg.dbcr0 & DBCR0_IDM)) in kvmppc_handle_debug()
847 if ((dbsr & DBSR_TIE) && !(vcpu->arch.shared->msr & MSR_DE)) in kvmppc_handle_debug()
857 vcpu->arch.dbsr = 0; in kvmppc_handle_debug()
858 run->debug.arch.status = 0; in kvmppc_handle_debug()
859 run->debug.arch.address = vcpu->arch.pc; in kvmppc_handle_debug()
862 run->debug.arch.status |= KVMPPC_DEBUG_BREAKPOINT; in kvmppc_handle_debug()
865 run->debug.arch.status |= KVMPPC_DEBUG_WATCH_WRITE; in kvmppc_handle_debug()
867 run->debug.arch.status |= KVMPPC_DEBUG_WATCH_READ; in kvmppc_handle_debug()
869 run->debug.arch.address = dbg_reg->dac1; in kvmppc_handle_debug()
871 run->debug.arch.address = dbg_reg->dac2; in kvmppc_handle_debug()
939 vcpu->arch.dbsr = mfspr(SPRN_DBSR); in kvmppc_restart_interrupt()
954 __func__, vcpu->arch.pc); in kvmppc_resume_inst_load()
1091 if (vcpu->arch.shared->msr & (MSR_PR | MSR_GS)) { in kvmppc_handle_exit()
1100 kvmppc_core_queue_program(vcpu, vcpu->arch.fault_esr); in kvmppc_handle_exit()
1117 if (vcpu->arch.shared->msr & MSR_SPE) in kvmppc_handle_exit()
1152 __func__, exit_nr, vcpu->arch.pc); in kvmppc_handle_exit()
1175 kvmppc_core_queue_data_storage(vcpu, vcpu->arch.fault_dear, in kvmppc_handle_exit()
1176 vcpu->arch.fault_esr); in kvmppc_handle_exit()
1182 kvmppc_core_queue_inst_storage(vcpu, vcpu->arch.fault_esr); in kvmppc_handle_exit()
1188 kvmppc_core_queue_alignment(vcpu, vcpu->arch.fault_dear, in kvmppc_handle_exit()
1189 vcpu->arch.fault_esr); in kvmppc_handle_exit()
1195 if (!(vcpu->arch.shared->msr & MSR_PR)) { in kvmppc_handle_exit()
1209 if (!(vcpu->arch.shared->msr & MSR_PR) && in kvmppc_handle_exit()
1224 unsigned long eaddr = vcpu->arch.fault_dear; in kvmppc_handle_exit()
1230 if (!(vcpu->arch.shared->msr & MSR_PR) && in kvmppc_handle_exit()
1231 (eaddr & PAGE_MASK) == vcpu->arch.magic_page_ea) { in kvmppc_handle_exit()
1245 vcpu->arch.fault_dear, in kvmppc_handle_exit()
1246 vcpu->arch.fault_esr); in kvmppc_handle_exit()
1271 vcpu->arch.paddr_accessed = gpaddr; in kvmppc_handle_exit()
1272 vcpu->arch.vaddr_accessed = eaddr; in kvmppc_handle_exit()
1282 unsigned long eaddr = vcpu->arch.pc; in kvmppc_handle_exit()
1358 u32 old_tsr = vcpu->arch.tsr; in kvmppc_set_tsr()
1360 vcpu->arch.tsr = new_tsr; in kvmppc_set_tsr()
1362 if ((old_tsr ^ vcpu->arch.tsr) & (TSR_ENW | TSR_WIS)) in kvmppc_set_tsr()
1374 vcpu->arch.pc = 0; in kvm_arch_vcpu_setup()
1375 vcpu->arch.shared->pir = vcpu->vcpu_id; in kvm_arch_vcpu_setup()
1380 vcpu->arch.shadow_msr = MSR_USER | MSR_IS | MSR_DS; in kvm_arch_vcpu_setup()
1381 vcpu->arch.shadow_pid = 1; in kvm_arch_vcpu_setup()
1382 vcpu->arch.shared->msr = 0; in kvm_arch_vcpu_setup()
1387 vcpu->arch.ivpr = 0x55550000; in kvm_arch_vcpu_setup()
1389 vcpu->arch.ivor[i] = 0x7700 | i * 4; in kvm_arch_vcpu_setup()
1401 spin_lock_init(&vcpu->arch.wdt_lock); in kvmppc_subarch_vcpu_init()
1402 setup_timer(&vcpu->arch.wdt_timer, kvmppc_watchdog_func, in kvmppc_subarch_vcpu_init()
1415 del_timer_sync(&vcpu->arch.wdt_timer); in kvmppc_subarch_vcpu_uninit()
1422 regs->pc = vcpu->arch.pc; in kvm_arch_vcpu_ioctl_get_regs()
1424 regs->ctr = vcpu->arch.ctr; in kvm_arch_vcpu_ioctl_get_regs()
1425 regs->lr = vcpu->arch.lr; in kvm_arch_vcpu_ioctl_get_regs()
1427 regs->msr = vcpu->arch.shared->msr; in kvm_arch_vcpu_ioctl_get_regs()
1430 regs->pid = vcpu->arch.pid; in kvm_arch_vcpu_ioctl_get_regs()
1450 vcpu->arch.pc = regs->pc; in kvm_arch_vcpu_ioctl_set_regs()
1452 vcpu->arch.ctr = regs->ctr; in kvm_arch_vcpu_ioctl_set_regs()
1453 vcpu->arch.lr = regs->lr; in kvm_arch_vcpu_ioctl_set_regs()
1481 sregs->u.e.csrr0 = vcpu->arch.csrr0; in get_sregs_base()
1482 sregs->u.e.csrr1 = vcpu->arch.csrr1; in get_sregs_base()
1483 sregs->u.e.mcsr = vcpu->arch.mcsr; in get_sregs_base()
1486 sregs->u.e.tsr = vcpu->arch.tsr; in get_sregs_base()
1487 sregs->u.e.tcr = vcpu->arch.tcr; in get_sregs_base()
1490 sregs->u.e.vrsave = vcpu->arch.vrsave; in get_sregs_base()
1499 vcpu->arch.csrr0 = sregs->u.e.csrr0; in set_sregs_base()
1500 vcpu->arch.csrr1 = sregs->u.e.csrr1; in set_sregs_base()
1501 vcpu->arch.mcsr = sregs->u.e.mcsr; in set_sregs_base()
1504 vcpu->arch.vrsave = sregs->u.e.vrsave; in set_sregs_base()
1508 vcpu->arch.dec = sregs->u.e.dec; in set_sregs_base()
1524 sregs->u.e.mcsrr0 = vcpu->arch.mcsrr0; in get_sregs_arch206()
1525 sregs->u.e.mcsrr1 = vcpu->arch.mcsrr1; in get_sregs_arch206()
1526 sregs->u.e.decar = vcpu->arch.decar; in get_sregs_arch206()
1527 sregs->u.e.ivpr = vcpu->arch.ivpr; in get_sregs_arch206()
1539 vcpu->arch.mcsrr0 = sregs->u.e.mcsrr0; in set_sregs_arch206()
1540 vcpu->arch.mcsrr1 = sregs->u.e.mcsrr1; in set_sregs_arch206()
1541 vcpu->arch.decar = sregs->u.e.decar; in set_sregs_arch206()
1542 vcpu->arch.ivpr = sregs->u.e.ivpr; in set_sregs_arch206()
1551 sregs->u.e.ivor_low[0] = vcpu->arch.ivor[BOOKE_IRQPRIO_CRITICAL]; in kvmppc_get_sregs_ivor()
1552 sregs->u.e.ivor_low[1] = vcpu->arch.ivor[BOOKE_IRQPRIO_MACHINE_CHECK]; in kvmppc_get_sregs_ivor()
1553 sregs->u.e.ivor_low[2] = vcpu->arch.ivor[BOOKE_IRQPRIO_DATA_STORAGE]; in kvmppc_get_sregs_ivor()
1554 sregs->u.e.ivor_low[3] = vcpu->arch.ivor[BOOKE_IRQPRIO_INST_STORAGE]; in kvmppc_get_sregs_ivor()
1555 sregs->u.e.ivor_low[4] = vcpu->arch.ivor[BOOKE_IRQPRIO_EXTERNAL]; in kvmppc_get_sregs_ivor()
1556 sregs->u.e.ivor_low[5] = vcpu->arch.ivor[BOOKE_IRQPRIO_ALIGNMENT]; in kvmppc_get_sregs_ivor()
1557 sregs->u.e.ivor_low[6] = vcpu->arch.ivor[BOOKE_IRQPRIO_PROGRAM]; in kvmppc_get_sregs_ivor()
1558 sregs->u.e.ivor_low[7] = vcpu->arch.ivor[BOOKE_IRQPRIO_FP_UNAVAIL]; in kvmppc_get_sregs_ivor()
1559 sregs->u.e.ivor_low[8] = vcpu->arch.ivor[BOOKE_IRQPRIO_SYSCALL]; in kvmppc_get_sregs_ivor()
1560 sregs->u.e.ivor_low[9] = vcpu->arch.ivor[BOOKE_IRQPRIO_AP_UNAVAIL]; in kvmppc_get_sregs_ivor()
1561 sregs->u.e.ivor_low[10] = vcpu->arch.ivor[BOOKE_IRQPRIO_DECREMENTER]; in kvmppc_get_sregs_ivor()
1562 sregs->u.e.ivor_low[11] = vcpu->arch.ivor[BOOKE_IRQPRIO_FIT]; in kvmppc_get_sregs_ivor()
1563 sregs->u.e.ivor_low[12] = vcpu->arch.ivor[BOOKE_IRQPRIO_WATCHDOG]; in kvmppc_get_sregs_ivor()
1564 sregs->u.e.ivor_low[13] = vcpu->arch.ivor[BOOKE_IRQPRIO_DTLB_MISS]; in kvmppc_get_sregs_ivor()
1565 sregs->u.e.ivor_low[14] = vcpu->arch.ivor[BOOKE_IRQPRIO_ITLB_MISS]; in kvmppc_get_sregs_ivor()
1566 sregs->u.e.ivor_low[15] = vcpu->arch.ivor[BOOKE_IRQPRIO_DEBUG]; in kvmppc_get_sregs_ivor()
1575 vcpu->arch.ivor[BOOKE_IRQPRIO_CRITICAL] = sregs->u.e.ivor_low[0]; in kvmppc_set_sregs_ivor()
1576 vcpu->arch.ivor[BOOKE_IRQPRIO_MACHINE_CHECK] = sregs->u.e.ivor_low[1]; in kvmppc_set_sregs_ivor()
1577 vcpu->arch.ivor[BOOKE_IRQPRIO_DATA_STORAGE] = sregs->u.e.ivor_low[2]; in kvmppc_set_sregs_ivor()
1578 vcpu->arch.ivor[BOOKE_IRQPRIO_INST_STORAGE] = sregs->u.e.ivor_low[3]; in kvmppc_set_sregs_ivor()
1579 vcpu->arch.ivor[BOOKE_IRQPRIO_EXTERNAL] = sregs->u.e.ivor_low[4]; in kvmppc_set_sregs_ivor()
1580 vcpu->arch.ivor[BOOKE_IRQPRIO_ALIGNMENT] = sregs->u.e.ivor_low[5]; in kvmppc_set_sregs_ivor()
1581 vcpu->arch.ivor[BOOKE_IRQPRIO_PROGRAM] = sregs->u.e.ivor_low[6]; in kvmppc_set_sregs_ivor()
1582 vcpu->arch.ivor[BOOKE_IRQPRIO_FP_UNAVAIL] = sregs->u.e.ivor_low[7]; in kvmppc_set_sregs_ivor()
1583 vcpu->arch.ivor[BOOKE_IRQPRIO_SYSCALL] = sregs->u.e.ivor_low[8]; in kvmppc_set_sregs_ivor()
1584 vcpu->arch.ivor[BOOKE_IRQPRIO_AP_UNAVAIL] = sregs->u.e.ivor_low[9]; in kvmppc_set_sregs_ivor()
1585 vcpu->arch.ivor[BOOKE_IRQPRIO_DECREMENTER] = sregs->u.e.ivor_low[10]; in kvmppc_set_sregs_ivor()
1586 vcpu->arch.ivor[BOOKE_IRQPRIO_FIT] = sregs->u.e.ivor_low[11]; in kvmppc_set_sregs_ivor()
1587 vcpu->arch.ivor[BOOKE_IRQPRIO_WATCHDOG] = sregs->u.e.ivor_low[12]; in kvmppc_set_sregs_ivor()
1588 vcpu->arch.ivor[BOOKE_IRQPRIO_DTLB_MISS] = sregs->u.e.ivor_low[13]; in kvmppc_set_sregs_ivor()
1589 vcpu->arch.ivor[BOOKE_IRQPRIO_ITLB_MISS] = sregs->u.e.ivor_low[14]; in kvmppc_set_sregs_ivor()
1590 vcpu->arch.ivor[BOOKE_IRQPRIO_DEBUG] = sregs->u.e.ivor_low[15]; in kvmppc_set_sregs_ivor()
1598 sregs->pvr = vcpu->arch.pvr; in kvm_arch_vcpu_ioctl_get_sregs()
1602 return vcpu->kvm->arch.kvm_ops->get_sregs(vcpu, sregs); in kvm_arch_vcpu_ioctl_get_sregs()
1610 if (vcpu->arch.pvr != sregs->pvr) in kvm_arch_vcpu_ioctl_set_sregs()
1621 return vcpu->kvm->arch.kvm_ops->set_sregs(vcpu, sregs); in kvm_arch_vcpu_ioctl_set_sregs()
1631 *val = get_reg_val(id, vcpu->arch.dbg_reg.iac1); in kvmppc_get_one_reg()
1634 *val = get_reg_val(id, vcpu->arch.dbg_reg.iac2); in kvmppc_get_one_reg()
1638 *val = get_reg_val(id, vcpu->arch.dbg_reg.iac3); in kvmppc_get_one_reg()
1641 *val = get_reg_val(id, vcpu->arch.dbg_reg.iac4); in kvmppc_get_one_reg()
1645 *val = get_reg_val(id, vcpu->arch.dbg_reg.dac1); in kvmppc_get_one_reg()
1648 *val = get_reg_val(id, vcpu->arch.dbg_reg.dac2); in kvmppc_get_one_reg()
1657 *val = get_reg_val(id, vcpu->arch.epcr); in kvmppc_get_one_reg()
1661 *val = get_reg_val(id, vcpu->arch.tcr); in kvmppc_get_one_reg()
1664 *val = get_reg_val(id, vcpu->arch.tsr); in kvmppc_get_one_reg()
1670 *val = get_reg_val(id, vcpu->arch.vrsave); in kvmppc_get_one_reg()
1673 r = vcpu->kvm->arch.kvm_ops->get_one_reg(vcpu, id, val); in kvmppc_get_one_reg()
1687 vcpu->arch.dbg_reg.iac1 = set_reg_val(id, *val); in kvmppc_set_one_reg()
1690 vcpu->arch.dbg_reg.iac2 = set_reg_val(id, *val); in kvmppc_set_one_reg()
1694 vcpu->arch.dbg_reg.iac3 = set_reg_val(id, *val); in kvmppc_set_one_reg()
1697 vcpu->arch.dbg_reg.iac4 = set_reg_val(id, *val); in kvmppc_set_one_reg()
1701 vcpu->arch.dbg_reg.dac1 = set_reg_val(id, *val); in kvmppc_set_one_reg()
1704 vcpu->arch.dbg_reg.dac2 = set_reg_val(id, *val); in kvmppc_set_one_reg()
1739 vcpu->arch.vrsave = set_reg_val(id, *val); in kvmppc_set_one_reg()
1742 r = vcpu->kvm->arch.kvm_ops->set_one_reg(vcpu, id, val); in kvmppc_set_one_reg()
1804 vcpu->arch.epcr = new_epcr; in kvmppc_set_epcr()
1806 vcpu->arch.shadow_epcr &= ~SPRN_EPCR_GICM; in kvmppc_set_epcr()
1807 if (vcpu->arch.epcr & SPRN_EPCR_ICM) in kvmppc_set_epcr()
1808 vcpu->arch.shadow_epcr |= SPRN_EPCR_GICM; in kvmppc_set_epcr()
1815 vcpu->arch.tcr = new_tcr; in kvmppc_set_tcr()
1822 set_bits(tsr_bits, &vcpu->arch.tsr); in kvmppc_set_tsr_bits()
1830 clear_bits(tsr_bits, &vcpu->arch.tsr); in kvmppc_clr_tsr_bits()
1844 if (vcpu->arch.tcr & TCR_ARE) { in kvmppc_decrementer_func()
1845 vcpu->arch.dec = vcpu->arch.decar; in kvmppc_decrementer_func()
1914 vcpu->arch.shadow_msrp |= MSRP_UCLEP; in kvm_guest_protect_msr()
1916 vcpu->arch.shadow_msrp |= MSRP_DEP; in kvm_guest_protect_msr()
1918 vcpu->arch.shadow_msrp |= MSRP_PMMP; in kvm_guest_protect_msr()
1921 vcpu->arch.shadow_msrp &= ~MSRP_UCLEP; in kvm_guest_protect_msr()
1923 vcpu->arch.shadow_msrp &= ~MSRP_DEP; in kvm_guest_protect_msr()
1925 vcpu->arch.shadow_msrp &= ~MSRP_PMMP; in kvm_guest_protect_msr()
1937 if (!(vcpu->arch.shared->msr & MSR_PR) && in kvmppc_xlate()
1938 (eaddr & PAGE_MASK) == vcpu->arch.magic_page_ea) { in kvmppc_xlate()
1940 pte->raddr = (vcpu->arch.magic_page_pa & PAGE_MASK) | in kvmppc_xlate()
1988 vcpu->arch.dbg_reg.dbcr0 = 0; in kvm_arch_vcpu_ioctl_set_guest_debug()
1996 vcpu->arch.dbg_reg.dbcr0 = 0; in kvm_arch_vcpu_ioctl_set_guest_debug()
1999 vcpu->arch.dbg_reg.dbcr0 |= DBCR0_IDM | DBCR0_IC; in kvm_arch_vcpu_ioctl_set_guest_debug()
2002 dbg_reg = &(vcpu->arch.dbg_reg); in kvm_arch_vcpu_ioctl_set_guest_debug()
2026 uint64_t addr = dbg->arch.bp[n].addr; in kvm_arch_vcpu_ioctl_set_guest_debug()
2027 uint32_t type = dbg->arch.bp[n].type; in kvm_arch_vcpu_ioctl_set_guest_debug()
2069 vcpu->kvm->arch.kvm_ops->mmu_destroy(vcpu); in kvmppc_mmu_destroy()
2074 return kvm->arch.kvm_ops->init_vm(kvm); in kvmppc_core_init_vm()
2079 return kvm->arch.kvm_ops->vcpu_create(kvm, id); in kvmppc_core_vcpu_create()
2084 vcpu->kvm->arch.kvm_ops->vcpu_free(vcpu); in kvmppc_core_vcpu_free()
2089 kvm->arch.kvm_ops->destroy_vm(kvm); in kvmppc_core_destroy_vm()
2094 vcpu->kvm->arch.kvm_ops->vcpu_load(vcpu, cpu); in kvmppc_core_vcpu_load()
2099 vcpu->kvm->arch.kvm_ops->vcpu_put(vcpu); in kvmppc_core_vcpu_put()