All of lore.kernel.org
 help / color / mirror / Atom feed
* xen EFI boot and vga-passthrough
@ 2012-11-12 19:08 Kristian Hagsted Rasmussen
  2012-11-12 19:18 ` Kristian Hagsted Rasmussen
  2012-11-12 21:24 ` Laszlo Ersek
  0 siblings, 2 replies; 5+ messages in thread
From: Kristian Hagsted Rasmussen @ 2012-11-12 19:08 UTC (permalink / raw)
  To: xen-devel@lists.xen.org


[-- Attachment #1.1: Type: text/plain, Size: 1321 bytes --]

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


[-- Attachment #1.2: Type: text/html, Size: 5017 bytes --]

[-- Attachment #2: windows-domU.log --]
[-- Type: application/octet-stream, Size: 6272 bytes --]

domid: 6
Using xvda for guest's hda
Using file /dev/sda6 in read-write mode
Watching /local/domain/0/device-model/6/logdirty/cmd
Watching /local/domain/0/device-model/6/command
Watching /local/domain/6/cpu
char device redirected to /dev/pts/4
qemu_map_cache_init nr_buckets = 10000 size 4194304
shared page at pfn feffd
buffered io page at pfn feffb
Guest uuid = 7ab99945-ca42-4230-9628-0e82c8bae257
Register xen platform.
Done register platform.
platform_fixed_ioport: changed ro/rw state of ROM memory area. now is rw state.
xs_read(/local/domain/0/device-model/6/xen_extended_power_mgmt): read error
xs_read(): vncpasswd get error. /vm/7ab99945-ca42-4230-9628-0e82c8bae257/vncpasswd.
Log-dirty: no command yet.
I/O request not ready: 0, ptr: 0, port: 0, data: 0, count: 0, size: 0
I/O request not ready: 0, ptr: 0, port: 0, data: 0, count: 0, size: 0
vcpu-set: watch node error.
xs_read(/local/domain/6/log-throttling): read error
qemu: ignoring not-understood drive `/local/domain/6/log-throttling'
medium change watch on `/local/domain/6/log-throttling' - unknown device, ignored
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!
dm-command: hot insert pass-through pci dev
register_real_device: Assigning real physical device 00:1a.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:0x1a.0x0
pt_register_regions: IO region registered (size=0x00000400 base_addr=0xf7d38000)
pci_intx: intx=1
register_real_device: Real physical device 00:1a.0 registered successfuly!
IRQ type = INTx
dm-command: hot insert pass-through pci dev
register_real_device: Assigning real physical device 00:1b.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:0x1b.0x0
pt_register_regions: IO region registered (size=0x00004000 base_addr=0xf7d30004)
pci_intx: intx=1
register_real_device: Real physical device 00:1b.0 registered successfuly!
IRQ type = INTx
dm-command: hot insert pass-through pci dev
register_real_device: Assigning real physical device 00:1d.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:0x1d.0x0
pt_register_regions: IO region registered (size=0x00000400 base_addr=0xf7d37000)
pci_intx: intx=1
register_real_device: Real physical device 00:1d.0 registered successfuly!
IRQ type = INTx
dm-command: hot insert pass-through pci dev
register_real_device: Assigning real physical device 01:00.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: 0x1:0x0.0x0
pt_register_regions: IO region registered (size=0x00400000 base_addr=0xf7800004)
pt_register_regions: IO region registered (size=0x00400000 base_addr=0xf7400004)
pci_intx: intx=1
register_real_device: Real physical device 01:00.0 registered successfuly!
IRQ type = INTx
pt_iomem_map: e_phys=f1400000 maddr=f7800000 type=0 len=4194304 index=0 first_map=1
pt_iomem_map: e_phys=f1800000 maddr=f7400000 type=0 len=4194304 index=2 first_map=1
pt_iomem_map: e_phys=f1c20000 maddr=f7d30000 type=0 len=16384 index=0 first_map=1
pt_iomem_map: e_phys=f1c24000 maddr=f7d38000 type=0 len=4096 index=0 first_map=1
pt_iomem_map: e_phys=f1c25000 maddr=f7d37000 type=0 len=4096 index=0 first_map=1
platform_fixed_ioport: changed ro/rw state of ROM memory area. now is rw state.
platform_fixed_ioport: changed ro/rw state of ROM memory area. now is ro state.
pt_iomem_map: e_phys=ffffffff maddr=f7d38000 type=0 len=4096 index=0 first_map=0
pt_iomem_map: e_phys=f1c24000 maddr=f7d38000 type=0 len=4096 index=0 first_map=0
pt_iomem_map: e_phys=ffffffff maddr=f7d30000 type=0 len=16384 index=0 first_map=0
pt_iomem_map: e_phys=f1c20000 maddr=f7d30000 type=0 len=16384 index=0 first_map=0
pt_iomem_map: e_phys=ffffffff maddr=f7d37000 type=0 len=4096 index=0 first_map=0
pt_iomem_map: e_phys=f1c25000 maddr=f7d37000 type=0 len=4096 index=0 first_map=0
pt_iomem_map: e_phys=ffffffff maddr=f7800000 type=0 len=4194304 index=0 first_map=0
pt_iomem_map: e_phys=ffffffff maddr=f7400000 type=0 len=4194304 index=2 first_map=0
pt_iomem_map: e_phys=f1400000 maddr=f7800000 type=0 len=4194304 index=0 first_map=0
pt_iomem_map: e_phys=f1800000 maddr=f7400000 type=0 len=4194304 index=2 first_map=0
pt_iomem_map: e_phys=ffffffff maddr=f7d38000 type=0 len=4096 index=0 first_map=0
pt_iomem_map: e_phys=f1c24000 maddr=f7d38000 type=0 len=4096 index=0 first_map=0
pt_iomem_map: e_phys=ffffffff maddr=f7d30000 type=0 len=16384 index=0 first_map=0
pt_iomem_map: e_phys=ffffffff maddr=f7d37000 type=0 len=4096 index=0 first_map=0
pt_iomem_map: e_phys=f1c25000 maddr=f7d37000 type=0 len=4096 index=0 first_map=0
pt_iomem_map: e_phys=f1c20000 maddr=f7d30000 type=0 len=16384 index=0 first_map=0
pt_iomem_map: e_phys=ffffffff maddr=f7800000 type=0 len=4194304 index=0 first_map=0
pt_iomem_map: e_phys=ffffffff maddr=f7400000 type=0 len=4194304 index=2 first_map=0
pt_iomem_map: e_phys=f1400000 maddr=f7800000 type=0 len=4194304 index=0 first_map=0
pt_iomem_map: e_phys=f1800000 maddr=f7400000 type=0 len=4194304 index=2 first_map=0

[-- Attachment #3: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: xen EFI boot and vga-passthrough
  2012-11-12 19:08 xen EFI boot and vga-passthrough Kristian Hagsted Rasmussen
@ 2012-11-12 19:18 ` Kristian Hagsted Rasmussen
       [not found]   ` <CADnevChOxU8Ut3PQX28+E56uFZBiryLQyN3mZ1hL-ddTfiQ7+A@mail.gmail.com>
  2012-11-12 21:24 ` Laszlo Ersek
  1 sibling, 1 reply; 5+ messages in thread
From: Kristian Hagsted Rasmussen @ 2012-11-12 19:18 UTC (permalink / raw)
  To: Kristian Hagsted Rasmussen, xen-devel@lists.xen.org

[-- Attachment #1: Type: text/plain, Size: 1617 bytes --]

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


[-- Attachment #2: windows-domU.log --]
[-- Type: application/octet-stream, Size: 6272 bytes --]

domid: 6
Using xvda for guest's hda
Using file /dev/sda6 in read-write mode
Watching /local/domain/0/device-model/6/logdirty/cmd
Watching /local/domain/0/device-model/6/command
Watching /local/domain/6/cpu
char device redirected to /dev/pts/4
qemu_map_cache_init nr_buckets = 10000 size 4194304
shared page at pfn feffd
buffered io page at pfn feffb
Guest uuid = 7ab99945-ca42-4230-9628-0e82c8bae257
Register xen platform.
Done register platform.
platform_fixed_ioport: changed ro/rw state of ROM memory area. now is rw state.
xs_read(/local/domain/0/device-model/6/xen_extended_power_mgmt): read error
xs_read(): vncpasswd get error. /vm/7ab99945-ca42-4230-9628-0e82c8bae257/vncpasswd.
Log-dirty: no command yet.
I/O request not ready: 0, ptr: 0, port: 0, data: 0, count: 0, size: 0
I/O request not ready: 0, ptr: 0, port: 0, data: 0, count: 0, size: 0
vcpu-set: watch node error.
xs_read(/local/domain/6/log-throttling): read error
qemu: ignoring not-understood drive `/local/domain/6/log-throttling'
medium change watch on `/local/domain/6/log-throttling' - unknown device, ignored
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!
dm-command: hot insert pass-through pci dev
register_real_device: Assigning real physical device 00:1a.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:0x1a.0x0
pt_register_regions: IO region registered (size=0x00000400 base_addr=0xf7d38000)
pci_intx: intx=1
register_real_device: Real physical device 00:1a.0 registered successfuly!
IRQ type = INTx
dm-command: hot insert pass-through pci dev
register_real_device: Assigning real physical device 00:1b.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:0x1b.0x0
pt_register_regions: IO region registered (size=0x00004000 base_addr=0xf7d30004)
pci_intx: intx=1
register_real_device: Real physical device 00:1b.0 registered successfuly!
IRQ type = INTx
dm-command: hot insert pass-through pci dev
register_real_device: Assigning real physical device 00:1d.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:0x1d.0x0
pt_register_regions: IO region registered (size=0x00000400 base_addr=0xf7d37000)
pci_intx: intx=1
register_real_device: Real physical device 00:1d.0 registered successfuly!
IRQ type = INTx
dm-command: hot insert pass-through pci dev
register_real_device: Assigning real physical device 01:00.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: 0x1:0x0.0x0
pt_register_regions: IO region registered (size=0x00400000 base_addr=0xf7800004)
pt_register_regions: IO region registered (size=0x00400000 base_addr=0xf7400004)
pci_intx: intx=1
register_real_device: Real physical device 01:00.0 registered successfuly!
IRQ type = INTx
pt_iomem_map: e_phys=f1400000 maddr=f7800000 type=0 len=4194304 index=0 first_map=1
pt_iomem_map: e_phys=f1800000 maddr=f7400000 type=0 len=4194304 index=2 first_map=1
pt_iomem_map: e_phys=f1c20000 maddr=f7d30000 type=0 len=16384 index=0 first_map=1
pt_iomem_map: e_phys=f1c24000 maddr=f7d38000 type=0 len=4096 index=0 first_map=1
pt_iomem_map: e_phys=f1c25000 maddr=f7d37000 type=0 len=4096 index=0 first_map=1
platform_fixed_ioport: changed ro/rw state of ROM memory area. now is rw state.
platform_fixed_ioport: changed ro/rw state of ROM memory area. now is ro state.
pt_iomem_map: e_phys=ffffffff maddr=f7d38000 type=0 len=4096 index=0 first_map=0
pt_iomem_map: e_phys=f1c24000 maddr=f7d38000 type=0 len=4096 index=0 first_map=0
pt_iomem_map: e_phys=ffffffff maddr=f7d30000 type=0 len=16384 index=0 first_map=0
pt_iomem_map: e_phys=f1c20000 maddr=f7d30000 type=0 len=16384 index=0 first_map=0
pt_iomem_map: e_phys=ffffffff maddr=f7d37000 type=0 len=4096 index=0 first_map=0
pt_iomem_map: e_phys=f1c25000 maddr=f7d37000 type=0 len=4096 index=0 first_map=0
pt_iomem_map: e_phys=ffffffff maddr=f7800000 type=0 len=4194304 index=0 first_map=0
pt_iomem_map: e_phys=ffffffff maddr=f7400000 type=0 len=4194304 index=2 first_map=0
pt_iomem_map: e_phys=f1400000 maddr=f7800000 type=0 len=4194304 index=0 first_map=0
pt_iomem_map: e_phys=f1800000 maddr=f7400000 type=0 len=4194304 index=2 first_map=0
pt_iomem_map: e_phys=ffffffff maddr=f7d38000 type=0 len=4096 index=0 first_map=0
pt_iomem_map: e_phys=f1c24000 maddr=f7d38000 type=0 len=4096 index=0 first_map=0
pt_iomem_map: e_phys=ffffffff maddr=f7d30000 type=0 len=16384 index=0 first_map=0
pt_iomem_map: e_phys=ffffffff maddr=f7d37000 type=0 len=4096 index=0 first_map=0
pt_iomem_map: e_phys=f1c25000 maddr=f7d37000 type=0 len=4096 index=0 first_map=0
pt_iomem_map: e_phys=f1c20000 maddr=f7d30000 type=0 len=16384 index=0 first_map=0
pt_iomem_map: e_phys=ffffffff maddr=f7800000 type=0 len=4194304 index=0 first_map=0
pt_iomem_map: e_phys=ffffffff maddr=f7400000 type=0 len=4194304 index=2 first_map=0
pt_iomem_map: e_phys=f1400000 maddr=f7800000 type=0 len=4194304 index=0 first_map=0
pt_iomem_map: e_phys=f1800000 maddr=f7400000 type=0 len=4194304 index=2 first_map=0

[-- Attachment #3: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: xen EFI boot and vga-passthrough
  2012-11-12 19:08 xen EFI boot and vga-passthrough Kristian Hagsted Rasmussen
  2012-11-12 19:18 ` Kristian Hagsted Rasmussen
@ 2012-11-12 21:24 ` Laszlo Ersek
  2012-11-13  6:36   ` Kristian Hagsted Rasmussen
  1 sibling, 1 reply; 5+ messages in thread
From: Laszlo Ersek @ 2012-11-12 21:24 UTC (permalink / raw)
  To: Kristian Hagsted Rasmussen; +Cc: xen-devel@lists.xen.org

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: xen EFI boot and vga-passthrough
       [not found]   ` <CADnevChOxU8Ut3PQX28+E56uFZBiryLQyN3mZ1hL-ddTfiQ7+A@mail.gmail.com>
@ 2012-11-13  6:28     ` Kristian Hagsted Rasmussen
  0 siblings, 0 replies; 5+ messages in thread
From: Kristian Hagsted Rasmussen @ 2012-11-13  6:28 UTC (permalink / raw)
  To: Ricardo Jesus, xen-devel@lists.xen.org

> -----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
> >

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: xen EFI boot and vga-passthrough
  2012-11-12 21:24 ` Laszlo Ersek
@ 2012-11-13  6:36   ` Kristian Hagsted Rasmussen
  0 siblings, 0 replies; 5+ messages in thread
From: Kristian Hagsted Rasmussen @ 2012-11-13  6:36 UTC (permalink / raw)
  To: Laszlo Ersek; +Cc: xen-devel@lists.xen.org



> -----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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-11-13  6:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-12 19:08 xen EFI boot and vga-passthrough Kristian Hagsted Rasmussen
2012-11-12 19:18 ` Kristian Hagsted Rasmussen
     [not found]   ` <CADnevChOxU8Ut3PQX28+E56uFZBiryLQyN3mZ1hL-ddTfiQ7+A@mail.gmail.com>
2012-11-13  6:28     ` Kristian Hagsted Rasmussen
2012-11-12 21:24 ` Laszlo Ersek
2012-11-13  6:36   ` Kristian Hagsted Rasmussen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.