aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorXiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>2012-07-25 23:58:59 -0400
committerAvi Kivity <avi@redhat.com>2012-07-26 04:55:34 -0400
commita2766325cf9f9e36d1225145f1ce1b066f001837 (patch)
treea00cefe5c199c7e4845294f38475c3abd90e9419 /include
parent2b4b5af8f8e7296bc27c52023ab6bb8f53db3a2b (diff)
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>
Diffstat (limited to 'include')
-rw-r--r--include/linux/kvm_host.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h
index 1993eb1cb2cd..4e60d3695e4e 100644
--- a/include/linux/kvm_host.h
+++ b/include/linux/kvm_host.h
@@ -423,6 +423,7 @@ void kvm_arch_flush_shadow(struct kvm *kvm);
423int gfn_to_page_many_atomic(struct kvm *kvm, gfn_t gfn, struct page **pages, 423int gfn_to_page_many_atomic(struct kvm *kvm, gfn_t gfn, struct page **pages,
424 int nr_pages); 424 int nr_pages);
425 425
426struct page *get_bad_page(void);
426struct page *gfn_to_page(struct kvm *kvm, gfn_t gfn); 427struct page *gfn_to_page(struct kvm *kvm, gfn_t gfn);
427unsigned long gfn_to_hva(struct kvm *kvm, gfn_t gfn); 428unsigned long gfn_to_hva(struct kvm *kvm, gfn_t gfn);
428void kvm_release_page_clean(struct page *page); 429void kvm_release_page_clean(struct page *page);
@@ -576,7 +577,7 @@ void kvm_arch_sync_events(struct kvm *kvm);
576int kvm_cpu_has_pending_timer(struct kvm_vcpu *vcpu); 577int kvm_cpu_has_pending_timer(struct kvm_vcpu *vcpu);
577void kvm_vcpu_kick(struct kvm_vcpu *vcpu); 578void kvm_vcpu_kick(struct kvm_vcpu *vcpu);
578 579
579int kvm_is_mmio_pfn(pfn_t pfn); 580bool kvm_is_mmio_pfn(pfn_t pfn);
580 581
581struct kvm_irq_ack_notifier { 582struct kvm_irq_ack_notifier {
582 struct hlist_node link; 583 struct hlist_node link;