From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paolo Bonzini Subject: Re: kvm smm mode support? Date: Sat, 26 Apr 2014 13:02:42 +0200 Message-ID: <535B9252.7010406@redhat.com> References: <1398411554.12369.28.camel@nilsson.home.kraxel.org> <535B7F00.5080803@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: kevin , Laszlo Ersek To: Gerd Hoffmann , kvm-devel Return-path: Received: from mail-ee0-f52.google.com ([74.125.83.52]:40735 "EHLO mail-ee0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751721AbaDZLCo (ORCPT ); Sat, 26 Apr 2014 07:02:44 -0400 Received: by mail-ee0-f52.google.com with SMTP id e49so3397425eek.39 for ; Sat, 26 Apr 2014 04:02:43 -0700 (PDT) In-Reply-To: <535B7F00.5080803@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: 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.