Lines Matching refs:sip
279 struct kvm_split_mode *sip = local_paca->kvm_hstate.kvm_split_mode;
306 if (!sip)
310 vc = sip->vc[i];
325 * On POWER9 when running a HPT guest on a radix host (sip != NULL),
329 if (sip->lpcr_req) {
330 if (cmpxchg(&sip->do_restore, 0, 1) == 0) {
334 if (sip->napped[t])
682 static void wait_for_sync(struct kvm_split_mode *sip, int phase)
686 sip->lpcr_sync.phase[thr] |= phase;
688 while ((sip->lpcr_sync.allphases & phase) != phase) {
695 void kvmhv_p9_set_lpcr(struct kvm_split_mode *sip)
700 wait_for_sync(sip, PHASE_REALMODE);
703 mtspr(SPRN_LPCR, sip->lpcr_req);
704 mtspr(SPRN_LPID, sip->lpidr_req);
709 sip->do_set = 0;
721 wait_for_sync(sip, PHASE_SET_LPCR);
722 /* order read of sip->lpcr_sync.allphases vs. sip->do_set */
731 void kvmhv_p9_restore_lpcr(struct kvm_split_mode *sip)
734 wait_for_sync(sip, PHASE_OUT_OF_GUEST);
737 mtspr(SPRN_LPCR, sip->host_lpcr);
741 sip->do_restore = 0;
745 wait_for_sync(sip, PHASE_RESET_LPCR);