532065e741
Update to v1.3.0-rc1 plus an OOM workaround. Since SPICE v0.12.0 doesn't build on 11.4 due to a missing build dependency, enable SPICE only from 12.1 on. OBS-URL: https://build.opensuse.org/request/show/143323 OBS-URL: https://build.opensuse.org/package/show/Virtualization/qemu?expand=0&rev=119
32 lines
1.5 KiB
Diff
32 lines
1.5 KiB
Diff
From cf57bf12cc18d5e3343e58c31d21dda05d1b0d2a Mon Sep 17 00:00:00 2001
|
|
From: Alexander Graf <agraf@suse.de>
|
|
Date: Tue, 14 Apr 2009 16:26:33 +0200
|
|
Subject: [PATCH] qemu-cvs-ioctl_debug
|
|
|
|
Extends unsupported ioctl debug output.
|
|
|
|
Signed-off-by: Alexander Graf <agraf@suse.de>
|
|
Signed-off-by: Ulrich Hecht <uli@suse.de>
|
|
---
|
|
linux-user/syscall.c | 7 ++++++-
|
|
1 Datei geändert, 6 Zeilen hinzugefügt(+), 1 Zeile entfernt(-)
|
|
|
|
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
|
|
index edcc4c8..65246a1 100644
|
|
--- a/linux-user/syscall.c
|
|
+++ b/linux-user/syscall.c
|
|
@@ -3705,7 +3705,12 @@ static abi_long do_ioctl(int fd, abi_long cmd, abi_long arg)
|
|
ie = ioctl_entries;
|
|
for(;;) {
|
|
if (ie->target_cmd == 0) {
|
|
- gemu_log("Unsupported ioctl: cmd=0x%04lx\n", (long)cmd);
|
|
+ int i;
|
|
+ gemu_log("Unsupported ioctl: cmd=0x%04lx (%x)\n", (unsigned long)cmd, (unsigned int)(cmd & (TARGET_IOC_SIZEMASK << TARGET_IOC_SIZESHIFT)) >> TARGET_IOC_SIZESHIFT);
|
|
+ for (i = 0; ioctl_entries[i].target_cmd; i++) {
|
|
+ if ((ioctl_entries[i].target_cmd & ~(TARGET_IOC_SIZEMASK << TARGET_IOC_SIZESHIFT)) == (cmd & ~(TARGET_IOC_SIZEMASK << TARGET_IOC_SIZESHIFT)))
|
|
+ gemu_log("%p\t->\t%s (%x)\n", (void *)(unsigned long)ioctl_entries[i].host_cmd, ioctl_entries[i].name, (ioctl_entries[i].target_cmd & (TARGET_IOC_SIZEMASK << TARGET_IOC_SIZESHIFT)) >> TARGET_IOC_SIZESHIFT);
|
|
+ }
|
|
return -TARGET_ENOSYS;
|
|
}
|
|
if (ie->target_cmd == cmd)
|