Re: [vfio-users] 1 GB hugepages cause host crash on guest shutdown with some GPUs

2015-12-18 Thread Dan Ziemba
On Fri, 2015-12-11 at 17:20 +0700, Okky Hendriansyah wrote: > As far as I know, the differences between linux-lts and linux-vfio- > lts package are (I hope Dan can confirm this?): > 1. Intel HD VGA Arbitration patch and PCIe ACS Override patch > 2. config and config.x86_64 files > Probably there’re

Re: [vfio-users] 1 GB hugepages cause host crash on guest shutdown with some GPUs

2015-12-11 Thread Okky Hendriansyah
On December 9, 2015 at 04:50:18, Hristo Iliev (hri...@hiliev.eu) wrote: ... With linux-vfio-lts I can reboot the host at any time and the VM always  boots ok afterwards, even if the host was running linux-lts and the VM was  hanging before the reboot. So, a more complete version of the above scenar

Re: [vfio-users] 1 GB hugepages cause host crash on guest shutdown with some GPUs

2015-12-08 Thread Hristo Iliev
On Tue, 8 Dec 2015 15:32:18 +0700 Okky Hendriansyah wrote: > On December 8, 2015 at 15:02:08, Hristo Iliev (hri...@hiliev.eu) wrote: > >> ... >> >> When I shut down the host completely and then boot it with linux-lts, the  >> VM boots up fine. I can reboot or shut down the VM and then boot it up

Re: [vfio-users] 1 GB hugepages cause host crash on guest shutdown with some GPUs

2015-12-08 Thread Okky Hendriansyah
On December 8, 2015 at 15:02:08, Hristo Iliev (hri...@hiliev.eu) wrote: Hi Okky,  My linux-lts is 4.1.13-1 from the core repo. I took some time over the  weekend to examine the situation more carefully and discovered that it is  actually the complete reverse of what I've written in my last email. 

Re: [vfio-users] 1 GB hugepages cause host crash on guest shutdown with some GPUs

2015-12-08 Thread Hristo Iliev
Hi Okky, On Tue, 8 Dec 2015 07:08:13 Okky Hendriansyah wrote: > On December 5, 2015 at 20:38:17, Hristo Iliev (hri...@hiliev.eu) wrote: >> Hi Okky,  >> >> Just to add another data point. My system is also Haswell-E (i7-5820K on >> an X99 motherboard) and my Win10 VM does not make it past the OV

Re: [vfio-users] 1 GB hugepages cause host crash on guest shutdown with some GPUs

2015-12-07 Thread Okky Hendriansyah
On December 5, 2015 at 20:38:17, Hristo Iliev (hri...@hiliev.eu) wrote: Hi Okky,  Just to add another data point. My system is also Haswell-E (i7-5820K on an  X99 motherboard) and my Win10 VM does not make it past the OVMF spash screen  with the symptomatic 100% CPU usage when the host is running

Re: [vfio-users] 1 GB hugepages cause host crash on guest shutdown with some GPUs

2015-12-05 Thread Hristo Iliev
On Tue, 1 Dec 2015 15:30:58 +0700 Okky Hendriansyah wrote: > ... > I just noticed that your platform is a Haswell-E but you’re using a > patched kernel. Do you still need it? Have you tried using the plain > linux-lts kernel? > Hi Okky, Just to add another data point. My system is also Haswell

Re: [vfio-users] 1 GB hugepages cause host crash on guest shutdown with some GPUs

2015-12-01 Thread Okky Hendriansyah
On December 1, 2015 at 15:41:06, Dan Ziemba (zman0...@gmail.com) wrote: I think I might have just figured out the issue.  My modprobe option  for vfio-pci is wrong for the sound card part of the GPU.  Should be  1002:aac8, not 1002:aac0.  This led to that device not being bound to  vfio-pci, so lib

Re: [vfio-users] 1 GB hugepages cause host crash on guest shutdown with some GPUs

2015-12-01 Thread Dan Ziemba
On Tue, 2015-12-01 at 15:30 +0700, Okky Hendriansyah wrote: > I just noticed that your platform is a Haswell-E but you’re using a > patched kernel. Do you still need it? Have you tried using the plain > linux-lts kernel?  I haven't tried the plain linux-lts kernel since last I checked it had some

Re: [vfio-users] 1 GB hugepages cause host crash on guest shutdown with some GPUs

2015-12-01 Thread Dan Ziemba
On Tue, 2015-12-01 at 02:48 -0500, Dan Ziemba wrote: > I'm using vfio-pci module, set up with this line in a modprobe.d > file. > In Arch, that gets copied into the initramfs so it applies before the > radeon module loads. > > options vfio-pci disable_vga > ids=1002:67b0,1002:aac0,1033:0194,8086:8

Re: [vfio-users] 1 GB hugepages cause host crash on guest shutdown with some GPUs

2015-12-01 Thread Okky Hendriansyah
On December 1, 2015 at 14:48:19, Dan Ziemba (zman0...@gmail.com) wrote: ... I'm using vfio-pci module, set up with this line in a modprobe.d file.  In Arch, that gets copied into the initramfs so it applies before the  radeon module loads.  options vfio-pci disable_vga ids=1002:67b0,1002:aac0,1033

Re: [vfio-users] 1 GB hugepages cause host crash on guest shutdown with some GPUs

2015-12-01 Thread Dan Ziemba
On Tue, 2015-12-01 at 02:48 -0500, Dan Ziemba wrote: > Maybe I will try turning off NX > protection... > > [84786.642703] kernel tried to execute NX-protected page - exploit > attempt? (uid: 0) > [84786.642724] BUG: unable to handle kernel paging request at > 88087b32c430 Nope.  Disabled NX p

Re: [vfio-users] 1 GB hugepages cause host crash on guest shutdown with some GPUs

2015-11-30 Thread Dan Ziemba
On Mon, 2015-11-30 at 18:37 +0700, Okky Hendriansyah wrote: > Hmm interesting, I found my setup to show weird white flickery things > on the guest desktop when I use 1 GB hugepages. Did you notice these > things on yours? Falling back to 2 MB hugepages bring things back to > normal. Nope, everythi

Re: [vfio-users] 1 GB hugepages cause host crash on guest shutdown with some GPUs

2015-11-30 Thread Okky Hendriansyah
On November 30, 2015 at 11:31:17, Dan Ziemba (zman0...@gmail.com) wrote: I recently got myself a "new" (used) gpu to replace the one I was  previously using for passthrough with vfio, and I discovered a strange  bug during this.  With the new GPU being passed through to the guest,  the host will "s

[vfio-users] 1 GB hugepages cause host crash on guest shutdown with some GPUs

2015-11-29 Thread Dan Ziemba
I recently got myself a "new" (used) gpu to replace the one I was previously using for passthrough with vfio, and I discovered a strange bug during this.  With the new GPU being passed through to the guest, the host will "sort of" crash on guest shutdown.  Video output freezes and all usb devices s