[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH]Load the cirrus vga rom for the OVMF UEFI support in hvmloader





2012/3/22 Attilio Rao <attilio.rao@xxxxxxxxxx>
On 22/03/12 08:29, Bei Guan wrote:
Hi All,

Now, OVMF UEFI can boot on the Xen hvmloader. But, there is no VGA bios for OVMF from the source code hvmloader/ovmf.c in the upstream Xen.
I have tried the vgabios provided by Xen, but I can see nothing through the vnc client or sdl graphic window. Actually, if we check the boot trace log of OVMF, we find that OVMF has booted into the OS installer grub.
When I try the cirrus_vga bios (named OvmfVideo.rom in edk2) provided by OVMF, I can see the OVMF boot successfully through the vnc client or sdl graphic window.


I had specifically skipped this for several reasons:
1) This is not the right way to fix this (not including the VGA blob)
2) When I tried, it was working for me so I just assumed tiancore was fixed by using the BAR directly

Maybe Andrei or Jordan can shade a light on tianocore behaviour here.
In the while, can you please explain how to exactly reproduce your issue, posting all the configurations and environment you used?
I have tried the upstream qemu and I also see nothing through the vnc or sdl graphic window.

The following is how to reproduce my problem.
1. Get the upstream xen source code, apply your latest v4 patch, and run make install-xen and make install-tools.
2. Get the upstream qemu source and install it.
3. Run #xl create hvm.cfg

The content of the config file hvm.cfg is list here.
#=================
bios="ovmf"
builder='hvm'
memory = 512
name = "Ubuntu_10_10_HVMDomain"

vcpus=1

pae=1
acpi=1
apic=1

vif = [ 'type=ioemu, bridge=virbr0' ]
disk = [ 'file:/root/gb/xen_img/hvm_ubuntu1010/hvm_ubuntu1010.img,ioemu:hda,w', 'file:/root/gb/ubuntu-10.10-desktop-amd64.iso,hdc:cdrom,r' ]

>
on_reboot   = 'restart'
on_crash    = 'destroy'

device_model_version = 'qemu-xen'

boot="cd"

sdl=1
opengl=1

vnc=0
vnclisten="0.0.0.0"
vncdisplay=1
vncunused=0
vncpasswd=''

stdvga=0
serial='pty'

monitor=1
usbdevice='tablet'
#=================

The kernel of Dom0 is
root@gavin-laptop:~# uname -a
Linux gavin-laptop 2.6.32-5-xen-amd64 #1 SMP Tue Jun 14 12:46:30 UTC 2011 x86_64 GNU/Linux

Is there any potential issues in the procedure?
However, if the ovmf-cirrus-vga loaded, the OVMF can run into the shell interface.(Just like the pictures attached) 

Thanks,
Bei Guan

 


Attilio


Attachment: ovmf-interface-1.png
Description: PNG image

Attachment: ovmf-interface-2.png
Description: PNG image

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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.