Lines Matching refs:guestdest
142 unsigned long guestdest, in __copy_to_guest_slow() argument
150 rc = put_guest_u8(vcpu, guestdest++, *(data++)); in __copy_to_guest_slow()
157 static inline int copy_to_guest(struct kvm_vcpu *vcpu, unsigned long guestdest, in copy_to_guest() argument
164 if ((guestdest < 2 * PAGE_SIZE) && (guestdest + n > 2 * PAGE_SIZE)) in copy_to_guest()
167 if ((guestdest < prefix) && (guestdest + n > prefix)) in copy_to_guest()
170 if ((guestdest < prefix + 2 * PAGE_SIZE) in copy_to_guest()
171 && (guestdest + n > prefix + 2 * PAGE_SIZE)) in copy_to_guest()
174 if (guestdest < 2 * PAGE_SIZE) in copy_to_guest()
175 guestdest += prefix; in copy_to_guest()
176 else if ((guestdest >= prefix) && (guestdest < prefix + 2 * PAGE_SIZE)) in copy_to_guest()
177 guestdest -= prefix; in copy_to_guest()
179 if (guestdest + n > memsize) in copy_to_guest()
182 if (guestdest + n < guestdest) in copy_to_guest()
185 guestdest += origin; in copy_to_guest()
187 return copy_to_user((void __user *) guestdest, from, n); in copy_to_guest()
189 return __copy_to_guest_slow(vcpu, guestdest, from, n); in copy_to_guest()
244 unsigned long guestdest, in copy_to_guest_absolute() argument
250 if (guestdest + n > memsize) in copy_to_guest_absolute()
253 if (guestdest + n < guestdest) in copy_to_guest_absolute()
256 guestdest += origin; in copy_to_guest_absolute()
258 return copy_to_user((void __user *) guestdest, from, n); in copy_to_guest_absolute()