From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38976) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z0Q9O-0006oy-ES for qemu-devel@nongnu.org; Thu, 04 Jun 2015 04:05:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z0Q9I-0000uV-TI for qemu-devel@nongnu.org; Thu, 04 Jun 2015 04:05:18 -0400 Received: from mx1.redhat.com ([209.132.183.28]:58022) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z0Q9I-0000uP-Gk for qemu-devel@nongnu.org; Thu, 04 Jun 2015 04:05:12 -0400 Message-ID: <557006B4.7030305@redhat.com> Date: Thu, 04 Jun 2015 10:05:08 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1433351328-23326-1-git-send-email-pbonzini@redhat.com> <1433351328-23326-16-git-send-email-pbonzini@redhat.com> In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2 15/23] target-i386: use memory API to implement SMRAM List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Crosthwaite Cc: "Michael S. Tsirkin" , Laszlo Ersek , "qemu-devel@nongnu.org Developers" , Gerd Hoffmann On 04/06/2015 09:19, Peter Crosthwaite wrote: > > Remove cpu_smm_register and cpu_smm_update. Instead, each CPU > > address space gets an extra region which is an alias of > > /machine/smram. This extra region is enabled or disabled > > as the CPU enters/exits SMM. > > Why is the connectivity from machine->CPU made via a predetermined > canon path? This has come up for me a few times out-of-tree and I have > managed it via links. Can the machine create the smram bus as a > MemoryRegion and in a loop pass it to each CPU via a MemoryRegion * > link? I did it this way because there's only one SMRAM---it's basically a part of address_space_memory that's usually hidden, and there's only one address_space_memory. Also, KVM would not support separate per-CPU SMRAMs, even if they existed on real hardware, so a single per-machine object made more sense to me. Paolo