Lines Matching refs:gpc1
179 struct gfn_to_pfn_cache *gpc1 = &vx->runstate_cache; in kvm_xen_update_runstate_guest() local
264 if ((gpc1->gpa & ~PAGE_MASK) + user_len >= PAGE_SIZE) { in kvm_xen_update_runstate_guest()
265 user_len1 = PAGE_SIZE - (gpc1->gpa & ~PAGE_MASK); in kvm_xen_update_runstate_guest()
280 if (!read_trylock(&gpc1->lock)) { in kvm_xen_update_runstate_guest()
285 read_lock_irqsave(&gpc1->lock, flags); in kvm_xen_update_runstate_guest()
287 while (!kvm_gpc_check(gpc1, user_len1)) { in kvm_xen_update_runstate_guest()
288 read_unlock_irqrestore(&gpc1->lock, flags); in kvm_xen_update_runstate_guest()
294 if (kvm_gpc_refresh(gpc1, user_len1)) in kvm_xen_update_runstate_guest()
297 read_lock_irqsave(&gpc1->lock, flags); in kvm_xen_update_runstate_guest()
310 rs_state = gpc1->khva; in kvm_xen_update_runstate_guest()
311 rs_times = gpc1->khva + times_ofs; in kvm_xen_update_runstate_guest()
322 lock_set_subclass(&gpc1->lock.dep_map, 1, _THIS_IP_); in kvm_xen_update_runstate_guest()
325 read_unlock_irqrestore(&gpc1->lock, flags); in kvm_xen_update_runstate_guest()
334 read_unlock_irqrestore(&gpc1->lock, flags); in kvm_xen_update_runstate_guest()
346 if (kvm_gpc_activate(gpc2, gpc1->gpa + user_len1, in kvm_xen_update_runstate_guest()
378 update_bit = gpc1->khva + times_ofs + in kvm_xen_update_runstate_guest()
421 memcpy(gpc1->khva, rs_state, user_len1); in kvm_xen_update_runstate_guest()
436 read_unlock_irqrestore(&gpc1->lock, flags); in kvm_xen_update_runstate_guest()
438 mark_page_dirty_in_slot(v->kvm, gpc1->memslot, gpc1->gpa >> PAGE_SHIFT); in kvm_xen_update_runstate_guest()