diff options
author | Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com> | 2012-07-25 23:58:59 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2012-07-26 04:55:34 -0400 |
commit | a2766325cf9f9e36d1225145f1ce1b066f001837 (patch) | |
tree | a00cefe5c199c7e4845294f38475c3abd90e9419 /include | |
parent | 2b4b5af8f8e7296bc27c52023ab6bb8f53db3a2b (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.h | 3 |
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); | |||
423 | int gfn_to_page_many_atomic(struct kvm *kvm, gfn_t gfn, struct page **pages, | 423 | int gfn_to_page_many_atomic(struct kvm *kvm, gfn_t gfn, struct page **pages, |
424 | int nr_pages); | 424 | int nr_pages); |
425 | 425 | ||
426 | struct page *get_bad_page(void); | ||
426 | struct page *gfn_to_page(struct kvm *kvm, gfn_t gfn); | 427 | struct page *gfn_to_page(struct kvm *kvm, gfn_t gfn); |
427 | unsigned long gfn_to_hva(struct kvm *kvm, gfn_t gfn); | 428 | unsigned long gfn_to_hva(struct kvm *kvm, gfn_t gfn); |
428 | void kvm_release_page_clean(struct page *page); | 429 | void kvm_release_page_clean(struct page *page); |
@@ -576,7 +577,7 @@ void kvm_arch_sync_events(struct kvm *kvm); | |||
576 | int kvm_cpu_has_pending_timer(struct kvm_vcpu *vcpu); | 577 | int kvm_cpu_has_pending_timer(struct kvm_vcpu *vcpu); |
577 | void kvm_vcpu_kick(struct kvm_vcpu *vcpu); | 578 | void kvm_vcpu_kick(struct kvm_vcpu *vcpu); |
578 | 579 | ||
579 | int kvm_is_mmio_pfn(pfn_t pfn); | 580 | bool kvm_is_mmio_pfn(pfn_t pfn); |
580 | 581 | ||
581 | struct kvm_irq_ack_notifier { | 582 | struct kvm_irq_ack_notifier { |
582 | struct hlist_node link; | 583 | struct hlist_node link; |