From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51535) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YtIcC-00027p-7L for qemu-devel@nongnu.org; Fri, 15 May 2015 12:37:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YtIc8-000159-7S for qemu-devel@nongnu.org; Fri, 15 May 2015 12:37:36 -0400 Received: from mail-wg0-x22d.google.com ([2a00:1450:400c:c00::22d]:32935) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YtIc8-00014w-0g for qemu-devel@nongnu.org; Fri, 15 May 2015 12:37:32 -0400 Received: by wgin8 with SMTP id n8so119219654wgi.0 for ; Fri, 15 May 2015 09:37:30 -0700 (PDT) Sender: Paolo Bonzini From: Paolo Bonzini Date: Fri, 15 May 2015 18:36:56 +0200 Message-Id: <1431707823-51230-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [RFC PATCH 0/7] x86: SMRAM implementation for KVM List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, lersek@redhat.com, avi.kivity@gmail.com, kraxel@redhat.com This is the final piece of x86 SMM implementation, tested with PIIX (low SMRAM) and Q35 (high SMRAM). There is a problem---it has an awful layering violation in patch 5, and an only slightly better one in patch 6. If anyone has ideas, please speak up. Note that it is not possible to call KVM_SET_USER_MEMORY_REGION every time you enter or leave SMM, because that would only work for single-processor virtual machines. Paolo Andrew Jones (1): kvm-all: put kvm_mem_flags to more work Paolo Bonzini (6): kvm-all: remove useless typedef kvm-all: move KVMState definitions to kvm_int.h kvm-all: add KVM address space memory: add kvm_mem_flags to MemoryRegion i386: disable the region in /machine/smram when SMRAM is open kvm-i386: register SMRAM regions with KVM_MEM_X86_SMRAM hw/pci-host/piix.c | 6 +++ hw/pci-host/q35.c | 20 ++++++--- include/exec/memory.h | 4 ++ include/sysemu/kvm_int.h | 73 +++++++++++++++++++++++++++++++ kvm-all.c | 111 ++++++++++++++++------------------------------- memory.c | 17 ++++++-- target-i386/kvm.c | 27 ++++++++++++ 7 files changed, 173 insertions(+), 85 deletions(-) create mode 100644 include/sysemu/kvm_int.h -- 1.8.3.1