Re: kvm smm mode support?

Paolo Bonzini
2014-04-26T11:02:44Z

Il 26/04/2014 11:40, Paolo Bonzini ha scritto:
> Il 25/04/2014 09:39, Gerd Hoffmann ha scritto:
>> Anyone has plans to add smm support to kvm?
>
> No plans, but it should be a Simple Matter Of Programming...

Well, we need:

- an extra ioctl to inject an SMI (can be modeled after KVM_NMI)

- an extra user exit triggered when SMM is entered or left

- an extra ioctl (or a GET/SET_ONE_REG implementation) to read/write
whether we are in SMM, used to determine whether the #UD produced by RSM
should be forwarded to the guest or trigger emulation.

Paolo

> A good start would be to write unit tests for SMM that work with QEMU.
> Too bad we're late, it could have been a nice summer of code project.