Re: The way of mapping BIOS into the guest's address space

2012-02-15 Thread Cyrill Gorcunov
On Tue, Feb 14, 2012 at 11:07:08PM -0500, Kevin O'Connor wrote: ... > > hardware. Maybe we could poke someone from KVM camp for a hint? > > SeaBIOS has two ways to be deployed - first is to copy the image to > the top of the first 1MB (eg, 0xe-0xf) and jump to > 0xf000:0xfff0 in 16bit mode

Re: The way of mapping BIOS into the guest's address space

2012-02-14 Thread Kevin O'Connor
On Tue, Feb 14, 2012 at 04:13:42PM +0400, Cyrill Gorcunov wrote: > On Tue, Feb 14, 2012 at 01:10:59PM +0200, Pekka Enberg wrote: > > On Tue, Feb 14, 2012 at 1:03 PM, Yang Bai wrote: > > > Since on X86, bios is always at the end of the address space, so I > > > have some thought about how to implem

Re: The way of mapping BIOS into the guest's address space

2012-02-14 Thread Pekka Enberg
On Tue, Feb 14, 2012 at 5:38 PM, Cyrill Gorcunov wrote: >> > Ideally we should get rid of our minibios completely and only have >> > seabios here instead. >> >> No, no, they should co-exist. There's absolutely no reason to force >> people to use a BIOS to boot Linux. > > I meant run-time (ie in me

Re: The way of mapping BIOS into the guest's address space

2012-02-14 Thread Cyrill Gorcunov
On Tue, Feb 14, 2012 at 05:35:47PM +0200, Pekka Enberg wrote: > On Tue, Feb 14, 2012 at 09:20:18PM +0800, Yang Bai wrote: > >> And will seabios replace the present bios implement or co-exsit? > > On Tue, Feb 14, 2012 at 3:32 PM, Cyrill Gorcunov wrote: > > Ideally we should get rid of our minibios

Re: The way of mapping BIOS into the guest's address space

2012-02-14 Thread Pekka Enberg
On Tue, Feb 14, 2012 at 09:20:18PM +0800, Yang Bai wrote: >> And will seabios replace the present bios implement or co-exsit? On Tue, Feb 14, 2012 at 3:32 PM, Cyrill Gorcunov wrote: > Ideally we should get rid of our minibios completely and only have > seabios here instead. No, no, they should c

Re: The way of mapping BIOS into the guest's address space

2012-02-14 Thread cody
On 02/14/2012 07:03 PM, Yang Bai wrote: Hi all, Since on X86, bios is always at the end of the address space, so I have some thought about how to implement the seabios support for kvm tool. 1. using kvm__register_mem to map the end of address space to the guest then copy the code of seabios to

Re: The way of mapping BIOS into the guest's address space

2012-02-14 Thread Cyrill Gorcunov
On Tue, Feb 14, 2012 at 09:20:18PM +0800, Yang Bai wrote: > And will seabios replace the present bios implement or co-exsit? Ideally we should get rid of our minibios completely and only have seabios here instead. Cyrill -- To unsubscribe from this list: send the line "unsubscribe kvm" in

Re: The way of mapping BIOS into the guest's address space

2012-02-14 Thread Cyrill Gorcunov
On Tue, Feb 14, 2012 at 01:10:59PM +0200, Pekka Enberg wrote: > On Tue, Feb 14, 2012 at 1:03 PM, Yang Bai wrote: > > Since on X86, bios is always at the end of the address space, so I > > have some thought about how to implement the seabios support for kvm > > tool. > > > > 1. using kvm__register_

Re: The way of mapping BIOS into the guest's address space

2012-02-14 Thread Pekka Enberg
On Tue, Feb 14, 2012 at 1:03 PM, Yang Bai wrote: > Since on X86, bios is always at the end of the address space, so I > have some thought about how to implement the seabios support for kvm > tool. > > 1. using kvm__register_mem to map the end of address space to the > guest then copy the code of s

The way of mapping BIOS into the guest's address space

2012-02-14 Thread Yang Bai
Hi all, Since on X86, bios is always at the end of the address space, so I have some thought about how to implement the seabios support for kvm tool. 1. using kvm__register_mem to map the end of address space to the guest then copy the code of seabios to this mem region. Just emulating the bios c