From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:47471) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TsL4w-0004cG-8Z for qemu-devel@nongnu.org; Mon, 07 Jan 2013 17:21:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TsL4v-00010P-6S for qemu-devel@nongnu.org; Mon, 07 Jan 2013 17:21:58 -0500 Received: from mx1.redhat.com ([209.132.183.28]:10886) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TsL4u-00010K-UF for qemu-devel@nongnu.org; Mon, 07 Jan 2013 17:21:57 -0500 From: Alex Williamson Date: Mon, 07 Jan 2013 15:21:55 -0700 Message-ID: <20130107221001.9460.85677.stgit@bling.home> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [PATCH 0/3] Towards vfio-base VGA device assignment List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: alex.williamson@redhat.com, kvm@vger.kernel.org Cc: qemu-devel@nongnu.org This is the companion series to the vfio-pci kernel series for VGA support. Combined, these don't do as much as you'd hope. Patch 1 is simpy a header update for the matching vfio kernel changes. Patch 2 is the meat of the changes, enabling vfio-pci to claim access to VGA ranges and pass them through to the kernel. The last patch is a hard coded hack specific to my system and only known to be needed on a Radeon HD5450 where there seems to be a backdoor for the VGA BIOS to find the physical address of the device (physical devices is at 0x4000, virtual device is at 0xc000). With this and the kernel patch, some devices are able to get through VGA bios execution. The HD5450 can even sync the monitor and show the correct thing on the screen if you run something that uses VGA graphic mode. Seabios seems to think VBE works, but for some reason VGA text mode doesn't work, the monitor turns off. So, like the kernel side, I'm posting these for archival purposes and with hopes that someone may have some ideas on what's still missing. Thanks, Alex --- Alex Williamson (3): qemu: [NOT FOR COMMIT] Update linux headers for vfio VGA vfio-pci: [NOT FOR COMMIT] Add support for VGA MMIO and I/O port access vfio-pci: [NOT FOR COMMIT] Hack around HD5450 I/O port backdoor hw/vfio_pci.c | 182 ++++++++++++++++++++++++++++++++++ linux-headers/asm-powerpc/kvm.h | 86 ++++++++++++++++ linux-headers/asm-powerpc/kvm_para.h | 13 +- linux-headers/linux/kvm.h | 21 +++- linux-headers/linux/kvm_para.h | 6 + linux-headers/linux/vfio.h | 9 +- linux-headers/linux/virtio_config.h | 6 + linux-headers/linux/virtio_ring.h | 6 + 8 files changed, 305 insertions(+), 24 deletions(-)