ide, vl: turn -win2k-hack into a property on IDE devices

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
Paolo Bonzini 2024-02-20 17:09:30 +01:00
parent dcaff46101
commit d13f40357b
7 changed files with 8 additions and 5 deletions

View file

@ -65,6 +65,7 @@ struct IDEState {
int drive_serial;
char drive_serial_str[21];
char drive_model_str[41];
bool win2k_install_hack;
uint64_t wwn;
/* ide regs */
uint8_t feature;
@ -163,6 +164,7 @@ struct IDEDevice {
* 0xffff - reserved
*/
uint16_t rotation_rate;
bool win2k_install_hack;
};
typedef struct IDEDrive {