[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] How does the QEMU load the binary files bios.bin and vg
From: |
Gleb Natapov |
Subject: |
Re: [Qemu-devel] How does the QEMU load the binary files bios.bin and vgabios-cirrus.bin? |
Date: |
Thu, 7 Apr 2011 22:31:07 +0300 |
On Thu, Apr 07, 2011 at 02:21:16PM -0500, Anthony Liguori wrote:
> On 04/07/2011 01:44 PM, Gleb Natapov wrote:
> >>KVM doesn't support SMM although that's not because of this. KVM
> >>doesn't allow execution of ROM memory which makes it difficult to
> >>implement PAM in the way it's intended to be implemented. This
> >>makes SMM a bit tricky to make work. Since there's never really
> >>been a pressing need to support SMM, to my knowledge, noone has even
> >>tried.
> >>
> >KVM allows to execute ROM memory (BIOS and option roms run this way). It
> >just makes it indistinguishable from RAM, but read only memory slot
> >support shouldn't be too hard. Why ability to execute ROM memory is
> >needed to support SMM though?
>
> QEMU does the leg work already to support SMM. It doesn't work with
> KVM because we treat SMM as ROM memory and trap read/write access.
>
> To make it work with KVM, you'd have to hack things around to switch
> the VGA space to RAM in order to the let the SMM code run. It's not
> impossible, but that's the main reason it doesn't Just Work.
>
Remapping part is easy. As you are saying QEMU already does remapping,
the only thing missing is creating/destroying/remapping KVM memory slot
(with SMP it is slightly more complicated, but doable). But after doing
this SMM will not Just Work in KVM on Intel because VMX does not support
SMM mode and it can't be approximated by vm86, so KVM will have to emulate
every single instruction while in SMM mode and this like will not work.
--
Gleb.
- Re: [Qemu-devel] How does the QEMU load the binary files bios.bin and vgabios-cirrus.bin?, (continued)
- Re: [Qemu-devel] How does the QEMU load the binary files bios.bin and vgabios-cirrus.bin?, Anthony Liguori, 2011/04/07
- Re: [Qemu-devel] How does the QEMU load the binary files bios.bin and vgabios-cirrus.bin?, Jordan Justen, 2011/04/07
- Re: [Qemu-devel] How does the QEMU load the binary files bios.bin and vgabios-cirrus.bin?, Gleb Natapov, 2011/04/07
- Re: [Qemu-devel] How does the QEMU load the binary files bios.bin and vgabios-cirrus.bin?, Anthony Liguori, 2011/04/07
- Re: [Qemu-devel] How does the QEMU load the binary files bios.bin and vgabios-cirrus.bin?, Gleb Natapov, 2011/04/07
- Re: [Qemu-devel] How does the QEMU load the binary files bios.bin and vgabios-cirrus.bin?, Jordan Justen, 2011/04/07
- Re: [Qemu-devel] How does the QEMU load the binary files bios.bin and vgabios-cirrus.bin?, Gleb Natapov, 2011/04/07
- Re: [Qemu-devel] How does the QEMU load the binary files bios.bin and vgabios-cirrus.bin?, Olivier Galibert, 2011/04/07
- Re: [Qemu-devel] How does the QEMU load the binary files bios.bin and vgabios-cirrus.bin?, Jordan Justen, 2011/04/07
- Re: [Qemu-devel] How does the QEMU load the binary files bios.bin and vgabios-cirrus.bin?, Anthony Liguori, 2011/04/07
- Re: [Qemu-devel] How does the QEMU load the binary files bios.bin and vgabios-cirrus.bin?,
Gleb Natapov <=
- Re: [Qemu-devel] How does the QEMU load the binary files bios.bin and vgabios-cirrus.bin?, Anthony Liguori, 2011/04/07
- Re: [Qemu-devel] How does the QEMU load the binary files bios.bin and vgabios-cirrus.bin?, Gleb Natapov, 2011/04/08
- Re: [Qemu-devel] How does the QEMU load the binary files bios.bin and vgabios-cirrus.bin?, Jordan Justen, 2011/04/07
- Re: [Qemu-devel] How does the QEMU load the binary files bios.bin and vgabios-cirrus.bin?, malc, 2011/04/07
Re: [Qemu-devel] How does the QEMU load the binary files bios.bin and vgabios-cirrus.bin?, Bei Guan, 2011/04/07