-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
On Thu, Jun 09, 2016 at 03:37:13PM -0700,
marko....@gmail.com wrote:
> On Thursday, June 9, 2016 at 5:17:22 PM UTC+3, Marek Marczykowski-Górecki wrote:
> > On Thu, Jun 09, 2016 at 06:20:51AM -0700, Marcus at WetwareLabs wrote:
> > > I'm mainly interested in testing Xen 4.3 branch,
> >
> > Take a look at my github account, there is xen-4.4 branch, it should be
> > quite simple to get xen 4.3 from there. When you build such package in
> > Qubes 3.1 environment it should just work, at least in theory. But see
> > below.
>
> I haven't done any Qubes development/building before, so this should be interesting :)
> You mean setup the dev environment as here
>
https://www.qubes-os.org/doc/qubes-builder/
Yes.
> and then 3-way merge between your branch and vanilla xen-4.3 & 4.4 branches?
The repository contains only build scripts and Qubes specific patches,
so shouldn't be that hard. Simply change "version" file and try to build
it. You'll probably need to adjust some of those patches, but it
shouldn't be that hard.
Also, you'll probably need to rebuild components linked with Xen:
- core-libvirt
- core-vchan-xen
- gui-daemon
I guess all of them are either merged (so are present in 4.6), or were
rejected for some reason (so you should also think twice before using
them).
> I apologize, I should have been more specific. I followed the footsteps from XO..@riseup (link above), so I used only xl tools directly (with qemu-xen-traditional) and not libvirt.
Ah, I see. That also include running qemu in dom0, right? Keep in mind
that such setup greatly reduce security of the system, as qemu is full
of security bugs (take a look at Xen Security Advisories - most of them,
especially recent ones and those with greatest impact, are about qemu).
> The Windows installation can see the device and Nvidia driver installer can detect the GPU, but after driver installation it either BSODs or refuses to acknowledge the installed driver (Yellow mark and Code 43 in Device Manager).
> I've now tested following Nvidia drivers (64bit Win7) under Qubes 2.0, Xen 4.1.6 (xl tools):
> From 353.30 to 362.00: Code 43
> from 364.72 to newest 368.39: BSOD
>
> So there's a difference here with the drivers as well. According to discussion here
>
https://lime-technology.com/forum/index.php?topic=38664.0
> the Code 43 could mean that Nvidia drivers detect that they are running inside VM and refuse to work (since that functionality is reserved to higher-end Quadro cards). That could be the reason why KVM works but Xen doesn't (on newer KVM versions hypervisor can be hidden more easily, and that's one thing Xen lacks at the moment, as far as I know). I did try to disable "viridian" but that did not have any effect.
While "code 43" might mean such a problem, it looks like to be just a
generic error for not working driver:
"Windows has stopped this device because it has reported problems. (Code
43)"
> Also, I think KVM handles the device reset better than Xen. In addition, the UEFI boot support might also have something to with the better GPU passthrough support on KVM, but my knowledge on that is very vague at the moment. Please correct me if I'm wrong.
>
> Then I tried GPU passthrough to Linux Mint 17.3 64bit VM, but that wouldn't work either (defaulted to emulated Cirrus via VNC). Granted, it doesn't have the most recent kernel (3.19) nor nouveau drivers, so I should install a distro with newest patches and dig more into this. Debugging Linux is a bit more fun than figuring out why a blue screen appears.. :) Oddly, shutting down the Linux Mint VM (with passed through GPU) crashes the dom0 as well, so I should start testing at least with Xen 4.3 if this reappears.
Try to collect crash messages, especially in case of dom0 crashes. The
most reliable way would be to attach serial console (on some laptop
systems, it is available on docking station, if you have one).
A situation when VM can induce dom0 crash is a serious issue.
> One thing that works at least on Qubes 2.0 and Xen 4.1.6 (xl tools) is normal PCI passthrough. I can pass a USB controller and Win7Pro detects it. USB sticks, a mouse and USB audio device (ODAC) work just fine. No crashes during shutdown, and rebooting VM does not cause any problems.
> I remember trying to pass through PCI devices in Qubes 3.1 to Win7 HVM (via libvirt) but that did not seem to work out of the box (devices were not found, I think) and I didn't look further into it at that time. I guess that was related to the #1659 then.
Yes, exactly.
> my task list for near future:
> - build and install Xen 4.3 for Qubes 3.1
> - quick tests if GPU passthrough on Win7 works
> - if not, try GPU passthrough with most recent Linux VMs
> - try miscellaneous Xen patches
Looks like a good plan.
- --
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iQEcBAEBCAAGBQJXWfl5AAoJENuP0xzK19cssOgH/ilQzTN4DwkM+668HTKmC5AF
MFPovYb+ZQa3sMWWnbtofyvulU3+0cDbyVn8p0WilpjghLMXxyDRj5fsVHEAg0az
WgDkTmFYfBQrjgSNRo65pXj+DgK0lbw1ibq8qToTXMOdlqBc6VrdIdCpoKzJyGVu
N2vVv/16Womn3zY7t9ZttGTm0RjkF5MhGWEIpNHCMsC1+T1BTvjIufm1ihytOrdZ
2dGFRZgQxiSWIu0FLq4dG4XjJ4lFbOQj/IGzK9rkPoy7I/PQlfWK1Y65SQrwzsZt
iwSluE97EJQ+261uPM5y+Ie4cBG8b+Iuoq/IHyQx/JT5smY0Lye3Vmx2IC71nFg=
=cZBd
-----END PGP SIGNATURE-----