mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
vl, pc: turn -no-fd-bootchk into a machine property
Add a fd-bootchk property to PC machine types, so that -no-fd-bootchk returns an error if the machine does not support booting from floppies and checking for boot signatures therein. Suggested-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
158a054c4d
commit
84e945aad2
5 changed files with 37 additions and 9 deletions
|
@ -50,6 +50,7 @@ typedef struct PCMachineState {
|
|||
bool hpet_enabled;
|
||||
bool i8042_enabled;
|
||||
bool default_bus_bypass_iommu;
|
||||
bool fd_bootchk;
|
||||
uint64_t max_fw_size;
|
||||
|
||||
/* ACPI Memory hotplug IO base address */
|
||||
|
@ -146,7 +147,6 @@ OBJECT_DECLARE_TYPE(PCMachineState, PCMachineClass, PC_MACHINE)
|
|||
GSIState *pc_gsi_create(qemu_irq **irqs, bool pci_enabled);
|
||||
|
||||
/* pc.c */
|
||||
extern int fd_bootchk;
|
||||
|
||||
void pc_acpi_smi_interrupt(void *opaque, int irq, int level);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue