]> git.ipfire.org Git - thirdparty/linux.git/commit - include/linux/kvm_host.h
KVM: let the error pfn not depend on error code
authorXiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>
Fri, 3 Aug 2012 07:43:51 +0000 (15:43 +0800)
committerAvi Kivity <avi@redhat.com>
Mon, 6 Aug 2012 13:04:59 +0000 (16:04 +0300)
commit9c5b11728344e1085593f494ddc8838497e7ffde
tree0452dc0149bbc6ed01001b7807e902e9d2102148
parent32cad84f44d186654492f1a50a1424c8906ccbd9
KVM: let the error pfn not depend on error code

Currently, we use the error code as error pfn to indicat the error
condition, it is not straightforward and it will not work on PAE
32-bit cpu with huge memory, since the valid physical address
can be at most 52 bits

For the normal pfn, the highest 12 bits should be zero, so we can
mask these bits to indicate the error.

Signed-off-by: Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
include/linux/kvm_host.h