You are not logged in.

#1 2016-06-17 18:45:15

JoeLithium
Member
Registered: 2015-10-16
Posts: 4

Obscure Error with libvirt/qemu and vga passthrough

I originally posted this in Applications and DE's, but I think it might be a hardware problem.

Alright, smart people, help me out here. I can't seem to find this error happening to anyone past 2013. I've searched everywhere and also posted to reddit.

I'm running Arch Linux on the following system:

i5 6600K (I've disabled all overclocking while trying to get this to work)
Asrock z170 Extreme 4
32Gigs of Corsair Vengence Ram @ 2400 (ok fine so I'm still using the X.M.P profile here)
GTX 980ti


Trying to get VGA passthrough to work. In fact, I've got that part working perfectly. vfio-pci binds to the 980ti while I use the integrated graphics on the processor for the host. I've got Windows installed on the drive (I've tried using both a qcow2 image and a physical drive for this), and all seems to be happy. The machine boots up just fine, using the 980ti as it's Video device.

Until 10 minutes later. When without fail, the machine pauses and I get this in the libvirt log:

KVM: entry failed, hardware error 0x80000021

If you're running a guest on an Intel machine without unrestricted mode
support, the failure can be most likely due to the guest entering an invalid
state for Intel VT. For example, the guest maybe running in big real mode
which is not supported on less recent Intel processors.

RAX=fffff801f7a3e410 RBX=0000000000000000 RCX=ffffffffffd0a000 RDX=0000000000000000
RSI=0000000000000000 RDI=ffffda863e97dca0 RBP=ffff800026f10f90 RSP=ffff800026f10f08
R8 =ffff800026f11410 R9 =0000000000000000 R10=7ffff801f752d858 R11=7ffffffffffffffc
R12=0000000000000000 R13=ffff800026f11410 R14=000000000000001c R15=fffff801f752d800
RIP=fffff801f7a3e421 RFL=00010082 [--S----] CPL=0 II=0 A20=1 SMM=0 HLT=0
ES =002b 0000000000000000 ffffffff 00c0f300 DPL=3 DS [-WA]
CS =0010 0000000000000000 00000000 00209b00 DPL=0 CS64 [-RA]
SS =0018 0000000000000000 ffffffff 00c09300 DPL=0 DS [-WA]
DS =002b 0000000000000000 ffffffff 00c0f300 DPL=3 DS [-WA]
FS =0053 00000000626c8000 00007c00 0040f300 DPL=3 DS [-WA]
GS =002b ffff80001f1f0000 ffffffff 00c0f300 DPL=3 DS [-WA]
LDT=0000 0000000000000000 ffffffff 00000000
TR =0040 ffff80001f1f6ac0 00000067 00008b00 DPL=0 TSS64-busy
GDT= ffff80001f1fdb80 0000006f
IDT= ffff80001f1fdbf0 00000fff
CR0=80050033 CR2=0000000000000030 CR3=0000000322596000 CR4=001506f8
DR0=0000000000000000 DR1=0000000000000000 DR2=0000000000000000 DR3=0000000000000000 
DR6=00000000fffe0ff0 DR7=0000000000000400
EFER=0000000000000d01
Code=00 00 00 48 8b 0d e1 64 03 00 c7 81 b0 00 00 00 00 00 00 00 cc cc cc cc cc cc 0f 1f 84 00 00 00 00 00 b9 0b 08 00 00 33 c0 33 d2 0f 30 c3 cc cc cc

It's always approximate 10 minutes into it. I've tried using the current kernel in the Arch repos (4.6.2-2). I have tried the linux-vfio kernel that someone compiled (same version with ACS patches, which I don't really need anyway because everything was grouped fine). And I've tried the Mainline kernel, just for shits and giggles (4.3-rc3).

Without fail, this happens every time, with every configuration I have tried. All Virtualization support is enabled in my bios.

What. The. Hell.

Everything I search in google leads back to a kernel bug from 2013 that is supposedly fixed.

Anyone run into this?

Offline

#2 2016-06-17 19:27:44

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Obscure Error with libvirt/qemu and vga passthrough

JoeLithium wrote:

I originally posted this in Applications and DE's, but I think it might be a hardware problem.

Don't do that: use the Report button and ask a mod to move it.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2016-06-17 20:29:34

JoeLithium
Member
Registered: 2015-10-16
Posts: 4

Re: Obscure Error with libvirt/qemu and vga passthrough

Sorry about that. Won't happen again.

Offline

Board footer

Powered by FluxBB