Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 329870
b: refs/heads/master
c: 7068d09
h: refs/heads/master
v: v3
  • Loading branch information
Xiao Guangrong authored and Avi Kivity committed Aug 22, 2012
1 parent 3c46763 commit c8b2cf5
Show file tree
Hide file tree
Showing 2 changed files with 4 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: ca3a490c7de8472b514e2d635c052b1e0f8e1c9d
refs/heads/master: 7068d0971524dd47a38f44f6020ba133432871ca
5 changes: 3 additions & 2 deletions trunk/include/linux/kvm_host.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,12 @@ static inline bool is_invalid_pfn(pfn_t pfn)
return !is_noslot_pfn(pfn) && is_error_pfn(pfn);
}

#define KVM_HVA_ERR_BAD (PAGE_OFFSET)
#define KVM_HVA_ERR_BAD (PAGE_OFFSET)
#define KVM_HVA_ERR_RO_BAD (PAGE_OFFSET + PAGE_SIZE)

static inline bool kvm_is_error_hva(unsigned long addr)
{
return addr == PAGE_OFFSET;
return addr >= PAGE_OFFSET;
}

#define KVM_ERR_PTR_BAD_PAGE (ERR_PTR(-ENOENT))
Expand Down

0 comments on commit c8b2cf5

Please sign in to comment.