Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 372973
b: refs/heads/master
c: 744b37f
h: refs/heads/master
i:
  372971: 8c42b78
v: v3
  • Loading branch information
Heiko Carstens authored and Marcelo Tosatti committed Mar 7, 2013
1 parent dfb848a commit 6dbd96a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1a0d74e66405a795bb37a4a23ece50f8d8e5e81e
refs/heads/master: 744b37fb5a63d45e92e590967bae82d8ac62e950
7 changes: 5 additions & 2 deletions trunk/arch/s390/kvm/gaccess.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,16 @@ static inline void __user *__guestaddr_to_user(struct kvm_vcpu *vcpu,
unsigned long guestaddr)
{
unsigned long prefix = vcpu->arch.sie_block->prefix;
unsigned long uaddress;

if (guestaddr < 2 * PAGE_SIZE)
guestaddr += prefix;
else if ((guestaddr >= prefix) && (guestaddr < prefix + 2 * PAGE_SIZE))
guestaddr -= prefix;

return (void __user *) gmap_fault(guestaddr, vcpu->arch.gmap);
uaddress = gmap_fault(guestaddr, vcpu->arch.gmap);
if (IS_ERR_VALUE(uaddress))
uaddress = -EFAULT;
return (void __user *)uaddress;
}

static inline int get_guest_u64(struct kvm_vcpu *vcpu, unsigned long guestaddr,
Expand Down

0 comments on commit 6dbd96a

Please sign in to comment.