intel / KVMGT-kernel

Other
41 stars 20 forks source link

Why should seabios notify KMVGT on booting? #6

Open mountainlion0523 opened 9 years ago

mountainlion0523 commented 9 years ago

After POST(power on self test) on seabios, seabios notify vgt that POST is finished, i'm wondering why seabios send 'port io message' to vgt after POST? is it neccesarry?

l1viathan commented 9 years ago

I did some tricks in seabios/qemu. The purpose is to make qemu:

    - provide IDs of an old host bridge to SeaBIOS
    - provide IDs of new host bridge(the physical one) to guest OS

So I made seabios to tell qemu that POST is done before jumping to guest OS context.

This may be the simplest method to make things work. But in the future, the q35 emulation support in qemu/seabios may have this unnecessary.