------- Comment From p...@au1.ibm.com 2019-02-19 20:52 EDT------- (In reply to comment #34) > In a meeting with lagarcia, I was informed this patch is very important, and > that it is already on kernel 4.18-15 onwards. > > In fact, including this one. there are two important patches on this subject: > > https://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc.git/commit/ > ?h=kvm-ppc-next&id=c066fafc595eef5ae3c83ae3a8305956b8c3ef15 > https://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc.git/commit/ > ?h=kvm-ppc-next&id=6579804c431712d56956a63b1a01509441cc6800
To get those you will need to cherry-pick the following patches from upstream: 39c983ea0f96 KVM: PPC: Remove unused kvm_unmap_hva callback c4c8a7643e74 KVM: PPC: Book3S HV: Radix page fault handler optimizations f7caf712d885 KVM: PPC: Book3S HV: Streamline setting of reference and change bits 58c5c276b4c2 KVM: PPC: Book3S HV: Handle 1GB pages in radix page fault handler 31c8b0d0694a KVM: PPC: Book3S HV: Use __gfn_to_pfn_memslot() in page fault handler e2560b108fb1 KVM: PPC: Book3S HV: Make radix use correct tlbie sequence in kvmppc_radix_tlbie_page 7e3d9a1d0f2c KVM: PPC: Book3S HV: Make radix clear pte when unmapping df158189dbcc KVM: PPC: Book 3S HV: Do ptesync in radix guest exit path 21828c99ee91 powerpc/kvm: Switch kvm pmd allocator to custom allocator 99491e2d0e50 powerpc/mm/radix: Remove unused code 0078778a86b1 powerpc/mm/radix: implement LPID based TLB flushes to be used by KVM (note that this one will generate some conflicts) a5fad1e95952 KVM: PPC: Book3S HV: Use a helper to unmap ptes in the radix fault path a5704e83aa3d KVM: PPC: Book3S HV: Recursively unmap all page table entries when unmapping d91cb39ffa7b KVM: PPC: Book3S HV: Make radix use the Linux translation flush functions for partition scope 9a4506e11b97 KVM: PPC: Book3S HV: Make radix handle process scoped LPID flush in C, with relocation on bc64dd0e1c4e KVM: PPC: Book3S HV: radix: Refine IO region partition scope attributes 878cf2bb2d8d KVM: PPC: Book3S HV: radix: Do not clear partition PTE when RC or write bits do not match c066fafc595e KVM: PPC: Book3S HV: Use correct pagesize in kvm_unmap_radix() 71d29f43b633 KVM: PPC: Book3S HV: Don't use compound_order to determine host mapping size 6579804c4317 KVM: PPC: Book3S HV: Avoid crash from THP collapse during radix page fault -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1788098 Title: Avoid migration issues with aligned 2MB THB Status in The Ubuntu-power-systems project: Invalid Status in linux package in Ubuntu: Invalid Status in qemu package in Ubuntu: Invalid Status in linux source package in Bionic: Invalid Status in linux source package in Cosmic: Invalid Bug description: FYI: This blocks bug 1781526 - once this one here is resolved we can go on with SRU considerations for 1781526 ------- Comment From jhop...@us.ibm.com 2018-08-20 17:12 EDT------- Hi, in some environments it was observed that this qemu patch to enable THP made it more likely to hit guest migration issues, however the following kernel patch resolves those migration issues: https://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc.git/commit/?h=kvm-ppc-next&id=c066fafc595eef5ae3c83ae3a8305956b8c3ef15 KVM: PPC: Book3S HV: Use correct pagesize in kvm_unmap_radix() Once merged upstream, it would be good to include that change as well to avoid potential migration problems. Should I open a new bug for that or is it better to track here? Note Paelzer: I have not seen related migration issues myself, but it seems reasonable and confirmed by IBM. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-power-systems/+bug/1788098/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp