]> Pileus Git - ~andy/linux/commitdiff
KVM: introduce KVM_PFN_ERR_RO_FAULT
authorXiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>
Tue, 21 Aug 2012 03:01:19 +0000 (11:01 +0800)
committerAvi Kivity <avi@redhat.com>
Wed, 22 Aug 2012 12:08:57 +0000 (15:08 +0300)
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>
include/linux/kvm_host.h

index 52c86e4f6d8ce39736f76b123176269ba4d96f19..4fd33e03d5dc589bd3a2c3bdbf1597dfc22e8f8a 100644 (file)
@@ -65,6 +65,7 @@
 #define KVM_PFN_ERR_FAULT      (KVM_PFN_ERR_MASK)
 #define KVM_PFN_ERR_HWPOISON   (KVM_PFN_ERR_MASK + 1)
 #define KVM_PFN_ERR_BAD                (KVM_PFN_ERR_MASK + 2)
+#define KVM_PFN_ERR_RO_FAULT   (KVM_PFN_ERR_MASK + 3)
 
 static inline bool is_error_pfn(pfn_t pfn)
 {