aboutsummaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2024-02-13 10:56:56 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2024-02-28 00:23:36 +0100
commit84e945aad2d0cd950996a73705b4467e30ddbfa2 (patch)
treeaff90322df81e71edec7c0273e84b3c725db6662 /system
parent158a054c4d1a40179f5e83cd7e1cfe65de457b92 (diff)
downloadqemu-84e945aad2d0cd950996a73705b4467e30ddbfa2.zip
qemu-84e945aad2d0cd950996a73705b4467e30ddbfa2.tar.gz
qemu-84e945aad2d0cd950996a73705b4467e30ddbfa2.tar.bz2
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>
Diffstat (limited to 'system')
-rw-r--r--system/globals.c1
-rw-r--r--system/vl.c2
2 files changed, 1 insertions, 2 deletions
diff --git a/system/globals.c b/system/globals.c
index b6d4e72..5d0046b 100644
--- a/system/globals.c
+++ b/system/globals.c
@@ -41,7 +41,6 @@ int vga_interface_type = VGA_NONE;
bool vga_interface_created;
Chardev *parallel_hds[MAX_PARALLEL_PORTS];
int win2k_install_hack;
-int fd_bootchk = 1;
int graphic_rotate;
QEMUOptionRom option_rom[MAX_OPTION_ROMS];
int nb_option_roms;
diff --git a/system/vl.c b/system/vl.c
index b8469d9..98bf0c3 100644
--- a/system/vl.c
+++ b/system/vl.c
@@ -2927,7 +2927,7 @@ void qemu_init(int argc, char **argv)
optarg, FD_OPTS);
break;
case QEMU_OPTION_no_fd_bootchk:
- fd_bootchk = 0;
+ qdict_put_str(machine_opts_dict, "fd-bootchk", "off");
break;
case QEMU_OPTION_netdev:
default_net = 0;