Hi all I can''t seem to find any information on vga-passthrough when booting through xen.efi, so I assume it should work. But I encounter a problem on a windows 7 HVM that boots fine when dom0 is booted through MBR but fails when dom0 is booted through UEFI. My system is: DQ77KB motherboard with bios version 44 Core i7-3779T with VT-d Intel HD graphics 4000 In the qemu log it seem like xen cannot reach the vga-bios. Is this a known problem when booting through xen.efi or is it a bug? dm-command: hot insert pass-through pci dev register_real_device: Assigning real physical device 00:02.0 ... register_real_device: Disable MSI translation via per device option register_real_device: Disable power management pt_iomul_init: Error: pt_iomul_init can''t open file /dev/xen/pci_iomul: No such file or directory: 0x0:0x2.0x0 pt_register_regions: IO region registered (size=0x00400000 base_addr=0xf7000004) pt_register_regions: IO region registered (size=0x10000000 base_addr=0xe000000c) pt_register_regions: IO region registered (size=0x00000040 base_addr=0x0000f001) setup_vga_pt: vga bios size (0x0) is invalid! register_real_device: Setup VGA BIOS of passthroughed gfx failed! Log file is attached. Kind regards Kristian Hagsted Rasmussen _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel
Hi all I can''t seem to find any information on vga-passthrough when booting through xen.efi, so I assume it should work. But I encounter a problem on a windows 7 HVM that boots fine when dom0 is booted through MBR but fails when dom0 is booted through UEFI. My system is: DQ77KB motherboard with bios version 44 Core i7-3779T with VT-d Intel HD graphics 4000 In the qemu log it seem like xen cannot reach the vga-bios. Is this a known problem when booting through xen.efi or is it a bug? dm-command: hot insert pass-through pci dev register_real_device: Assigning real physical device 00:02.0 ... register_real_device: Disable MSI translation via per device option register_real_device: Disable power management pt_iomul_init: Error: pt_iomul_init can''t open file /dev/xen/pci_iomul: No such file or directory: 0x0:0x2.0x0 pt_register_regions: IO region registered (size=0x00400000 base_addr=0xf7000004) pt_register_regions: IO region registered (size=0x10000000 base_addr=0xe000000c) pt_register_regions: IO region registered (size=0x00000040 base_addr=0x0000f001) setup_vga_pt: vga bios size (0x0) is invalid! register_real_device: Setup VGA BIOS of passthroughed gfx failed! Log file is attached. Just compared a log file from efi boot to one from MBR boot and found this discrepancy between the two: pt_register_regions: IO region registered (size=0x00400000 base_addr=0xdfc00004) - MBR boot see last addr 0xdfc00004 pt_register_regions: IO region registered (size=0x00400000 base_addr=0xf7000004) - EFI boot compare to MBR 0xf7000004 Kind regards Kristian Hagsted Rasmussen _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel
On 11/12/12 20:08, Kristian Hagsted Rasmussen wrote:> Hi all > > I can''t seem to find any information on vga-passthrough when booting > through xen.efi, so I assume it should work. But I encounter a problem > on a windows 7 HVM that boots fine when dom0 is booted through MBR but > fails when dom0 is booted through UEFI. > > My system is: > DQ77KB motherboard with bios version 44 > Core i7-3779T with VT-d > Intel HD graphics 4000 > > In the qemu log it seem like xen cannot reach the vga-bios. Is this a > known problem when booting through xen.efi or is it a bug?The legacy VGA BIOS is not present on UEFI platforms unless an (optional) compatibility support module provides it. (Tangentially, Secure Boot disables CSMs.) Windows 7 / Windows 2008 R2 have a bug: even when booted on an UEFI platform, they depend on the optional VGA BIOS unconditionally. This seems to have been fixed in Windows 8 / Windows Server 2012. See <http://www.linux-kvm.org/page/OVMF#Windows_Server_2008_R2_SP1> and/or the long "OVMF + Windows 2008 r2 sp1" thread on edk2-devel. (Apologies if I misunderstood your question. Admittedly, I haven''t done any homework wrt. xen.efi or vga passthrough. But your email had too many keywords to push my buttons.) Laszlo
> -----Original Message----- > From: Ricardo Jesus [mailto:ricardo.meb.jesus@gmail.com]> Update DQ77MK''s BIOS. BIOS 00050 fixed a bug with UEFI and Linux.I am convinced that for the DQ77kb, a bios for DQ77MK does not work, but the same bug has been fixed in the 0044 bios version for that board.> The current BIOS release is 00053 and you can find the release notes at > http://downloadmirror.intel.com/22094/eng/MK_0053_ReleaseNotes.pdf > > On Mon, Nov 12, 2012 at 7:18 PM, Kristian Hagsted Rasmussen > <kristian@hagsted.dk> wrote: > > Hi all > > > > I can''t seem to find any information on vga-passthrough when booting > through xen.efi, so I assume it should work. But I encounter a problem on a > windows 7 HVM that boots fine when dom0 is booted through MBR but fails > when dom0 is booted through UEFI. > > > > My system is: > > DQ77KB motherboard with bios version 44 Core i7-3779T with VT-d Intel > > HD graphics 4000 > > > > In the qemu log it seem like xen cannot reach the vga-bios. Is this a known > problem when booting through xen.efi or is it a bug? > > > > dm-command: hot insert pass-through pci dev > > register_real_device: Assigning real physical device 00:02.0 ... > > register_real_device: Disable MSI translation via per device option > > register_real_device: Disable power management > > pt_iomul_init: Error: pt_iomul_init can''t open file > > /dev/xen/pci_iomul: No such file or directory: 0x0:0x2.0x0 > > pt_register_regions: IO region registered (size=0x00400000 > > base_addr=0xf7000004) > > pt_register_regions: IO region registered (size=0x10000000 > > base_addr=0xe000000c) > > pt_register_regions: IO region registered (size=0x00000040 > > base_addr=0x0000f001) > > setup_vga_pt: vga bios size (0x0) is invalid! > > register_real_device: Setup VGA BIOS of passthroughed gfx failed! > > > > Log file is attached. > > > > Just compared a log file from efi boot to one from MBR boot and found this > discrepancy between the two: > > pt_register_regions: IO region registered (size=0x00400000 > base_addr=0xdfc00004) - MBR boot see last addr 0xdfc00004 > > pt_register_regions: IO region registered (size=0x00400000 > base_addr=0xf7000004) - EFI boot compare to MBR 0xf7000004 > > > > Kind regards Kristian Hagsted Rasmussen > > > > > > _______________________________________________ > > Xen-devel mailing list > > Xen-devel@lists.xen.org > > http://lists.xen.org/xen-devel > >
> -----Original Message----- > From: Laszlo Ersek [mailto:lersek@redhat.com]> On 11/12/12 20:08, Kristian Hagsted Rasmussen wrote: > > Hi all > > > > I can''t seem to find any information on vga-passthrough when booting > > through xen.efi, so I assume it should work. But I encounter a problem > > on a windows 7 HVM that boots fine when dom0 is booted through MBR > but > > fails when dom0 is booted through UEFI. > > > > My system is: > > DQ77KB motherboard with bios version 44 Core i7-3779T with VT-d Intel > > HD graphics 4000 > > > > In the qemu log it seem like xen cannot reach the vga-bios. Is this a > > known problem when booting through xen.efi or is it a bug? > > The legacy VGA BIOS is not present on UEFI platforms unless an > (optional) compatibility support module provides it. (Tangentially, Secure > Boot disables CSMs.) > > Windows 7 / Windows 2008 R2 have a bug: even when booted on an UEFI > platform, they depend on the optional VGA BIOS unconditionally. This seems > to have been fixed in Windows 8 / Windows Server 2012.I will have to try to install windows 8 when I have time then. Just compared a log file from efi boot to one from MBR boot and found this discrepancy between the two: pt_register_regions: IO region registered (size=0x00400000 base_addr=0xdfc00004) - MBR boot see last addr 0xdfc00004 pt_register_regions: IO region registered (size=0x00400000 base_addr=0xf7000004) - EFI boot compare to MBR 0xf7000004 Can UEFI explain this discrepancy in base_addr? It is admittedly the first portion of memory on the graphic card and is 4M in size, so I suspect it is the vga-bios. And if it should not be present when boot through UEFI I will happily live with the error, if windows 8 can boot.> See <http://www.linux- > kvm.org/page/OVMF#Windows_Server_2008_R2_SP1> > and/or the long "OVMF + Windows 2008 r2 sp1" thread on edk2-devel. > > (Apologies if I misunderstood your question. Admittedly, I haven''t done any > homework wrt. xen.efi or vga passthrough. But your email had too many > keywords to push my buttons.) > > Laszlo