From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:32850) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZHb8B-0006eZ-Sn for qemu-devel@nongnu.org; Tue, 21 Jul 2015 13:15:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZHb88-0007Qq-L6 for qemu-devel@nongnu.org; Tue, 21 Jul 2015 13:15:03 -0400 Received: from mail-vn0-f53.google.com ([209.85.216.53]:33713) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZHb88-0007Q2-H9 for qemu-devel@nongnu.org; Tue, 21 Jul 2015 13:15:00 -0400 Received: by vnav141 with SMTP id v141so38431489vna.0 for ; Tue, 21 Jul 2015 10:15:00 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <1437494626-3773-8-git-send-email-markmb@redhat.com> References: <1437494626-3773-1-git-send-email-markmb@redhat.com> <1437494626-3773-8-git-send-email-markmb@redhat.com> From: Peter Maydell Date: Tue, 21 Jul 2015 18:14:40 +0100 Message-ID: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [RFC 7/7] fw_cfg DMA for x86 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?Q?Marc_Mar=C3=AD?= Cc: Stefan Hajnoczi , Paolo Bonzini , Kevin O'Connor , QEMU Developers , Gerd Hoffmann On 21 July 2015 at 17:03, Marc Mar=C3=AD wrote: > Enable fw_cfg for x86 machines. Create new machine to avoid > incompatibilites. > @@ -1391,7 +1399,14 @@ FWCfgState *pc_memory_init(MachineState *machine, > option_rom_mr, > 1); > > - fw_cfg =3D bochs_bios_init(); > + if (guest_info->fw_cfg_dma) { > + as =3D g_malloc(sizeof(*as)); > + address_space_init(as, ram_below_4g, "pc.as"); > + fw_cfg =3D bochs_bios_init(as, BIOS_CFG_DMA_ADDR); > + } else { > + fw_cfg =3D bochs_bios_init(NULL, 0); > + } > + As with ARM: what's the rationale for choosing this particular AddressSpace as the target for fw_cfg DMA? (I'm not saying it's wrong, necessarily -- I was just surprised we didn't just use the system address space.) thanks -- PMM