lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Mon, 7 Jul 2014 20:40:06 +0200 From: Daniel Vetter <daniel@...ll.ch> To: Paolo Bonzini <pbonzini@...hat.com> Cc: "Chen, Tiejun" <tiejun.chen@...el.com>, jani.nikula@...ux.intel.com, airlied@...ux.ie, intel-gfx@...ts.freedesktop.org, xen-devel@...ts.xensource.com, linux-kernel@...r.kernel.org, dri-devel@...ts.freedesktop.org, qemu-devel@...gnu.org Subject: Re: [Intel-gfx] [RFC][PATCH] gpu:drm:i915:intel_detect_pch: back to check devfn instead of check class type On Mon, Jul 07, 2014 at 07:58:30PM +0200, Paolo Bonzini wrote: > Il 07/07/2014 19:54, Daniel Vetter ha scritto: > >On Mon, Jul 07, 2014 at 04:57:45PM +0200, Paolo Bonzini wrote: > >>Il 07/07/2014 16:49, Daniel Vetter ha scritto: > >>>So the correct fix to forward intel gpus to guests is indeed to somehow > >>>fake the pch pci ids since the driver really needs them. Gross design, but > >>>that's how the hardware works. > >> > >>A way that could work for virtualization is this: if you find the card has a > >>magic subsystem vendor id, fetch the subsystem device id and use _that_ as > >>the PCH device id. > >> > >>Would that work for you? > > > >I guess for quemu it also depends upon what windows does since we can't > >change that. If we care about that part. Another consideration is > >supporting older kernels, if that's possible at all. > > Yes, but right now it's more important to get something that's not too gross > for the future, for both Linux and Windows. Hacks for existing guests can > be done separately, especially since they might differ between Linux (check > ISA bridge) and Windows (check 1f.0). Well old Linux also checked 1f.0, so kinda the same really. As long as 1f.0 is an isa bridge. Wrt Windows I don't really expect them to change this (they're probably more focuesed on the windows hypervisor or whatever). In the end if the approach is ok for quemu and isn't much worse than what we currently have I don't mind at all about the i915.ko code. I just want to avoid flip-flopping around on the hack du jour like we seem to do just now. -Daniel -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists