On Mon, Nov 22, 2010 at 05:45:49PM +0200, Avi Kivity wrote:
On 11/22/2010 04:49 PM, Gerd Hoffmann wrote:
On real hardware seabios could emulate this using SMM.
On virtual hardware qemu could emulate this so we don't need SMM support in kvm.
How hard would it be to add SMM support into kvm?
Dunno. As I understand it the biggest issue is that kvm needs complete instruction emulation for big real mode as intel vmx supports protected mode only. Correct Avi?
Correct. Note, it's likely that we have almost everything covered already, so it's mostly testing (beyond implementing SMM entry/exit).
Do we? What about support for remapping of 0xa0000 address from framebuffer to RAM during SMM. If our reading of spec is correct it should be done per vcpu. Currently memory slots are shared between vcpus.
We can, of course, put SMM code in other memory address and mark it as reserver in E820 though.