qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [RFC 7/7] fw_cfg DMA for x86


From: Peter Maydell
Subject: Re: [Qemu-devel] [RFC 7/7] fw_cfg DMA for x86
Date: Tue, 21 Jul 2015 18:14:40 +0100

On 21 July 2015 at 17:03, Marc Marí <address@hidden> 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 = bochs_bios_init();
> +    if (guest_info->fw_cfg_dma) {
> +        as = g_malloc(sizeof(*as));
> +        address_space_init(as, ram_below_4g, "pc.as");
> +        fw_cfg = bochs_bios_init(as, BIOS_CFG_DMA_ADDR);
> +    } else {
> +        fw_cfg = 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]