KVM: PPC: Keep a record of HV guest view of hashed page table entries
[deliverable/linux.git] / arch / powerpc / include / asm / kvm_host.h
index 66c75cddaec64a4d39d429d18377809c5e545dde..629df2ed22f74ca936d8717c9d211eec4c73755b 100644 (file)
@@ -166,9 +166,19 @@ struct kvmppc_rma_info {
        atomic_t         use_count;
 };
 
+/*
+ * The reverse mapping array has one entry for each HPTE,
+ * which stores the guest's view of the second word of the HPTE
+ * (including the guest physical address of the mapping).
+ */
+struct revmap_entry {
+       unsigned long guest_rpte;
+};
+
 struct kvm_arch {
 #ifdef CONFIG_KVM_BOOK3S_64_HV
        unsigned long hpt_virt;
+       struct revmap_entry *revmap;
        unsigned long ram_npages;
        unsigned long ram_psize;
        unsigned long ram_porder;
This page took 0.023782 seconds and 5 git commands to generate.