diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2021-10-20 14:48:10 +0200 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2021-11-02 15:57:27 +0100 |
| commit | f014c974595a1e3482c6afb57557a6e479b80328 (patch) | |
| tree | 048b4cd4294cdf3002d84beb0a229da60cf40b38 /include/hw/i386/x86.h | |
| parent | 0b09d44164b54505490f1771854d0b87441a3e2f (diff) | |
| download | focaccia-qemu-f014c974595a1e3482c6afb57557a6e479b80328.tar.gz focaccia-qemu-f014c974595a1e3482c6afb57557a6e479b80328.zip | |
target/i386: move linuxboot_dma_enabled to X86MachineState
This removes a parameter from x86_load_linux, and will avoid code duplication between the linux and multiboot cases once multiboot starts to support DMA. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/hw/i386/x86.h')
| -rw-r--r-- | include/hw/i386/x86.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/hw/i386/x86.h b/include/hw/i386/x86.h index 23267a3674..bb1cfb8896 100644 --- a/include/hw/i386/x86.h +++ b/include/hw/i386/x86.h @@ -38,6 +38,8 @@ struct X86MachineClass { bool save_tsc_khz; /* Enables contiguous-apic-ID mode */ bool compat_apic_id_mode; + /* use DMA capable linuxboot option rom */ + bool fwcfg_dma_enabled; }; struct X86MachineState { @@ -120,8 +122,7 @@ void x86_bios_rom_init(MachineState *ms, const char *default_firmware, void x86_load_linux(X86MachineState *x86ms, FWCfgState *fw_cfg, int acpi_data_size, - bool pvh_enabled, - bool linuxboot_dma_enabled); + bool pvh_enabled); bool x86_machine_is_smm_enabled(const X86MachineState *x86ms); bool x86_machine_is_acpi_enabled(const X86MachineState *x86ms); |