hexware-kernel/patches/qemu/9017-antidetect-hw-scsi.patch

80 lines
2.9 KiB
Diff
Raw Normal View History

2024-07-26 03:09:31 +03:00
diff -Naur --no-dereference a/hw/scsi/mptconfig.c b/hw/scsi/mptconfig.c
2024-07-26 20:24:42 +03:00
--- a/hw/scsi/mptconfig.c
+++ b/hw/scsi/mptconfig.c
2024-07-26 03:09:31 +03:00
@@ -189,12 +189,12 @@
size_t mptsas_config_manufacturing_0(MPTSASState *s, uint8_t **data, int address)
{
return MPTSAS_CONFIG_PACK(0, MPI_CONFIG_PAGETYPE_MANUFACTURING, 0x00,
- "s16s8s16s16s16",
- "QEMU MPT Fusion",
+ "s11s4s51s41s91",
+ "ASUS MPT Fusion",
"2.5",
- "QEMU MPT Fusion",
- "QEMU",
- "0000111122223333");
+ "ASUS MPT Fusion",
+ "ASUS",
+ "1145141919810000");
}
static
diff -Naur --no-dereference a/hw/scsi/scsi-bus.c b/hw/scsi/scsi-bus.c
2024-07-26 20:24:42 +03:00
--- a/hw/scsi/scsi-bus.c
+++ b/hw/scsi/scsi-bus.c
2024-07-26 03:09:31 +03:00
@@ -643,8 +643,8 @@
r->buf[3] = 2 | 0x10; /* HiSup, response data format */
r->buf[4] = r->len - 5; /* Additional Length = (Len - 1) - 4 */
r->buf[7] = 0x10 | (r->req.bus->info->tcq ? 0x02 : 0); /* Sync, TCQ. */
- memcpy(&r->buf[8], "QEMU ", 8);
- memcpy(&r->buf[16], "QEMU TARGET ", 16);
+ memcpy(&r->buf[8], "ASUS ", 8);
+ memcpy(&r->buf[16], "ASUS TARGET ", 16);
pstrcpy((char *) &r->buf[32], 4, qemu_hw_version());
}
return true;
diff -Naur --no-dereference a/hw/scsi/scsi-disk.c b/hw/scsi/scsi-disk.c
2024-07-26 20:24:42 +03:00
--- a/hw/scsi/scsi-disk.c
+++ b/hw/scsi/scsi-disk.c
2024-07-26 03:09:31 +03:00
@@ -2499,7 +2499,7 @@
s->version = g_strdup(qemu_hw_version());
}
if (!s->vendor) {
- s->vendor = g_strdup("QEMU");
+ s->vendor = g_strdup("ASUS");
}
if (!s->device_id) {
if (s->serial) {
@@ -2552,7 +2552,7 @@
s->qdev.blocksize = s->qdev.conf.logical_block_size;
s->qdev.type = TYPE_DISK;
if (!s->product) {
- s->product = g_strdup("QEMU HARDDISK");
+ s->product = g_strdup("ASUS HARDDISK");
}
scsi_realize(&s->qdev, errp);
2024-07-26 21:06:02 +03:00
}
2024-07-26 03:09:31 +03:00
@@ -2579,7 +2579,7 @@
s->qdev.type = TYPE_ROM;
s->features |= 1 << SCSI_DISK_F_REMOVABLE;
if (!s->product) {
- s->product = g_strdup("QEMU CD-ROM");
+ s->product = g_strdup("ASUS CD-ROM");
}
scsi_realize(&s->qdev, errp);
2024-07-26 21:08:18 +03:00
}
2024-07-26 03:09:31 +03:00
diff -Naur --no-dereference a/hw/scsi/spapr_vscsi.c b/hw/scsi/spapr_vscsi.c
2024-07-26 20:24:42 +03:00
--- a/hw/scsi/spapr_vscsi.c
+++ b/hw/scsi/spapr_vscsi.c
2024-07-26 03:09:31 +03:00
@@ -713,8 +713,8 @@
resp_data[3] = 0x02; /* Resp data format */
resp_data[4] = 36 - 5; /* Additional length */
resp_data[7] = 0x10; /* Sync transfers */
- memcpy(&resp_data[16], "QEMU EMPTY ", 16);
- memcpy(&resp_data[8], "QEMU ", 8);
+ memcpy(&resp_data[16], "ASUS EMPTY ", 16);
+ memcpy(&resp_data[8], "ASUS ", 8);
req->writing = 0;
vscsi_preprocess_desc(req);