diff options
author | Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com> | 2012-08-20 23:01:19 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2012-08-22 08:08:57 -0400 |
commit | 69552c295e3df1431801526b5b705a0e130c920d (patch) | |
tree | 326f10077eb2469289846292b87d1b0f8ecc5017 | |
parent | 12ce13fea925ab629f2281be2b9b01cf647a86cd (diff) |
KVM: introduce KVM_PFN_ERR_RO_FAULT
In the later patch, it indicates failure when we try to get a writable
pfn from the readonly memslot
Signed-off-by: Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
-rw-r--r-- | include/linux/kvm_host.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h index 52c86e4f6d8c..4fd33e03d5dc 100644 --- a/include/linux/kvm_host.h +++ b/include/linux/kvm_host.h | |||
@@ -65,6 +65,7 @@ | |||
65 | #define KVM_PFN_ERR_FAULT (KVM_PFN_ERR_MASK) | 65 | #define KVM_PFN_ERR_FAULT (KVM_PFN_ERR_MASK) |
66 | #define KVM_PFN_ERR_HWPOISON (KVM_PFN_ERR_MASK + 1) | 66 | #define KVM_PFN_ERR_HWPOISON (KVM_PFN_ERR_MASK + 1) |
67 | #define KVM_PFN_ERR_BAD (KVM_PFN_ERR_MASK + 2) | 67 | #define KVM_PFN_ERR_BAD (KVM_PFN_ERR_MASK + 2) |
68 | #define KVM_PFN_ERR_RO_FAULT (KVM_PFN_ERR_MASK + 3) | ||
68 | 69 | ||
69 | static inline bool is_error_pfn(pfn_t pfn) | 70 | static inline bool is_error_pfn(pfn_t pfn) |
70 | { | 71 | { |