diff options
author | Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> | 2013-10-07 12:47:59 -0400 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2013-10-17 09:45:35 -0400 |
commit | 2ba9f0d8875073a2ed802fca0c25c9bfc4338439 (patch) | |
tree | ffe49a40ff604985c5f3f159ba336bdd90cb98cd /virt/kvm/kvm_main.c | |
parent | dba291f2ceacb833063179530eeb83a317a6cc95 (diff) |
kvm: powerpc: book3s: Support building HV and PR KVM as module
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
[agraf: squash in compile fix]
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'virt/kvm/kvm_main.c')
-rw-r--r-- | virt/kvm/kvm_main.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index d469114aff09..94c6e3f6f244 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c | |||
@@ -187,6 +187,7 @@ void kvm_flush_remote_tlbs(struct kvm *kvm) | |||
187 | ++kvm->stat.remote_tlb_flush; | 187 | ++kvm->stat.remote_tlb_flush; |
188 | cmpxchg(&kvm->tlbs_dirty, dirty_count, 0); | 188 | cmpxchg(&kvm->tlbs_dirty, dirty_count, 0); |
189 | } | 189 | } |
190 | EXPORT_SYMBOL_GPL(kvm_flush_remote_tlbs); | ||
190 | 191 | ||
191 | void kvm_reload_remote_mmus(struct kvm *kvm) | 192 | void kvm_reload_remote_mmus(struct kvm *kvm) |
192 | { | 193 | { |
@@ -965,6 +966,7 @@ int kvm_get_dirty_log(struct kvm *kvm, | |||
965 | out: | 966 | out: |
966 | return r; | 967 | return r; |
967 | } | 968 | } |
969 | EXPORT_SYMBOL_GPL(kvm_get_dirty_log); | ||
968 | 970 | ||
969 | bool kvm_largepages_enabled(void) | 971 | bool kvm_largepages_enabled(void) |
970 | { | 972 | { |
@@ -1653,6 +1655,7 @@ void mark_page_dirty(struct kvm *kvm, gfn_t gfn) | |||
1653 | memslot = gfn_to_memslot(kvm, gfn); | 1655 | memslot = gfn_to_memslot(kvm, gfn); |
1654 | mark_page_dirty_in_slot(kvm, memslot, gfn); | 1656 | mark_page_dirty_in_slot(kvm, memslot, gfn); |
1655 | } | 1657 | } |
1658 | EXPORT_SYMBOL_GPL(mark_page_dirty); | ||
1656 | 1659 | ||
1657 | /* | 1660 | /* |
1658 | * The vCPU has executed a HLT instruction with in-kernel mode enabled. | 1661 | * The vCPU has executed a HLT instruction with in-kernel mode enabled. |
@@ -1678,6 +1681,7 @@ void kvm_vcpu_block(struct kvm_vcpu *vcpu) | |||
1678 | 1681 | ||
1679 | finish_wait(&vcpu->wq, &wait); | 1682 | finish_wait(&vcpu->wq, &wait); |
1680 | } | 1683 | } |
1684 | EXPORT_SYMBOL_GPL(kvm_vcpu_block); | ||
1681 | 1685 | ||
1682 | #ifndef CONFIG_S390 | 1686 | #ifndef CONFIG_S390 |
1683 | /* | 1687 | /* |