mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-10 15:10:38 +00:00
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>
This commit is contained in:
parent
12ce13fea9
commit
69552c295e
@ -65,6 +65,7 @@
|
|||||||
#define KVM_PFN_ERR_FAULT (KVM_PFN_ERR_MASK)
|
#define KVM_PFN_ERR_FAULT (KVM_PFN_ERR_MASK)
|
||||||
#define KVM_PFN_ERR_HWPOISON (KVM_PFN_ERR_MASK + 1)
|
#define KVM_PFN_ERR_HWPOISON (KVM_PFN_ERR_MASK + 1)
|
||||||
#define KVM_PFN_ERR_BAD (KVM_PFN_ERR_MASK + 2)
|
#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)
|
static inline bool is_error_pfn(pfn_t pfn)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user