From 971db9eab1c2f4f555427386181c1b8cc633172b Mon Sep 17 00:00:00 2001 From: Gregory Lirent Date: Fri, 2 Aug 2024 09:51:31 +0300 Subject: [PATCH] Delete qemu antidetect IDE patch, for the compatiblity with Mikrotik VM --- patches/qemu/9009-antidetect-hw-ide.patch | 42 ----------------------- 1 file changed, 42 deletions(-) delete mode 100644 patches/qemu/9009-antidetect-hw-ide.patch diff --git a/patches/qemu/9009-antidetect-hw-ide.patch b/patches/qemu/9009-antidetect-hw-ide.patch deleted file mode 100644 index 9d35e6e..0000000 --- a/patches/qemu/9009-antidetect-hw-ide.patch +++ /dev/null @@ -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; - } - }