Delete qemu antidetect IDE patch, for the compatiblity with Mikrotik VM
This commit is contained in:
parent
e8d634bbca
commit
971db9eab1
@ -1,42 +0,0 @@
|
||||
diff -Naur --no-dereference a/hw/ide/atapi.c b/hw/ide/atapi.c
|
||||
--- a/hw/ide/atapi.c
|
||||
+++ b/hw/ide/atapi.c
|
||||
@@ -797,8 +797,8 @@
|
||||
buf[5] = 0; /* reserved */
|
||||
buf[6] = 0; /* reserved */
|
||||
buf[7] = 0; /* reserved */
|
||||
- padstr8(buf + 8, 8, "QEMU");
|
||||
- padstr8(buf + 16, 16, "QEMU DVD-ROM");
|
||||
+ padstr8(buf + 8, 8, "ASUS");
|
||||
+ padstr8(buf + 16, 16, "ASUS DVD-ROM");
|
||||
padstr8(buf + 32, 4, s->version);
|
||||
idx = 36;
|
||||
}
|
||||
diff -Naur --no-dereference a/hw/ide/core.c b/hw/ide/core.c
|
||||
--- a/hw/ide/core.c
|
||||
+++ b/hw/ide/core.c
|
||||
@@ -2627,20 +2627,20 @@
|
||||
pstrcpy(s->drive_serial_str, sizeof(s->drive_serial_str), dev->serial);
|
||||
} else {
|
||||
snprintf(s->drive_serial_str, sizeof(s->drive_serial_str),
|
||||
- "QM%05d", s->drive_serial);
|
||||
+ "ASUS%05d", s->drive_serial);
|
||||
}
|
||||
if (dev->model) {
|
||||
pstrcpy(s->drive_model_str, sizeof(s->drive_model_str), dev->model);
|
||||
} else {
|
||||
switch (kind) {
|
||||
case IDE_CD:
|
||||
- strcpy(s->drive_model_str, "QEMU DVD-ROM");
|
||||
+ strcpy(s->drive_model_str, "ASUS DVD-ROM");
|
||||
break;
|
||||
case IDE_CFATA:
|
||||
- strcpy(s->drive_model_str, "QEMU MICRODRIVE");
|
||||
+ strcpy(s->drive_model_str, "ASUS MICRODRIVE");
|
||||
break;
|
||||
default:
|
||||
- strcpy(s->drive_model_str, "QEMU HARDDISK");
|
||||
+ strcpy(s->drive_model_str, "ASUS HARDDISK");
|
||||
break;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user