Re: transparent huge pages breaks KVM on AMD.

2016-05-13 Thread Marc Haber
On Fri, May 13, 2016 at 10:09:52AM +0200, Borislav Petkov wrote: > Try this one better - it fixes an unitialized var. Nosireebob, VMs crash even with this patch in the host as soon as the host has THP enabled. Greetings Marc -- ---

Re: transparent huge pages breaks KVM on AMD.

2016-05-13 Thread Borislav Petkov
On Fri, May 13, 2016 at 03:21:56PM +0200, Marc Haber wrote: > Instead, or in addiiton? Instead. You'll notice that it doesn't apply if you try "in addition". -- Regards/Gruss, Boris. ECO tip #101: Trim your mails when you reply.

Re: transparent huge pages breaks KVM on AMD.

2016-05-13 Thread Marc Haber
On Fri, May 13, 2016 at 10:07:45AM +0200, Borislav Petkov wrote: > On Fri, May 13, 2016 at 07:23:34AM +0200, Marc Haber wrote: > > How do I apply this? > > I'm attaching it. Had the VM crashing twice with this patch applied, THP==madvise on the host and THP==never in the VM. Now trying the other

Re: transparent huge pages breaks KVM on AMD.

2016-05-13 Thread Marc Haber
On Fri, May 13, 2016 at 09:35:45AM +0100, Dr. David Alan Gilbert wrote: > also between 4.4 and 4.5 it did seem worth mentioning as a long shot, > but it was no more than a long shot. It was however helpful. I'd have bisected kernel configuration instead of using the runtime control first, and seei

Re: transparent huge pages breaks KVM on AMD.

2016-05-13 Thread Marc Haber
On Fri, May 13, 2016 at 10:09:52AM +0200, Borislav Petkov wrote: > Try this one better - it fixes an unitialized var. Instead, or in addiiton? Greetings Marc -- - Marc Haber | "I don't trust Computers. They | Ma

Re: transparent huge pages breaks KVM on AMD.

2016-05-13 Thread Borislav Petkov
On Fri, May 13, 2016 at 11:08:46AM +0200, Marc Haber wrote: > It applies now to 4.5 as well. Yeah, I tried getting the raw message from marc.info but then it said: patch unexpectedly ends in middle of line Hunk #1 succeeded at 922 with fuzz 1. The attached versions I sent you are from my lkml mb

Re: transparent huge pages breaks KVM on AMD.

2016-05-13 Thread Marc Haber
On Fri, May 13, 2016 at 10:07:45AM +0200, Borislav Petkov wrote: > On Fri, May 13, 2016 at 07:23:34AM +0200, Marc Haber wrote: > > How do I apply this? > > I'm attaching it. Ok, stupid me, I thought that one could simply curl the web page. Too bad that list archives keep mangling patches :-( It

Re: transparent huge pages breaks KVM on AMD.

2016-05-13 Thread Dr. David Alan Gilbert
* Marc Haber (mh+linux-ker...@zugschlus.de) wrote: > Hi David, > > On Sat, Apr 23, 2016 at 07:52:46PM +0100, Dr. David Alan Gilbert wrote: > > Hmm, your problem does sound like bad hardware, but > > If you've got a nice reliable crash, can you try turning transparent huge > > pages > > off on

Re: transparent huge pages breaks KVM on AMD.

2016-05-13 Thread Borislav Petkov
Try this one better - it fixes an unitialized var. -- Regards/Gruss, Boris. ECO tip #101: Trim your mails when you reply. >From linux-kernel-ow...@vger.kernel.org Thu May 12 18:32:37 2016 From: Andrea Arcangeli To: Andrew Morton , linux...@kvack.org, linux-kernel@vger.kernel.org, linux-r..

Re: transparent huge pages breaks KVM on AMD.

2016-05-13 Thread Borislav Petkov
On Fri, May 13, 2016 at 07:23:34AM +0200, Marc Haber wrote: > How do I apply this? I'm attaching it. $ patch -p1 --dry-run -i /tmp/01-mm-thp-calculate_the_mapcount_correctly_for_thp_pages_during_wp_faults.patch checking file include/linux/mm.h checking file include/linux/swap.h checking file mm/

Re: transparent huge pages breaks KVM on AMD.

2016-05-12 Thread Marc Haber
On Thu, May 12, 2016 at 11:42:16PM +0300, Kirill A. Shutemov wrote: > But I guess it should apply cleanly to v4.5. Or at least without major > conflicts. [11/511]mh@fan:~/linux/debug/linux$ curl 'http://marc.info/?l=linux-rdma&m=146307074800836&w=2' | patch -p1 % Total% Received % Xferd Av

Re: transparent huge pages breaks KVM on AMD.

2016-05-12 Thread Kirill A. Shutemov
On Thu, May 12, 2016 at 10:34:57PM +0200, Marc Haber wrote: > On Thu, May 12, 2016 at 11:24:02PM +0300, Kirill A. Shutemov wrote: > > http://lkml.kernel.org/r/1463070742-18401-1-git-send-email-aarca...@redhat.com > > Is this in v4.6-rc7? No. > If so, can I just test v4.6-rc7? > > If not so, wou

Re: transparent huge pages breaks KVM on AMD.

2016-05-12 Thread Marc Haber
On Thu, May 12, 2016 at 11:24:02PM +0300, Kirill A. Shutemov wrote: > http://lkml.kernel.org/r/1463070742-18401-1-git-send-email-aarca...@redhat.com Is this in v4.6-rc7? If so, can I just test v4.6-rc7? If not so, would it be a valid approach to first check plain v4.6-rc7 and then patched v4.6-r

Re: transparent huge pages breaks KVM on AMD.

2016-05-12 Thread Kirill A. Shutemov
On Thu, May 12, 2016 at 10:20:09PM +0200, Marc Haber wrote: > Hi David, > > On Sat, Apr 23, 2016 at 07:52:46PM +0100, Dr. David Alan Gilbert wrote: > > Hmm, your problem does sound like bad hardware, but > > If you've got a nice reliable crash, can you try turning transparent huge > > pages >