Lines Matching refs:arch

75 	if (!tima || !vcpu->arch.xive_cam_word)
79 __raw_writeq(vcpu->arch.xive_saved_state.w01, tima + TM_QW1_OS);
80 __raw_writel(vcpu->arch.xive_cam_word, tima + TM_QW1_OS + TM_WORD2);
81 vcpu->arch.xive_pushed = 1;
91 vcpu->arch.irq_pending = 0;
97 if (vcpu->arch.xive_esc_on) {
98 pq = __raw_readq((void __iomem *)(vcpu->arch.xive_esc_vaddr +
125 vcpu->arch.xive_esc_on = 0;
153 vcpu->arch.irq_pending = 1;
155 if (vcpu->arch.ceded)
167 vcpu->arch.xive_esc_on = false;
178 struct kvmppc_xive_vcpu *xc = vcpu->arch.xive_vcpu;
197 vcpu->kvm->arch.lpid, xc->server_num);
200 vcpu->kvm->arch.lpid, xc->server_num, prio);
232 vcpu->arch.xive_esc_raddr = xd->eoi_page;
233 vcpu->arch.xive_esc_vaddr = (__force u64)xd->eoi_mmio;
247 struct kvmppc_xive_vcpu *xc = vcpu->arch.xive_vcpu;
283 struct kvmppc_xive *xive = kvm->arch.xive;
297 if (!vcpu->arch.xive_vcpu)
325 xc = vcpu->arch.xive_vcpu;
335 struct kvmppc_xive_vcpu *xc = vcpu->arch.xive_vcpu;
376 if (!vcpu->arch.xive_vcpu)
380 *server = vcpu->arch.xive_vcpu->server_num;
532 struct kvmppc_xive *xive = kvm->arch.xive;
616 struct kvmppc_xive *xive = kvm->arch.xive;
717 struct kvmppc_xive *xive = kvm->arch.xive;
739 struct kvmppc_xive *xive = kvm->arch.xive;
778 struct kvmppc_xive *xive = kvm->arch.xive;
826 struct kvmppc_xive_vcpu *xc = vcpu->arch.xive_vcpu;
839 struct kvmppc_xive_vcpu *xc = vcpu->arch.xive_vcpu;
840 struct kvmppc_xive *xive = vcpu->kvm->arch.xive;
861 if (WARN_ON(vcpu->arch.xive_pushed))
865 vcpu->arch.xive_saved_state.cppr = cppr;
899 struct kvmppc_xive *xive = kvm->arch.xive;
996 struct kvmppc_xive *xive = kvm->arch.xive;
1076 struct kvmppc_xive_vcpu *xc = vcpu->arch.xive_vcpu;
1078 struct kvmppc_xive *xive = kvm->arch.xive;
1110 if (vcpu->arch.xive_esc_on) {
1111 __raw_readq((void __iomem *)(vcpu->arch.xive_esc_vaddr +
1113 vcpu->arch.xive_esc_on = false;
1121 vcpu->arch.xive_esc_vaddr = 0;
1122 vcpu->arch.xive_esc_raddr = 0;
1146 if (!vcpu->arch.xive_esc_on)
1152 struct kvmppc_xive_vcpu *xc = vcpu->arch.xive_vcpu;
1153 struct kvmppc_xive *xive = vcpu->kvm->arch.xive;
1187 vcpu->arch.xive_cam_word = 0;
1210 vcpu->arch.irq_type = KVMPPC_IRQ_DEFAULT;
1211 vcpu->arch.xive_vcpu = NULL;
1266 if (vcpu->arch.irq_type != KVMPPC_IRQ_DEFAULT)
1282 vcpu->arch.xive_vcpu = xc;
1295 vcpu->arch.xive_saved_state.w01 = cpu_to_be64(0xff000000);
1296 vcpu->arch.xive_cam_word = cpu_to_be32(xc->vp_cam | TM_QW1W2_VO);
1371 vcpu->arch.irq_type = KVMPPC_IRQ_XICS;
1484 struct kvmppc_xive_vcpu *xc = vcpu->arch.xive_vcpu;
1652 struct kvmppc_xive_vcpu *xc = vcpu->arch.xive_vcpu;
1832 struct kvmppc_xive *xive = kvm->arch.xive;
2019 * Now that we have cleared vcpu->arch.xive_vcpu, vcpu->arch.irq_type
2020 * and vcpu->arch.xive_esc_[vr]addr on each vcpu, we are safe
2024 kvm->arch.xive = NULL;
2059 &kvm->arch.xive_devices.native :
2060 &kvm->arch.xive_devices.xics_on_xive;
2084 if (kvm->arch.xive)
2112 kvm->arch.xive = xive;
2118 struct kvmppc_xive_vcpu *xc = vcpu->arch.xive_vcpu;
2177 struct kvmppc_xive_vcpu *xc = vcpu->arch.xive_vcpu;