Re: [PATCH 23/27] KVM: PPC: Export MMU variables

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 2010-04-16 at 00:11 +0200, Alexander Graf wrote:
> Our shadow MMU code needs to know where the HTAB is located and how
> big it is. So we need some variables from the kernel exported to
> module space if KVM is built as a module.

Gross :-) Can't you just read the real SDR1 ? :-)

Cheers,
Ben.

> CC: Benjamin Herrenschmidt <benh@xxxxxxxxxxxxxxxxxxx>
> Signed-off-by: Alexander Graf <agraf@xxxxxxx>
> ---
>  arch/powerpc/kernel/ppc_ksyms.c |    5 +++++
>  1 files changed, 5 insertions(+), 0 deletions(-)
> 
> diff --git a/arch/powerpc/kernel/ppc_ksyms.c b/arch/powerpc/kernel/ppc_ksyms.c
> index bc9f39d..2b7c43f 100644
> --- a/arch/powerpc/kernel/ppc_ksyms.c
> +++ b/arch/powerpc/kernel/ppc_ksyms.c
> @@ -178,6 +178,11 @@ EXPORT_SYMBOL(switch_mmu_context);
>  extern long mol_trampoline;
>  EXPORT_SYMBOL(mol_trampoline); /* For MOL */
>  EXPORT_SYMBOL(flush_hash_pages); /* For MOL */
> +
> +extern struct hash_pte *Hash;
> +extern unsigned long _SDR1;
> +EXPORT_SYMBOL_GPL(Hash); /* For KVM */
> +EXPORT_SYMBOL_GPL(_SDR1); /* For KVM */
>  #ifdef CONFIG_SMP
>  extern int mmu_hash_lock;
>  EXPORT_SYMBOL(mmu_hash_lock); /* For MOL */


--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux