public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* The way of mapping BIOS into the guest's address space
@ 2012-02-14 11:03 Yang Bai
  2012-02-14 11:10 ` Pekka Enberg
  2012-02-14 14:57 ` cody
  0 siblings, 2 replies; 10+ messages in thread
From: Yang Bai @ 2012-02-14 11:03 UTC (permalink / raw)
  To: penberg; +Cc: kvm

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

2. leave the bios code alone and don't touch the guest's address
space. If the guest accesses the address belonging to the bios, it
will be an IO request and we can emulate the IO access to the bios
chip.

Any ideas about this?

And question:  How could I set the first instruction address after we
issue the vmlaunch instruction?

Thanks,
Yang

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

end of thread, other threads:[~2012-02-15 10:12 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-14 11:03 The way of mapping BIOS into the guest's address space Yang Bai
2012-02-14 11:10 ` Pekka Enberg
2012-02-14 12:13   ` Cyrill Gorcunov
     [not found]     ` <CAO_0yfNM8EjEb-MTHp3-5sY4nvmY=gJRmuHJQTByXKZ3YY++Zg@mail.gmail.com>
2012-02-14 13:32       ` Cyrill Gorcunov
2012-02-14 15:35         ` Pekka Enberg
2012-02-14 15:38           ` Cyrill Gorcunov
2012-02-14 15:41             ` Pekka Enberg
2012-02-15  4:07     ` Kevin O'Connor
2012-02-15 10:12       ` Cyrill Gorcunov
2012-02-14 14:57 ` cody

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox