Lines Matching refs:arch
289 struct kvmppc_xive_vcpu *xc = vcpu->arch.xive_vcpu; in xive_vm_h_xirr()
331 vcpu->arch.regs.gpr[4] = hirq | (old_cppr << 24); in xive_vm_h_xirr()
338 struct kvmppc_xive_vcpu *xc = vcpu->arch.xive_vcpu; in xive_vm_h_ipoll()
351 xc = vcpu->arch.xive_vcpu; in xive_vm_h_ipoll()
367 vcpu->arch.regs.gpr[4] = hirq | (xc->cppr << 24); in xive_vm_h_ipoll()
458 struct kvmppc_xive_vcpu *xc = vcpu->arch.xive_vcpu; in xive_vm_h_cppr()
459 struct kvmppc_xive *xive = vcpu->kvm->arch.xive; in xive_vm_h_cppr()
517 struct kvmppc_xive *xive = vcpu->kvm->arch.xive; in xive_vm_h_eoi()
520 struct kvmppc_xive_vcpu *xc = vcpu->arch.xive_vcpu; in xive_vm_h_eoi()
623 struct kvmppc_xive_vcpu *xc = vcpu->arch.xive_vcpu; in xive_vm_h_ipi()
633 xc = vcpu->arch.xive_vcpu; in xive_vm_h_ipi()
665 struct kvmppc_xive_vcpu *xc = vcpu->arch.xive_vcpu; in kvmppc_xive_vcpu_has_save_restore()
673 struct kvmppc_xive_vcpu *xc = vcpu->arch.xive_vcpu; in kvmppc_xive_check_save_restore()
696 if (!tima || !vcpu->arch.xive_cam_word) in kvmppc_xive_push_vcpu()
701 __raw_writeq(vcpu->arch.xive_saved_state.w01, tima + TM_QW1_OS); in kvmppc_xive_push_vcpu()
702 __raw_writel(vcpu->arch.xive_cam_word, tima + TM_QW1_OS + TM_WORD2); in kvmppc_xive_push_vcpu()
703 vcpu->arch.xive_pushed = 1; in kvmppc_xive_push_vcpu()
713 vcpu->arch.irq_pending = 0; in kvmppc_xive_push_vcpu()
719 if (vcpu->arch.xive_esc_on) { in kvmppc_xive_push_vcpu()
720 pq = __raw_readq((void __iomem *)(vcpu->arch.xive_esc_vaddr + in kvmppc_xive_push_vcpu()
747 vcpu->arch.xive_esc_on = 0; in kvmppc_xive_push_vcpu()
760 if (!vcpu->arch.xive_pushed) in kvmppc_xive_pull_vcpu()
774 vcpu->arch.xive_saved_state.w01 = __raw_readq(tima + TM_QW1_OS); in kvmppc_xive_pull_vcpu()
777 vcpu->arch.xive_saved_state.lsmfb = 0; in kvmppc_xive_pull_vcpu()
778 vcpu->arch.xive_saved_state.ack = 0xff; in kvmppc_xive_pull_vcpu()
779 vcpu->arch.xive_pushed = 0; in kvmppc_xive_pull_vcpu()
786 void __iomem *esc_vaddr = (void __iomem *)vcpu->arch.xive_esc_vaddr; in kvmppc_xive_rearm_escalation()
794 if (vcpu->arch.xive_esc_on) { in kvmppc_xive_rearm_escalation()
811 vcpu->arch.xive_esc_on = true; in kvmppc_xive_rearm_escalation()
844 vcpu->arch.irq_pending = 1; in xive_esc_irq()
846 if (vcpu->arch.ceded || vcpu->arch.nested) in xive_esc_irq()
858 vcpu->arch.xive_esc_on = false; in xive_esc_irq()
869 struct kvmppc_xive_vcpu *xc = vcpu->arch.xive_vcpu; in kvmppc_xive_attach_escalation()
888 vcpu->kvm->arch.lpid, xc->server_num); in kvmppc_xive_attach_escalation()
891 vcpu->kvm->arch.lpid, xc->server_num, prio); in kvmppc_xive_attach_escalation()
923 vcpu->arch.xive_esc_raddr = xd->eoi_page; in kvmppc_xive_attach_escalation()
924 vcpu->arch.xive_esc_vaddr = (__force u64)xd->eoi_mmio; in kvmppc_xive_attach_escalation()
938 struct kvmppc_xive_vcpu *xc = vcpu->arch.xive_vcpu; in xive_provision_queue()
974 struct kvmppc_xive *xive = kvm->arch.xive; in xive_check_provisioning()
989 if (!vcpu->arch.xive_vcpu) in xive_check_provisioning()
1017 xc = vcpu->arch.xive_vcpu; in xive_inc_q_pending()
1027 struct kvmppc_xive_vcpu *xc = vcpu->arch.xive_vcpu; in xive_try_pick_queue()
1069 if (!vcpu->arch.xive_vcpu) in kvmppc_xive_select_target()
1073 *server = vcpu->arch.xive_vcpu->server_num; in kvmppc_xive_select_target()
1187 struct kvmppc_xive *xive = kvm->arch.xive; in xive_target_interrupt()
1271 struct kvmppc_xive *xive = kvm->arch.xive; in kvmppc_xive_set_xive()
1372 struct kvmppc_xive *xive = kvm->arch.xive; in kvmppc_xive_get_xive()
1394 struct kvmppc_xive *xive = kvm->arch.xive; in kvmppc_xive_int_on()
1433 struct kvmppc_xive *xive = kvm->arch.xive; in kvmppc_xive_int_off()
1481 struct kvmppc_xive_vcpu *xc = vcpu->arch.xive_vcpu; in kvmppc_xive_get_icp()
1494 struct kvmppc_xive_vcpu *xc = vcpu->arch.xive_vcpu; in kvmppc_xive_set_icp()
1495 struct kvmppc_xive *xive = vcpu->kvm->arch.xive; in kvmppc_xive_set_icp()
1516 if (WARN_ON(vcpu->arch.xive_pushed)) in kvmppc_xive_set_icp()
1520 vcpu->arch.xive_saved_state.cppr = cppr; in kvmppc_xive_set_icp()
1554 struct kvmppc_xive *xive = kvm->arch.xive; in kvmppc_xive_set_mapped()
1652 struct kvmppc_xive *xive = kvm->arch.xive; in kvmppc_xive_clr_mapped()
1731 struct kvmppc_xive_vcpu *xc = vcpu->arch.xive_vcpu; in kvmppc_xive_disable_vcpu_interrupts()
1733 struct kvmppc_xive *xive = kvm->arch.xive; in kvmppc_xive_disable_vcpu_interrupts()
1765 if (vcpu->arch.xive_esc_on) { in kvmppc_xive_disable_vcpu_interrupts()
1766 __raw_readq((void __iomem *)(vcpu->arch.xive_esc_vaddr + in kvmppc_xive_disable_vcpu_interrupts()
1768 vcpu->arch.xive_esc_on = false; in kvmppc_xive_disable_vcpu_interrupts()
1776 vcpu->arch.xive_esc_vaddr = 0; in kvmppc_xive_disable_vcpu_interrupts()
1777 vcpu->arch.xive_esc_raddr = 0; in kvmppc_xive_disable_vcpu_interrupts()
1800 if (!vcpu->arch.xive_esc_on) in xive_cleanup_single_escalation()
1806 struct kvmppc_xive_vcpu *xc = vcpu->arch.xive_vcpu; in kvmppc_xive_cleanup_vcpu()
1807 struct kvmppc_xive *xive = vcpu->kvm->arch.xive; in kvmppc_xive_cleanup_vcpu()
1840 vcpu->arch.xive_cam_word = 0; in kvmppc_xive_cleanup_vcpu()
1863 vcpu->arch.irq_type = KVMPPC_IRQ_DEFAULT; in kvmppc_xive_cleanup_vcpu()
1864 vcpu->arch.xive_vcpu = NULL; in kvmppc_xive_cleanup_vcpu()
1919 if (vcpu->arch.irq_type != KVMPPC_IRQ_DEFAULT) in kvmppc_xive_connect_vcpu()
1935 vcpu->arch.xive_vcpu = xc; in kvmppc_xive_connect_vcpu()
1954 vcpu->arch.xive_saved_state.w01 = cpu_to_be64(0xff000000); in kvmppc_xive_connect_vcpu()
1955 vcpu->arch.xive_cam_word = cpu_to_be32(xc->vp_cam | TM_QW1W2_VO); in kvmppc_xive_connect_vcpu()
2030 vcpu->arch.irq_type = KVMPPC_IRQ_XICS; in kvmppc_xive_connect_vcpu()
2144 struct kvmppc_xive_vcpu *xc = vcpu->arch.xive_vcpu; in xive_pre_save_scan()
2312 struct kvmppc_xive_vcpu *xc = vcpu->arch.xive_vcpu; in xive_check_delayed_irq()
2492 struct kvmppc_xive *xive = kvm->arch.xive; in kvmppc_xive_set_irq()
2684 kvm->arch.xive = NULL; in kvmppc_xive_release()
2719 &kvm->arch.xive_devices.native : in kvmppc_xive_get_device()
2720 &kvm->arch.xive_devices.xics_on_xive; in kvmppc_xive_get_device()
2744 if (kvm->arch.xive) in kvmppc_xive_create()
2776 kvm->arch.xive = xive; in kvmppc_xive_create()
2782 struct kvmppc_vcore *vc = vcpu->arch.vcore; in kvmppc_xive_xics_hcall()
2812 struct kvmppc_xive_vcpu *xc = vcpu->arch.xive_vcpu; in kvmppc_xive_debug_show_queues()
2908 struct kvmppc_xive_vcpu *xc = vcpu->arch.xive_vcpu; in xive_debug_show()