KVM: remove dummy pages
authorXiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>
Thu, 26 Jul 2012 03:58:59 +0000 (11:58 +0800)
committerAvi Kivity <avi@redhat.com>
Thu, 26 Jul 2012 08:55:34 +0000 (11:55 +0300)
commita2766325cf9f9e36d1225145f1ce1b066f001837
treea00cefe5c199c7e4845294f38475c3abd90e9419
parent2b4b5af8f8e7296bc27c52023ab6bb8f53db3a2b
KVM: remove dummy pages

Currently, kvm allocates some pages and use them as error indicators,
it wastes memory and is not good for scalability

Base on Avi's suggestion, we use the error codes instead of these pages
to indicate the error conditions

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