From nobody Sun May 19 17:58:03 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1564662296; cv=none; d=zoho.com; s=zohoarc; b=IOweXADVRVkRY6Um29SHFsaCbcPYCWXNFyoy0Ud48/Z5xsL4qjYktWivjzoHIYT33QC7JMU+05G21TCl2obsmQPcC6SmXQNL5Pk8Euhxc7nwcFVWQU25u8QLVVIyjTAM9Ovdhgb3Gis5ApFy1h18f9UomR0DbBf+d1hQ6Pra1WI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1564662296; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=wrqBcwmVODiPlDhMip3RN7gK53qCb7ZxoDvRG15XMWI=; b=Tjy7wqMvIwUBBtbjfIZ9oYw+YczQOb9GnfsIEroWOqwCqecgK6Z6Rzq/bLSPiezXSUrEsbzVa55IZstfdIbUKEJ+giWz8izrchyIJRmZKoSLPrazNSOVHOszUjzaxuiGyVLBfu3TsbFc3dE1JPp8h0qeWFERqImoj/CRNbCf54Y= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1564662296399915.4918169276627; Thu, 1 Aug 2019 05:24:56 -0700 (PDT) Received: from localhost ([::1]:55464 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1htA8d-0002ny-D6 for importer@patchew.org; Thu, 01 Aug 2019 08:24:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44992) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1htA6j-00012g-4g for qemu-devel@nongnu.org; Thu, 01 Aug 2019 08:23:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1htA6i-0002Zf-44 for qemu-devel@nongnu.org; Thu, 01 Aug 2019 08:22:57 -0400 Received: from mx2.rt-rk.com ([89.216.37.149]:43053 helo=mail.rt-rk.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1htA6h-0001cd-SN for qemu-devel@nongnu.org; Thu, 01 Aug 2019 08:22:56 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.rt-rk.com (Postfix) with ESMTP id 1E0131A20CF; Thu, 1 Aug 2019 14:21:53 +0200 (CEST) Received: from rtrkw774-lin.domain.local (rtrkw774-lin.domain.local [10.10.13.43]) by mail.rt-rk.com (Postfix) with ESMTPSA id 00A741A1F9F; Thu, 1 Aug 2019 14:21:52 +0200 (CEST) X-Virus-Scanned: amavisd-new at rt-rk.com From: Aleksandar Markovic To: qemu-devel@nongnu.org Date: Thu, 1 Aug 2019 14:21:02 +0200 Message-Id: <1564662076-17964-2-git-send-email-aleksandar.markovic@rt-rk.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1564662076-17964-1-git-send-email-aleksandar.markovic@rt-rk.com> References: <1564662076-17964-1-git-send-email-aleksandar.markovic@rt-rk.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 89.216.37.149 Subject: [Qemu-devel] [PATCH for 4.2 v5 01/15] linux user: Add support for FDFLUSH ioctl X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Yunqiang Su , laurent@vivier.eu, amarkovic@wavecomp.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Yunqiang Su FDFLUSH is used for flushing buffers of floppy drives. Support in QEMU is needed because some of Debian packages use this ioctl while running post-build tests. One such example is 'tar' package. Signed-off-by: Yunqiang Su Signed-off-by: Aleksandar Markovic Reviewed-by: Laurent Vivier --- linux-user/ioctls.h | 2 ++ linux-user/syscall.c | 1 + linux-user/syscall_defs.h | 4 ++++ 3 files changed, 7 insertions(+) diff --git a/linux-user/ioctls.h b/linux-user/ioctls.h index 3281c97..fb7b014 100644 --- a/linux-user/ioctls.h +++ b/linux-user/ioctls.h @@ -112,6 +112,8 @@ IOCTL(BLKZEROOUT, IOC_W, MK_PTR(MK_ARRAY(TYPE_ULONGLONG, 2))) #endif =20 + IOCTL(FDFLUSH, 0, TYPE_NULL) + #ifdef FIBMAP IOCTL(FIBMAP, IOC_W | IOC_R, MK_PTR(TYPE_LONG)) #endif diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 8367cb1..ee80175 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -87,6 +87,7 @@ #include #include #include +#include #if defined(CONFIG_FIEMAP) #include #endif diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h index 0662270..fb30bce 100644 --- a/linux-user/syscall_defs.h +++ b/linux-user/syscall_defs.h @@ -883,6 +883,10 @@ struct target_pollfd { #define TARGET_BLKROTATIONAL TARGET_IO(0x12, 126) #define TARGET_BLKZEROOUT TARGET_IO(0x12, 127) =20 +/* From */ + +#define TARGET_FDFLUSH TARGET_IO(2, 0x4b) + #define TARGET_FIBMAP TARGET_IO(0x00,1) /* bmap access */ #define TARGET_FIGETBSZ TARGET_IO(0x00,2) /* get the block size used fo= r bmap */ =20 --=20 2.7.4 From nobody Sun May 19 17:58:03 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1564662301; cv=none; d=zoho.com; s=zohoarc; b=I2qj9dKbq/tvJ7bWC2kCXSrkmI3Tv+/Zim7Y/mhUc/l7sMGkJ5xtrN6X2WgW/FgY7PenHeuvgp0fZNypusDtX9qm4M6Bi/APz/R1EKJPzuFMAm84a8tKNWmPDyxPJlAVBalylGuvd21GO9tX74FdNEsIKIT+kyO98+CS01c5Rw0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1564662301; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=gd3SOqCk3dAuAzTX30s1Ek92/ZPwG93H0HmhfXwyhhE=; b=nbCA8aOjUpgumWJNonBZhpOIKUc0HDkqevKZhRidZEBlWZzqreI4WegfoFnkMqUzRXyG0fagvvPWOU+I5PsFm+pio1Yv2HfCZYrit6u1kA1k9UqGkFK2ns0Dc8Vr7xtTbau6f/BVsPLCXUH4uzxAuqKGdohOM0rAPDq2bdWz38I= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 156466230196390.37780586390818; Thu, 1 Aug 2019 05:25:01 -0700 (PDT) Received: from localhost ([::1]:55466 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1htA8i-0002vO-Q8 for importer@patchew.org; Thu, 01 Aug 2019 08:25:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45100) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1htA76-0001DH-EW for qemu-devel@nongnu.org; Thu, 01 Aug 2019 08:23:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1htA75-0002hQ-6K for qemu-devel@nongnu.org; Thu, 01 Aug 2019 08:23:20 -0400 Received: from mx2.rt-rk.com ([89.216.37.149]:46377 helo=mail.rt-rk.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1htA71-0001lx-L5 for qemu-devel@nongnu.org; Thu, 01 Aug 2019 08:23:16 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.rt-rk.com (Postfix) with ESMTP id D31D91A222E; Thu, 1 Aug 2019 14:22:06 +0200 (CEST) Received: from rtrkw774-lin.domain.local (rtrkw774-lin.domain.local [10.10.13.43]) by mail.rt-rk.com (Postfix) with ESMTPSA id B6CB31A217A; Thu, 1 Aug 2019 14:22:06 +0200 (CEST) X-Virus-Scanned: amavisd-new at rt-rk.com From: Aleksandar Markovic To: qemu-devel@nongnu.org Date: Thu, 1 Aug 2019 14:21:03 +0200 Message-Id: <1564662076-17964-3-git-send-email-aleksandar.markovic@rt-rk.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1564662076-17964-1-git-send-email-aleksandar.markovic@rt-rk.com> References: <1564662076-17964-1-git-send-email-aleksandar.markovic@rt-rk.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 89.216.37.149 Subject: [Qemu-devel] [PATCH for 4.2 v5 02/15] linux-user: Add support for FDMSGON and FDMSGOFF ioctls X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: laurent@vivier.eu, amarkovic@wavecomp.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Aleksandar Markovic FDMSGON and FDMSGOFF switch informational messages of floppy drives on and off. Signed-off-by: Aleksandar Markovic Reviewed-by: Laurent Vivier --- linux-user/ioctls.h | 2 ++ linux-user/syscall_defs.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/linux-user/ioctls.h b/linux-user/ioctls.h index fb7b014..9978163 100644 --- a/linux-user/ioctls.h +++ b/linux-user/ioctls.h @@ -112,6 +112,8 @@ IOCTL(BLKZEROOUT, IOC_W, MK_PTR(MK_ARRAY(TYPE_ULONGLONG, 2))) #endif =20 + IOCTL(FDMSGON, 0, TYPE_NULL) + IOCTL(FDMSGOFF, 0, TYPE_NULL) IOCTL(FDFLUSH, 0, TYPE_NULL) =20 #ifdef FIBMAP diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h index fb30bce..cd97e9b 100644 --- a/linux-user/syscall_defs.h +++ b/linux-user/syscall_defs.h @@ -885,6 +885,8 @@ struct target_pollfd { =20 /* From */ =20 +#define TARGET_FDMSGON TARGET_IO(2, 0x45) +#define TARGET_FDMSGOFF TARGET_IO(2, 0x46) #define TARGET_FDFLUSH TARGET_IO(2, 0x4b) =20 #define TARGET_FIBMAP TARGET_IO(0x00,1) /* bmap access */ --=20 2.7.4 From nobody Sun May 19 17:58:03 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1564662381; cv=none; d=zoho.com; s=zohoarc; b=kCgQq4X7lTsE9IYfXs7Ifax9iUj30Dz1r2Q+/HxUpd6Yvxoy7QMF0eduhNZdvofqg8ZwSIiwxI9+4HU9ZISU2Mf4I6akpRALDNkuAN+hkRXdkuU8Nog0rzrF7g6HvzAqYJVd/qt+UgN7iMbYmGE5rw04rDSPsRT9jDWmH7ED5uk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1564662381; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=z9G0qlajjd7o6Go49W6tLBJoq66sA4pRHVx0vJkzW3M=; b=nyOjbetIUerSlv+N7XiOP+ASua2UHS5Mmf8tnYAcxPWQxxf1LWjbR8ljchVPBOCai9K8w5PqnIdtP9h171H/EsYt9o8y3M+tS/kcffJ/JmaTetu6/SfOipnSlaosulR5i0d2IhodyYyNPr1BDRJW3v4W4BfCdHFRLltP+5+BmtM= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1564662380890268.9113775990396; Thu, 1 Aug 2019 05:26:20 -0700 (PDT) Received: from localhost ([::1]:55490 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1htA9z-0006I1-Um for importer@patchew.org; Thu, 01 Aug 2019 08:26:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45146) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1htA7B-0001Ep-Ob for qemu-devel@nongnu.org; Thu, 01 Aug 2019 08:23:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1htA7A-0002jL-B4 for qemu-devel@nongnu.org; Thu, 01 Aug 2019 08:23:25 -0400 Received: from mx2.rt-rk.com ([89.216.37.149]:46974 helo=mail.rt-rk.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1htA77-0001tQ-39 for qemu-devel@nongnu.org; Thu, 01 Aug 2019 08:23:21 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.rt-rk.com (Postfix) with ESMTP id 266F41A2288; Thu, 1 Aug 2019 14:22:18 +0200 (CEST) Received: from rtrkw774-lin.domain.local (rtrkw774-lin.domain.local [10.10.13.43]) by mail.rt-rk.com (Postfix) with ESMTPSA id 03ACD1A2282; Thu, 1 Aug 2019 14:22:18 +0200 (CEST) X-Virus-Scanned: amavisd-new at rt-rk.com From: Aleksandar Markovic To: qemu-devel@nongnu.org Date: Thu, 1 Aug 2019 14:21:04 +0200 Message-Id: <1564662076-17964-4-git-send-email-aleksandar.markovic@rt-rk.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1564662076-17964-1-git-send-email-aleksandar.markovic@rt-rk.com> References: <1564662076-17964-1-git-send-email-aleksandar.markovic@rt-rk.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 89.216.37.149 Subject: [Qemu-devel] [PATCH for 4.2 v5 03/15] linux-user: Add support for FDRESET, FDRAWCMD, FDTWADDLE, and FDEJECT ioctls X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: laurent@vivier.eu, amarkovic@wavecomp.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Aleksandar Markovic FDRESET, FDRAWCMD, FDTWADDLE, and FDEJECT ioctls are misc commands for controlling a floppy drive. Signed-off-by: Aleksandar Markovic --- linux-user/ioctls.h | 4 ++++ linux-user/syscall_defs.h | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/linux-user/ioctls.h b/linux-user/ioctls.h index 9978163..ab4ef2e 100644 --- a/linux-user/ioctls.h +++ b/linux-user/ioctls.h @@ -115,6 +115,10 @@ IOCTL(FDMSGON, 0, TYPE_NULL) IOCTL(FDMSGOFF, 0, TYPE_NULL) IOCTL(FDFLUSH, 0, TYPE_NULL) + IOCTL(FDRESET, 0, TYPE_NULL) + IOCTL(FDRAWCMD, 0, TYPE_NULL) + IOCTL(FDTWADDLE, 0, TYPE_NULL) + IOCTL(FDEJECT, 0, TYPE_NULL) =20 #ifdef FIBMAP IOCTL(FIBMAP, IOC_W | IOC_R, MK_PTR(TYPE_LONG)) diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h index cd97e9b..4185391 100644 --- a/linux-user/syscall_defs.h +++ b/linux-user/syscall_defs.h @@ -888,6 +888,10 @@ struct target_pollfd { #define TARGET_FDMSGON TARGET_IO(2, 0x45) #define TARGET_FDMSGOFF TARGET_IO(2, 0x46) #define TARGET_FDFLUSH TARGET_IO(2, 0x4b) +#define TARGET_FDRESET TARGET_IO(2, 0x54) +#define TARGET_FDRAWCMD TARGET_IO(2, 0x58) +#define TARGET_FDTWADDLE TARGET_IO(2, 0x59) +#define TARGET_FDEJECT TARGET_IO(2, 0x5a) =20 #define TARGET_FIBMAP TARGET_IO(0x00,1) /* bmap access */ #define TARGET_FIGETBSZ TARGET_IO(0x00,2) /* get the block size used fo= r bmap */ --=20 2.7.4 From nobody Sun May 19 17:58:03 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1564662639; cv=none; d=zoho.com; s=zohoarc; b=PeeXOHoXAJUarq6qqZumrOmsuBUmqxrn3QrhTvCgqRH2OpruXa3jjnW9o+hzvk5V1d0pd73UVq61N0PWdcrKTViTfUp0Bn/7YUsh0fHXKeUp3hv7xpZynsyzFi+SHHx95PEX7RCWo6tdKJM1/dIBtci/e+jbd0ocKhq5OtjYDPo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1564662639; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=5JqfVkcfyUbaLfF8X0BKRyauqcXoUC1lC8KRRVzLHns=; b=RfII+jv/lifdre/gG2p67x4JEVhyKtwUkxFDRN06Nhu912SXdex3g7g56aCgFxnCT8oBT7QTPkmAS+lhv7VLgNG8AlxHO0grz/bLfMZfhuGrnuLR1gSvCC4vq509KQxfZ+f/81AHoMf/LMCXJ0QIqEGzIiRYQnaQA7F/WL/iWXY= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1564662639491875.228572273108; Thu, 1 Aug 2019 05:30:39 -0700 (PDT) Received: from localhost ([::1]:55548 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1htAEA-0004q7-IA for importer@patchew.org; Thu, 01 Aug 2019 08:30:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45253) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1htA7I-0001Rl-2O for qemu-devel@nongnu.org; Thu, 01 Aug 2019 08:23:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1htA7E-0002nn-Es for qemu-devel@nongnu.org; Thu, 01 Aug 2019 08:23:30 -0400 Received: from mx2.rt-rk.com ([89.216.37.149]:47344 helo=mail.rt-rk.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1htA7D-0001ye-KH for qemu-devel@nongnu.org; Thu, 01 Aug 2019 08:23:27 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.rt-rk.com (Postfix) with ESMTP id F34A91A216D; Thu, 1 Aug 2019 14:22:24 +0200 (CEST) Received: from rtrkw774-lin.domain.local (rtrkw774-lin.domain.local [10.10.13.43]) by mail.rt-rk.com (Postfix) with ESMTPSA id D410F1A216C; Thu, 1 Aug 2019 14:22:24 +0200 (CEST) X-Virus-Scanned: amavisd-new at rt-rk.com From: Aleksandar Markovic To: qemu-devel@nongnu.org Date: Thu, 1 Aug 2019 14:21:05 +0200 Message-Id: <1564662076-17964-5-git-send-email-aleksandar.markovic@rt-rk.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1564662076-17964-1-git-send-email-aleksandar.markovic@rt-rk.com> References: <1564662076-17964-1-git-send-email-aleksandar.markovic@rt-rk.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 89.216.37.149 Subject: [Qemu-devel] [PATCH for 4.2 v5 04/15] linux-user: Add support for FDFMTBEG, FDFMTTRK, and FDFMTEND ioctls X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: laurent@vivier.eu, amarkovic@wavecomp.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Aleksandar Markovic FDFMTBEG, FDFMTTRK, and FDFMTEND ioctls provide means for controlling formatting of a floppy drive. Signed-off-by: Aleksandar Markovic --- linux-user/ioctls.h | 3 +++ linux-user/syscall_defs.h | 3 +++ linux-user/syscall_types.h | 5 +++++ 3 files changed, 11 insertions(+) diff --git a/linux-user/ioctls.h b/linux-user/ioctls.h index ab4ef2e..e393ad6 100644 --- a/linux-user/ioctls.h +++ b/linux-user/ioctls.h @@ -114,6 +114,9 @@ =20 IOCTL(FDMSGON, 0, TYPE_NULL) IOCTL(FDMSGOFF, 0, TYPE_NULL) + IOCTL(FDFMTBEG, 0, TYPE_NULL) + IOCTL(FDFMTTRK, IOC_W, MK_PTR(MK_STRUCT(STRUCT_format_descr))) + IOCTL(FDFMTEND, 0, TYPE_NULL) IOCTL(FDFLUSH, 0, TYPE_NULL) IOCTL(FDRESET, 0, TYPE_NULL) IOCTL(FDRAWCMD, 0, TYPE_NULL) diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h index 4185391..1ca115d 100644 --- a/linux-user/syscall_defs.h +++ b/linux-user/syscall_defs.h @@ -887,6 +887,9 @@ struct target_pollfd { =20 #define TARGET_FDMSGON TARGET_IO(2, 0x45) #define TARGET_FDMSGOFF TARGET_IO(2, 0x46) +#define TARGET_FDFMTBEG TARGET_IO(2, 0x47) +#define TARGET_FDFMTTRK TARGET_IOW(2, 0x48, struct target_format_desc= r) +#define TARGET_FDFMTEND TARGET_IO(2, 0x49) #define TARGET_FDFLUSH TARGET_IO(2, 0x4b) #define TARGET_FDRESET TARGET_IO(2, 0x54) #define TARGET_FDRAWCMD TARGET_IO(2, 0x58) diff --git a/linux-user/syscall_types.h b/linux-user/syscall_types.h index 4e36983..d82d1a5 100644 --- a/linux-user/syscall_types.h +++ b/linux-user/syscall_types.h @@ -261,6 +261,11 @@ STRUCT(blkpg_ioctl_arg, TYPE_INT, /* datalen */ TYPE_PTRVOID) /* data */ =20 +STRUCT(format_descr, + TYPE_INT, /* device */ + TYPE_INT, /* head */ + TYPE_INT) /* track */ + #if defined(CONFIG_USBFS) /* usb device ioctls */ STRUCT(usbdevfs_ctrltransfer, --=20 2.7.4 From nobody Sun May 19 17:58:03 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1564662559; cv=none; d=zoho.com; s=zohoarc; b=ckY2XeeA2fdFE69eUEBQN5qAYk5Yf4rCMrMGXfEf3EYIoJS2cXxczcFpdBFlA7sF7dy41pmTescDQJh+MSFJEiJjm8PADezRR9OFr0x9Xpkv7KDVv1KkyhNtszJsobkSQWZ0eTV+NP8zQJ2OR5xHd/TmB7J6/C24Pq99QgddXOI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1564662559; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=NcZxaboLcVMSllcLf0GfYD4m4GT/qrsjPme3YSexVCQ=; b=diOZxodGAeKZeUKwyNCVhu3wC//bvUUvI16QtXpYwqrdaScNEqy98ZYeC/yYlBrJ80lQXckY5iVhqrGd3tyddu4SFhYxP4adXZ2ZCZe1SThP+0jq3bY1EkBE6jPTbf3UACqPZ5BF/8ADOA96Hyf0j4udfNm305sib6el1S8lTmc= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1564662559498647.7077301834231; Thu, 1 Aug 2019 05:29:19 -0700 (PDT) Received: from localhost ([::1]:55518 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1htACs-0002b1-I3 for importer@patchew.org; Thu, 01 Aug 2019 08:29:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44923) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1htA6a-0000ru-Ry for qemu-devel@nongnu.org; Thu, 01 Aug 2019 08:22:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1htA6Y-0002JJ-R4 for qemu-devel@nongnu.org; Thu, 01 Aug 2019 08:22:48 -0400 Received: from mx2.rt-rk.com ([89.216.37.149]:48399 helo=mail.rt-rk.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1htA6Y-0002HW-JJ for qemu-devel@nongnu.org; Thu, 01 Aug 2019 08:22:46 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.rt-rk.com (Postfix) with ESMTP id 9B4381A2258; Thu, 1 Aug 2019 14:22:32 +0200 (CEST) Received: from rtrkw774-lin.domain.local (rtrkw774-lin.domain.local [10.10.13.43]) by mail.rt-rk.com (Postfix) with ESMTPSA id 745FE1A21E1; Thu, 1 Aug 2019 14:22:32 +0200 (CEST) X-Virus-Scanned: amavisd-new at rt-rk.com From: Aleksandar Markovic To: qemu-devel@nongnu.org Date: Thu, 1 Aug 2019 14:21:06 +0200 Message-Id: <1564662076-17964-6-git-send-email-aleksandar.markovic@rt-rk.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1564662076-17964-1-git-send-email-aleksandar.markovic@rt-rk.com> References: <1564662076-17964-1-git-send-email-aleksandar.markovic@rt-rk.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 89.216.37.149 Subject: [Qemu-devel] [PATCH for 4.2 v5 05/15] linux-user: Add support for FDSETEMSGTRESH, FDSETMAXERRS, and FDGETMAXERRS ioctls X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: laurent@vivier.eu, amarkovic@wavecomp.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Aleksandar Markovic FDSETEMSGTRESH, FDSETMAXERRS, and FDGETMAXERRS ioctls are commands for controlling error reporting of a floppy drive. Signed-off-by: Aleksandar Markovic --- linux-user/ioctls.h | 2 ++ linux-user/syscall_defs.h | 19 +++++++++++++++++++ linux-user/syscall_types.h | 7 +++++++ 3 files changed, 28 insertions(+) diff --git a/linux-user/ioctls.h b/linux-user/ioctls.h index e393ad6..6551938 100644 --- a/linux-user/ioctls.h +++ b/linux-user/ioctls.h @@ -118,6 +118,8 @@ IOCTL(FDFMTTRK, IOC_W, MK_PTR(MK_STRUCT(STRUCT_format_descr))) IOCTL(FDFMTEND, 0, TYPE_NULL) IOCTL(FDFLUSH, 0, TYPE_NULL) + IOCTL(FDSETMAXERRS, IOC_W, MK_PTR(MK_STRUCT(STRUCT_floppy_max_errors)= )) + IOCTL(FDGETMAXERRS, IOC_R, MK_PTR(MK_STRUCT(STRUCT_floppy_max_errors)= )) IOCTL(FDRESET, 0, TYPE_NULL) IOCTL(FDRAWCMD, 0, TYPE_NULL) IOCTL(FDTWADDLE, 0, TYPE_NULL) diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h index 1ca115d..36256b0 100644 --- a/linux-user/syscall_defs.h +++ b/linux-user/syscall_defs.h @@ -885,12 +885,31 @@ struct target_pollfd { =20 /* From */ =20 +struct target_floppy_max_errors { + abi_uint abort; + abi_uint read_track; + abi_uint reset; + abi_uint recal; + abi_uint reporting; +}; + +struct target_format_descr { + abi_uint device; + abi_uint head; + abi_uint track; +}; + #define TARGET_FDMSGON TARGET_IO(2, 0x45) #define TARGET_FDMSGOFF TARGET_IO(2, 0x46) #define TARGET_FDFMTBEG TARGET_IO(2, 0x47) #define TARGET_FDFMTTRK TARGET_IOW(2, 0x48, struct target_format_desc= r) #define TARGET_FDFMTEND TARGET_IO(2, 0x49) +#define TARGET_FDSETEMSGTRESH TARGET_IO(2, 0x4a) #define TARGET_FDFLUSH TARGET_IO(2, 0x4b) +#define TARGET_FDSETMAXERRS TARGET_IOW(2, 0x4c, = \ + struct target_floppy_max_errors) +#define TARGET_FDGETMAXERRS TARGET_IOR(2, 0x0e, = \ + struct target_floppy_max_errors) #define TARGET_FDRESET TARGET_IO(2, 0x54) #define TARGET_FDRAWCMD TARGET_IO(2, 0x58) #define TARGET_FDTWADDLE TARGET_IO(2, 0x59) diff --git a/linux-user/syscall_types.h b/linux-user/syscall_types.h index d82d1a5..5ba7c34 100644 --- a/linux-user/syscall_types.h +++ b/linux-user/syscall_types.h @@ -261,6 +261,13 @@ STRUCT(blkpg_ioctl_arg, TYPE_INT, /* datalen */ TYPE_PTRVOID) /* data */ =20 +STRUCT(floppy_max_errors, + TYPE_INT, /* abort */ + TYPE_INT, /* read_track */ + TYPE_INT, /* reset */ + TYPE_INT, /* recal */ + TYPE_INT) /* reporting */ + STRUCT(format_descr, TYPE_INT, /* device */ TYPE_INT, /* head */ --=20 2.7.4 From nobody Sun May 19 17:58:03 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1564662326; cv=none; d=zoho.com; s=zohoarc; b=dANbTHb3hoti4zYoHI+62LFkbLCRQe1XwM2IROxgZjoDl+ZhIQ75DWvDnd8pDtG9fIr+4QxSkV+jzyQoWOmJd0blOckjc4EX20//sxVE2txsfBjvS5VLFQr3qGbRPSYCAWQioJ3HeJ5nOXrq44/u0tEJaPAJ6rP5N/nBUHWwjIQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1564662326; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=QukqMhCUXCC0JFeCRATg/NMNZSgTA7WIDmyYJwnhPvE=; b=GZp5iNNm5o+EtGWLiF0df9v4ehGG6GgIVdBIp/AhRBbN6Zd7PMTiLDNSQVkRPMyndVU5DKZL/h3KeeUpg0g/urb40V9u00GMtJLnkxw7ixFqLE+Rk+27WfMvCe74Ya6bvZVjTvBkNB7FJrK43vveIjGViVjwe4J9xIcnmhOXtrE= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1564662326028674.8463203886182; Thu, 1 Aug 2019 05:25:26 -0700 (PDT) Received: from localhost ([::1]:55468 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1htA97-000480-3S for importer@patchew.org; Thu, 01 Aug 2019 08:25:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44908) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1htA6Z-0000qP-Ue for qemu-devel@nongnu.org; Thu, 01 Aug 2019 08:22:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1htA6Y-0002JR-RK for qemu-devel@nongnu.org; Thu, 01 Aug 2019 08:22:47 -0400 Received: from mx2.rt-rk.com ([89.216.37.149]:48398 helo=mail.rt-rk.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1htA6Y-0002HX-Jp for qemu-devel@nongnu.org; Thu, 01 Aug 2019 08:22:46 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.rt-rk.com (Postfix) with ESMTP id 4E0011A21E1; Thu, 1 Aug 2019 14:22:38 +0200 (CEST) Received: from rtrkw774-lin.domain.local (rtrkw774-lin.domain.local [10.10.13.43]) by mail.rt-rk.com (Postfix) with ESMTPSA id 351B11A216C; Thu, 1 Aug 2019 14:22:38 +0200 (CEST) X-Virus-Scanned: amavisd-new at rt-rk.com From: Aleksandar Markovic To: qemu-devel@nongnu.org Date: Thu, 1 Aug 2019 14:21:07 +0200 Message-Id: <1564662076-17964-7-git-send-email-aleksandar.markovic@rt-rk.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1564662076-17964-1-git-send-email-aleksandar.markovic@rt-rk.com> References: <1564662076-17964-1-git-send-email-aleksandar.markovic@rt-rk.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 89.216.37.149 Subject: [Qemu-devel] [PATCH for 4.2 v5 06/15] linux-user: Add support for HDIO_GET_NICE and HDIO_SET_NICE ioctls X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: laurent@vivier.eu, amarkovic@wavecomp.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Aleksandar Markovic Add support for HDIO_GET_NICE and HDIO_SET_NICE ioctls. Signed-off-by: Aleksandar Markovic --- linux-user/ioctls.h | 2 ++ linux-user/syscall_defs.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/linux-user/ioctls.h b/linux-user/ioctls.h index 6551938..895ba35 100644 --- a/linux-user/ioctls.h +++ b/linux-user/ioctls.h @@ -434,6 +434,7 @@ IOCTL(HDIO_GET_NOWERR, IOC_R, MK_PTR(TYPE_INT)) IOCTL(HDIO_GET_DMA, IOC_R, MK_PTR(TYPE_INT)) IOCTL(HDIO_GET_32BIT, IOC_R, MK_PTR(TYPE_INT)) + IOCTL(HDIO_GET_NICE, IOC_R, MK_PTR(TYPE_INT)) IOCTL(HDIO_DRIVE_CMD, IOC_R, MK_PTR(TYPE_INT)) IOCTL(HDIO_SET_UNMASKINTR, 0, TYPE_INT) IOCTL(HDIO_SET_MULTCOUNT, 0, TYPE_INT) @@ -442,6 +443,7 @@ IOCTL(HDIO_SET_DMA, 0, TYPE_INT) IOCTL(HDIO_SET_32BIT, 0, TYPE_INT) IOCTL(HDIO_SET_PIO_MODE, 0, TYPE_INT) + IOCTL(HDIO_SET_NICE, 0, TYPE_INT) =20 IOCTL(VFAT_IOCTL_READDIR_BOTH, IOC_R, MK_PTR(MK_ARRAY(MK_STRUCT(STRUCT_d= irent), 2))) IOCTL(VFAT_IOCTL_READDIR_SHORT, IOC_R, MK_PTR(MK_ARRAY(MK_STRUCT(STRUCT_= dirent), 2))) diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h index 36256b0..4e219a1 100644 --- a/linux-user/syscall_defs.h +++ b/linux-user/syscall_defs.h @@ -1064,6 +1064,7 @@ struct target_format_descr { #define TARGET_HDIO_GET_32BIT 0x0309 /* get current io_32bit sett= ing */ #define TARGET_HDIO_GET_NOWERR 0x030a /* get ignore-write-error fl= ag */ #define TARGET_HDIO_GET_DMA 0x030b /* get use-dma flag */ +#define TARGET_HDIO_GET_NICE 0x030c /* get nice flags */ #define TARGET_HDIO_GET_IDENTITY 0x030d /* get IDE identification in= fo */ #define TARGET_HDIO_DRIVE_CMD 0x031f /* execute a special drive c= ommand */ =20 @@ -1075,6 +1076,7 @@ struct target_format_descr { #define TARGET_HDIO_SET_NOWERR 0x0325 /* change ignore-write-error= flag */ #define TARGET_HDIO_SET_DMA 0x0326 /* change use-dma flag */ #define TARGET_HDIO_SET_PIO_MODE 0x0327 /* reconfig interface to new= speed */ +#define TARGET_HDIO_SET_NICE 0x0329 /* set nice flags */ =20 /* loop ioctls */ #define TARGET_LOOP_SET_FD 0x4C00 --=20 2.7.4 From nobody Sun May 19 17:58:03 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1564662282; cv=none; d=zoho.com; s=zohoarc; b=CXxS0nkH0Nhqjl+Fh+pkjoyzHiNIf8xSPiDT0h3cs43nZMBZCqC9ZYvMR1ScF3fDPFuhZZLuAl6srOjugpGdSuABDMz3G/jp0GPqaLjjPhWY+7aD0ccpeJK67tZmWPG3zcvKB88VYyVmwFXrbwMmEE6K2R/zrP5ijKuAaDlVmno= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1564662282; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=cw5nF6/pLaFGU2Oz+WnWduVyuNUsWX1Vj6bIRvzx2q8=; b=HKTFf6XnKPlkFCRh0Ny7wKowZRI/CjJGXAsss9LAnI/Wl0gmWz4J5Fh5kh4RuHARiDMp7n9xlrMntPHt/Q0C6A7fo/8nIBT/ED3ym33vu8x3CZhcnihimcR5hjAWOr7UBT4GS/machIyEaWc8mUqeMvW+cI7l6vhNasSYbQbsYY= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1564662281825673.6582456458899; Thu, 1 Aug 2019 05:24:41 -0700 (PDT) Received: from localhost ([::1]:55462 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1htA8O-0002g5-NF for importer@patchew.org; Thu, 01 Aug 2019 08:24:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44967) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1htA6g-0000z5-Lx for qemu-devel@nongnu.org; Thu, 01 Aug 2019 08:22:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1htA6f-0002XS-Mw for qemu-devel@nongnu.org; Thu, 01 Aug 2019 08:22:54 -0400 Received: from mx2.rt-rk.com ([89.216.37.149]:48762 helo=mail.rt-rk.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1htA6f-0002XF-GV for qemu-devel@nongnu.org; Thu, 01 Aug 2019 08:22:53 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.rt-rk.com (Postfix) with ESMTP id 74D611A216C; Thu, 1 Aug 2019 14:22:51 +0200 (CEST) Received: from rtrkw774-lin.domain.local (rtrkw774-lin.domain.local [10.10.13.43]) by mail.rt-rk.com (Postfix) with ESMTPSA id 5CFB31A215B; Thu, 1 Aug 2019 14:22:51 +0200 (CEST) X-Virus-Scanned: amavisd-new at rt-rk.com From: Aleksandar Markovic To: qemu-devel@nongnu.org Date: Thu, 1 Aug 2019 14:21:08 +0200 Message-Id: <1564662076-17964-8-git-send-email-aleksandar.markovic@rt-rk.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1564662076-17964-1-git-send-email-aleksandar.markovic@rt-rk.com> References: <1564662076-17964-1-git-send-email-aleksandar.markovic@rt-rk.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 89.216.37.149 Subject: [Qemu-devel] [PATCH for 4.2 v5 07/15] linux-user: Add support for HDIO_GET_WCACHE and HDIO_SET_WCACHE ioctls X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: laurent@vivier.eu, amarkovic@wavecomp.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Aleksandar Markovic Add support for HDIO_GET_WCACHE and HDIO_SET_WCACHE ioctls. Signed-off-by: Aleksandar Markovic --- linux-user/ioctls.h | 2 ++ linux-user/syscall_defs.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/linux-user/ioctls.h b/linux-user/ioctls.h index 895ba35..b54a184 100644 --- a/linux-user/ioctls.h +++ b/linux-user/ioctls.h @@ -435,6 +435,7 @@ IOCTL(HDIO_GET_DMA, IOC_R, MK_PTR(TYPE_INT)) IOCTL(HDIO_GET_32BIT, IOC_R, MK_PTR(TYPE_INT)) IOCTL(HDIO_GET_NICE, IOC_R, MK_PTR(TYPE_INT)) + IOCTL(HDIO_GET_WCACHE, IOC_R, MK_PTR(TYPE_INT)) IOCTL(HDIO_DRIVE_CMD, IOC_R, MK_PTR(TYPE_INT)) IOCTL(HDIO_SET_UNMASKINTR, 0, TYPE_INT) IOCTL(HDIO_SET_MULTCOUNT, 0, TYPE_INT) @@ -444,6 +445,7 @@ IOCTL(HDIO_SET_32BIT, 0, TYPE_INT) IOCTL(HDIO_SET_PIO_MODE, 0, TYPE_INT) IOCTL(HDIO_SET_NICE, 0, TYPE_INT) + IOCTL(HDIO_SET_WCACHE, 0, TYPE_INT) =20 IOCTL(VFAT_IOCTL_READDIR_BOTH, IOC_R, MK_PTR(MK_ARRAY(MK_STRUCT(STRUCT_d= irent), 2))) IOCTL(VFAT_IOCTL_READDIR_SHORT, IOC_R, MK_PTR(MK_ARRAY(MK_STRUCT(STRUCT_= dirent), 2))) diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h index 4e219a1..fb42d32 100644 --- a/linux-user/syscall_defs.h +++ b/linux-user/syscall_defs.h @@ -1066,6 +1066,7 @@ struct target_format_descr { #define TARGET_HDIO_GET_DMA 0x030b /* get use-dma flag */ #define TARGET_HDIO_GET_NICE 0x030c /* get nice flags */ #define TARGET_HDIO_GET_IDENTITY 0x030d /* get IDE identification in= fo */ +#define TARGET_HDIO_GET_WCACHE 0x030e /* get write cache mode on|o= ff */ #define TARGET_HDIO_DRIVE_CMD 0x031f /* execute a special drive c= ommand */ =20 /* hd/ide ctl's that pass (arg) non-ptr values are numbered 0x032n/0x033n = */ @@ -1077,6 +1078,7 @@ struct target_format_descr { #define TARGET_HDIO_SET_DMA 0x0326 /* change use-dma flag */ #define TARGET_HDIO_SET_PIO_MODE 0x0327 /* reconfig interface to new= speed */ #define TARGET_HDIO_SET_NICE 0x0329 /* set nice flags */ +#define TARGET_HDIO_SET_WCACHE 0x032b /* change write cache mode */ =20 /* loop ioctls */ #define TARGET_LOOP_SET_FD 0x4C00 --=20 2.7.4 From nobody Sun May 19 17:58:03 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1564662383; cv=none; d=zoho.com; s=zohoarc; b=PfM4W0jvSFt9BtHvXX0aK4+bx2hOQv2sDBDhxXMBoj3j9SbjG6Ho/7ZB7rdeB5xSe6xAjOLjcGjL7BftbTqeQ2mCD+1zvI2TTFUonVbj2ybBOYNJxmtcJsbDGE6SEqE1YKvvmegMDpfcquuQNivohxKFm+von7EV8USbpsGW1Ug= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1564662383; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=3MGfo3YJdRkjUMSUe0u9xVSBAahB6X2HO2EIda4+qwI=; b=JQeIjLJqvSfwlfGZZepEukHlDgndPAYb2e9gEUWPE7knzQ5ErT0RkMJ5bKyp4gSyLb0Lh0FljlXWOb5Pf5HduNpZXoX56YRJjz0YWajSK/iwFCJHQAhJgqR0rSx1DfEIeLal9NFksZX5uKFzdJutc93dWawaVtwCNhpDKiX3wX4= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1564662383092693.2489398373234; Thu, 1 Aug 2019 05:26:23 -0700 (PDT) Received: from localhost ([::1]:55492 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1htAA2-0006OZ-3c for importer@patchew.org; Thu, 01 Aug 2019 08:26:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45064) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1htA75-0001Ch-7Y for qemu-devel@nongnu.org; Thu, 01 Aug 2019 08:23:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1htA71-0002gE-Hz for qemu-devel@nongnu.org; Thu, 01 Aug 2019 08:23:18 -0400 Received: from mx2.rt-rk.com ([89.216.37.149]:49325 helo=mail.rt-rk.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1htA6s-0002bD-2y for qemu-devel@nongnu.org; Thu, 01 Aug 2019 08:23:06 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.rt-rk.com (Postfix) with ESMTP id B1E581A215B; Thu, 1 Aug 2019 14:23:00 +0200 (CEST) Received: from rtrkw774-lin.domain.local (rtrkw774-lin.domain.local [10.10.13.43]) by mail.rt-rk.com (Postfix) with ESMTPSA id 98A281A20CF; Thu, 1 Aug 2019 14:23:00 +0200 (CEST) X-Virus-Scanned: amavisd-new at rt-rk.com From: Aleksandar Markovic To: qemu-devel@nongnu.org Date: Thu, 1 Aug 2019 14:21:09 +0200 Message-Id: <1564662076-17964-9-git-send-email-aleksandar.markovic@rt-rk.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1564662076-17964-1-git-send-email-aleksandar.markovic@rt-rk.com> References: <1564662076-17964-1-git-send-email-aleksandar.markovic@rt-rk.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 89.216.37.149 Subject: [Qemu-devel] [PATCH for 4.2 v5 08/15] linux-user: Add support for HDIO_GET_ACOUSTIC and HDIO_SET_ACOUSTIC ioctls X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: laurent@vivier.eu, amarkovic@wavecomp.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Aleksandar Markovic Add support for HDIO_GET_ACOUSTIC and HDIO_SET_ACOUSTIC ioctls. Signed-off-by: Aleksandar Markovic --- linux-user/ioctls.h | 2 ++ linux-user/syscall_defs.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/linux-user/ioctls.h b/linux-user/ioctls.h index b54a184..c9b82eb 100644 --- a/linux-user/ioctls.h +++ b/linux-user/ioctls.h @@ -436,6 +436,7 @@ IOCTL(HDIO_GET_32BIT, IOC_R, MK_PTR(TYPE_INT)) IOCTL(HDIO_GET_NICE, IOC_R, MK_PTR(TYPE_INT)) IOCTL(HDIO_GET_WCACHE, IOC_R, MK_PTR(TYPE_INT)) + IOCTL(HDIO_GET_ACOUSTIC, IOC_R, MK_PTR(TYPE_INT)) IOCTL(HDIO_DRIVE_CMD, IOC_R, MK_PTR(TYPE_INT)) IOCTL(HDIO_SET_UNMASKINTR, 0, TYPE_INT) IOCTL(HDIO_SET_MULTCOUNT, 0, TYPE_INT) @@ -446,6 +447,7 @@ IOCTL(HDIO_SET_PIO_MODE, 0, TYPE_INT) IOCTL(HDIO_SET_NICE, 0, TYPE_INT) IOCTL(HDIO_SET_WCACHE, 0, TYPE_INT) + IOCTL(HDIO_SET_ACOUSTIC, 0, TYPE_INT) =20 IOCTL(VFAT_IOCTL_READDIR_BOTH, IOC_R, MK_PTR(MK_ARRAY(MK_STRUCT(STRUCT_d= irent), 2))) IOCTL(VFAT_IOCTL_READDIR_SHORT, IOC_R, MK_PTR(MK_ARRAY(MK_STRUCT(STRUCT_= dirent), 2))) diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h index fb42d32..b9d1242 100644 --- a/linux-user/syscall_defs.h +++ b/linux-user/syscall_defs.h @@ -1067,6 +1067,7 @@ struct target_format_descr { #define TARGET_HDIO_GET_NICE 0x030c /* get nice flags */ #define TARGET_HDIO_GET_IDENTITY 0x030d /* get IDE identification in= fo */ #define TARGET_HDIO_GET_WCACHE 0x030e /* get write cache mode on|o= ff */ +#define TARGET_HDIO_GET_ACOUSTIC 0x030f /* get acoustic value */ #define TARGET_HDIO_DRIVE_CMD 0x031f /* execute a special drive c= ommand */ =20 /* hd/ide ctl's that pass (arg) non-ptr values are numbered 0x032n/0x033n = */ @@ -1079,6 +1080,7 @@ struct target_format_descr { #define TARGET_HDIO_SET_PIO_MODE 0x0327 /* reconfig interface to new= speed */ #define TARGET_HDIO_SET_NICE 0x0329 /* set nice flags */ #define TARGET_HDIO_SET_WCACHE 0x032b /* change write cache mode */ +#define TARGET_HDIO_SET_ACOUSTIC 0x032c /* change acoustic behavior = */ =20 /* loop ioctls */ #define TARGET_LOOP_SET_FD 0x4C00 --=20 2.7.4 From nobody Sun May 19 17:58:03 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1564662478; cv=none; d=zoho.com; s=zohoarc; b=HeoETkYsqDF3M53Za9UibLvmV9lY+RI7hgBZbx0QvM0g7CRM4NP9mfkWhQpmOXCWDRef9l+dzhoBvwWL+RC1G7cgC7v1xjI+qyETU7gVKz+SXpZBHMbe6giGiIWZ2I4rEDNnZmiBDKP9/LC6oK9nfb7vvxI9IWe5f3mPWYnZpzk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1564662478; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=Ky+Bqd126SDEan3UzAKL75SeQClDeQKrS4jkB16ZDrY=; b=VhZDLYFEoiIvITRZOkJPAAZQpiHo198Ug9psWpOtDM3pnb2alu2go+mI51Hk0QGxE/v21paqu1VaespM+K9Xe1QSWUDLr0lEmSqGhnQYhwHfwM6r57OF6hr69wYP2E72kz5X2tmrzc90+yJJ0/yYUrMBXfLcy8srLkNYN59PhsY= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1564662478905220.19208478961093; Thu, 1 Aug 2019 05:27:58 -0700 (PDT) Received: from localhost ([::1]:55514 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1htABZ-0001Gr-SZ for importer@patchew.org; Thu, 01 Aug 2019 08:27:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45155) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1htA7C-0001Fy-0T for qemu-devel@nongnu.org; Thu, 01 Aug 2019 08:23:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1htA7A-0002kA-S6 for qemu-devel@nongnu.org; Thu, 01 Aug 2019 08:23:25 -0400 Received: from mx2.rt-rk.com ([89.216.37.149]:49717 helo=mail.rt-rk.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1htA79-0002f0-Hh for qemu-devel@nongnu.org; Thu, 01 Aug 2019 08:23:24 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.rt-rk.com (Postfix) with ESMTP id 9BA991A2262; Thu, 1 Aug 2019 14:23:08 +0200 (CEST) Received: from rtrkw774-lin.domain.local (rtrkw774-lin.domain.local [10.10.13.43]) by mail.rt-rk.com (Postfix) with ESMTPSA id 81EC01A2258; Thu, 1 Aug 2019 14:23:08 +0200 (CEST) X-Virus-Scanned: amavisd-new at rt-rk.com From: Aleksandar Markovic To: qemu-devel@nongnu.org Date: Thu, 1 Aug 2019 14:21:10 +0200 Message-Id: <1564662076-17964-10-git-send-email-aleksandar.markovic@rt-rk.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1564662076-17964-1-git-send-email-aleksandar.markovic@rt-rk.com> References: <1564662076-17964-1-git-send-email-aleksandar.markovic@rt-rk.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 89.216.37.149 Subject: [Qemu-devel] [PATCH for 4.2 v5 09/15] linux-user: Add support for HDIO_GET_ADDRESS and HDIO_SET_ADDRESS ioctls X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: laurent@vivier.eu, amarkovic@wavecomp.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Aleksandar Markovic Add support for HDIO_GET_ADDRESS and HDIO_SET_ADDRESS ioctls. Signed-off-by: Aleksandar Markovic --- linux-user/ioctls.h | 2 ++ linux-user/syscall_defs.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/linux-user/ioctls.h b/linux-user/ioctls.h index c9b82eb..b9c6a5a 100644 --- a/linux-user/ioctls.h +++ b/linux-user/ioctls.h @@ -437,6 +437,7 @@ IOCTL(HDIO_GET_NICE, IOC_R, MK_PTR(TYPE_INT)) IOCTL(HDIO_GET_WCACHE, IOC_R, MK_PTR(TYPE_INT)) IOCTL(HDIO_GET_ACOUSTIC, IOC_R, MK_PTR(TYPE_INT)) + IOCTL(HDIO_GET_ADDRESS, IOC_R, MK_PTR(TYPE_INT)) IOCTL(HDIO_DRIVE_CMD, IOC_R, MK_PTR(TYPE_INT)) IOCTL(HDIO_SET_UNMASKINTR, 0, TYPE_INT) IOCTL(HDIO_SET_MULTCOUNT, 0, TYPE_INT) @@ -448,6 +449,7 @@ IOCTL(HDIO_SET_NICE, 0, TYPE_INT) IOCTL(HDIO_SET_WCACHE, 0, TYPE_INT) IOCTL(HDIO_SET_ACOUSTIC, 0, TYPE_INT) + IOCTL(HDIO_SET_ADDRESS, 0, TYPE_INT) =20 IOCTL(VFAT_IOCTL_READDIR_BOTH, IOC_R, MK_PTR(MK_ARRAY(MK_STRUCT(STRUCT_d= irent), 2))) IOCTL(VFAT_IOCTL_READDIR_SHORT, IOC_R, MK_PTR(MK_ARRAY(MK_STRUCT(STRUCT_= dirent), 2))) diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h index b9d1242..aa9c6af 100644 --- a/linux-user/syscall_defs.h +++ b/linux-user/syscall_defs.h @@ -1068,6 +1068,7 @@ struct target_format_descr { #define TARGET_HDIO_GET_IDENTITY 0x030d /* get IDE identification in= fo */ #define TARGET_HDIO_GET_WCACHE 0x030e /* get write cache mode on|o= ff */ #define TARGET_HDIO_GET_ACOUSTIC 0x030f /* get acoustic value */ +#define TARGET_HDIO_GET_ADDRESS 0x0310 /* get lba addressing modes = */ #define TARGET_HDIO_DRIVE_CMD 0x031f /* execute a special drive c= ommand */ =20 /* hd/ide ctl's that pass (arg) non-ptr values are numbered 0x032n/0x033n = */ @@ -1081,6 +1082,7 @@ struct target_format_descr { #define TARGET_HDIO_SET_NICE 0x0329 /* set nice flags */ #define TARGET_HDIO_SET_WCACHE 0x032b /* change write cache mode */ #define TARGET_HDIO_SET_ACOUSTIC 0x032c /* change acoustic behavior = */ +#define TARGET_HDIO_SET_ADDRESS 0x032f /* change lba addressing mod= es */ =20 /* loop ioctls */ #define TARGET_LOOP_SET_FD 0x4C00 --=20 2.7.4 From nobody Sun May 19 17:58:03 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1564662481; cv=none; d=zoho.com; s=zohoarc; b=DQ1FVWJXxCsn0ri5oXFoje7icbyAtqpdtK6Gwr1a8seIKNviJVjjSnDBCH+QgyWYeOUlA/oWjWuWAqfw/91oreY800/3V+ytdNwKjShY4r78Q4EnrCFUAuzbRYoseItpIoZ3LSjwR2zuCq4VWOQLJrshcDN4bv9l6qBbNDahcDw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1564662481; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=v0bpBca2n2zRDRAQICg3GRp+NnxkzdN9pGT2TMRlPbI=; b=Fn15TZv66SkMMIcIM5fry573ODXQxSE+5botrDf2csftvcPBEjhvP1+98iWLtby4FZsroJAFA/gp1UtLT/2aE0lQ54hne8q+nfDZSarLlL9XpqRCUA1D2gVuYocAy5ohTOTcd3+NIY3zxEtQgCM3nXYg+rMbtQ8O1N7L6RwbM/8= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1564662481800135.14105228456333; Thu, 1 Aug 2019 05:28:01 -0700 (PDT) Received: from localhost ([::1]:55516 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1htABc-0001Ni-R7 for importer@patchew.org; Thu, 01 Aug 2019 08:28:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45213) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1htA7D-0001K4-KI for qemu-devel@nongnu.org; Thu, 01 Aug 2019 08:23:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1htA7B-0002lb-VT for qemu-devel@nongnu.org; Thu, 01 Aug 2019 08:23:27 -0400 Received: from mx2.rt-rk.com ([89.216.37.149]:50315 helo=mail.rt-rk.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1htA7B-0002iw-Lt for qemu-devel@nongnu.org; Thu, 01 Aug 2019 08:23:25 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.rt-rk.com (Postfix) with ESMTP id E91B81A215B; Thu, 1 Aug 2019 14:23:20 +0200 (CEST) Received: from rtrkw774-lin.domain.local (rtrkw774-lin.domain.local [10.10.13.43]) by mail.rt-rk.com (Postfix) with ESMTPSA id CFE6B1A20CF; Thu, 1 Aug 2019 14:23:20 +0200 (CEST) X-Virus-Scanned: amavisd-new at rt-rk.com From: Aleksandar Markovic To: qemu-devel@nongnu.org Date: Thu, 1 Aug 2019 14:21:11 +0200 Message-Id: <1564662076-17964-11-git-send-email-aleksandar.markovic@rt-rk.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1564662076-17964-1-git-send-email-aleksandar.markovic@rt-rk.com> References: <1564662076-17964-1-git-send-email-aleksandar.markovic@rt-rk.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 89.216.37.149 Subject: [Qemu-devel] [PATCH for 4.2 v5 10/15] linux-user: Add support for HDIO_GET_BUSSTATE and HDIO_SET_BUSSTATE ioctls X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: laurent@vivier.eu, amarkovic@wavecomp.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Aleksandar Markovic Add support for HDIO_GET_BUSSTATE and HDIO_SET_BUSSTATE ioctls. Signed-off-by: Aleksandar Markovic --- linux-user/ioctls.h | 2 ++ linux-user/syscall_defs.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/linux-user/ioctls.h b/linux-user/ioctls.h index b9c6a5a..3796ee6 100644 --- a/linux-user/ioctls.h +++ b/linux-user/ioctls.h @@ -438,6 +438,7 @@ IOCTL(HDIO_GET_WCACHE, IOC_R, MK_PTR(TYPE_INT)) IOCTL(HDIO_GET_ACOUSTIC, IOC_R, MK_PTR(TYPE_INT)) IOCTL(HDIO_GET_ADDRESS, IOC_R, MK_PTR(TYPE_INT)) + IOCTL(HDIO_GET_BUSSTATE, IOC_R, MK_PTR(TYPE_INT)) IOCTL(HDIO_DRIVE_CMD, IOC_R, MK_PTR(TYPE_INT)) IOCTL(HDIO_SET_UNMASKINTR, 0, TYPE_INT) IOCTL(HDIO_SET_MULTCOUNT, 0, TYPE_INT) @@ -449,6 +450,7 @@ IOCTL(HDIO_SET_NICE, 0, TYPE_INT) IOCTL(HDIO_SET_WCACHE, 0, TYPE_INT) IOCTL(HDIO_SET_ACOUSTIC, 0, TYPE_INT) + IOCTL(HDIO_SET_BUSSTATE, 0, TYPE_INT) IOCTL(HDIO_SET_ADDRESS, 0, TYPE_INT) =20 IOCTL(VFAT_IOCTL_READDIR_BOTH, IOC_R, MK_PTR(MK_ARRAY(MK_STRUCT(STRUCT_d= irent), 2))) diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h index aa9c6af..766d7b9 100644 --- a/linux-user/syscall_defs.h +++ b/linux-user/syscall_defs.h @@ -1069,6 +1069,7 @@ struct target_format_descr { #define TARGET_HDIO_GET_WCACHE 0x030e /* get write cache mode on|o= ff */ #define TARGET_HDIO_GET_ACOUSTIC 0x030f /* get acoustic value */ #define TARGET_HDIO_GET_ADDRESS 0x0310 /* get lba addressing modes = */ +#define TARGET_HDIO_GET_BUSSTATE 0x031a /* get hwif bus state */ #define TARGET_HDIO_DRIVE_CMD 0x031f /* execute a special drive c= ommand */ =20 /* hd/ide ctl's that pass (arg) non-ptr values are numbered 0x032n/0x033n = */ @@ -1082,6 +1083,7 @@ struct target_format_descr { #define TARGET_HDIO_SET_NICE 0x0329 /* set nice flags */ #define TARGET_HDIO_SET_WCACHE 0x032b /* change write cache mode */ #define TARGET_HDIO_SET_ACOUSTIC 0x032c /* change acoustic behavior = */ +#define TARGET_HDIO_SET_BUSSTATE 0x032d /* set hwif bus state */ #define TARGET_HDIO_SET_ADDRESS 0x032f /* change lba addressing mod= es */ =20 /* loop ioctls */ --=20 2.7.4 From nobody Sun May 19 17:58:03 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1564662603; cv=none; d=zoho.com; s=zohoarc; b=ZvC6LD4eYi3ezHzFDppWxJl4hmg9SjITOIhzW2TPK8jGDH2+DTJIAZv7r9ezsjFvYkr/WcDa205CqvzIYHS8lqOHU6k63bbm0Zx3B0GtfK9cFoZN3zUkuvxT4AMJv16RjmoLq2Fww62y+ZGgEksOlqUmFmocQ/2L3lZ4JiieMG0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1564662603; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=M9CJSWepAN151HbAlrUikV0mAFxSnNVhB2iI+EzLrHA=; b=IuWF4EHY08bn4bDVpB+MT/deLx/0PlniXyoZx++CLhXN2qYfcA2DETvjl+JwUY3BLNSBV3cax0tdKBv7V9iAHllRc+0AUDqqLOjK+uRkcP2LP2bvPltEBhbGl960k8e/OfagQo14pCb0iqtYzZ3bI4JtU2Bh+36iOG5UvOFZAXw= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1564662603212956.6491240295356; Thu, 1 Aug 2019 05:30:03 -0700 (PDT) Received: from localhost ([::1]:55534 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1htADa-00045o-7L for importer@patchew.org; Thu, 01 Aug 2019 08:30:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45316) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1htA7P-0001T7-WB for qemu-devel@nongnu.org; Thu, 01 Aug 2019 08:23:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1htA7M-0002tV-Pw for qemu-devel@nongnu.org; Thu, 01 Aug 2019 08:23:38 -0400 Received: from mx2.rt-rk.com ([89.216.37.149]:50846 helo=mail.rt-rk.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1htA7J-0002qG-Gh for qemu-devel@nongnu.org; Thu, 01 Aug 2019 08:23:34 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.rt-rk.com (Postfix) with ESMTP id 58D4A1A215B; Thu, 1 Aug 2019 14:23:31 +0200 (CEST) Received: from rtrkw774-lin.domain.local (rtrkw774-lin.domain.local [10.10.13.43]) by mail.rt-rk.com (Postfix) with ESMTPSA id 3F7BE1A20CF; Thu, 1 Aug 2019 14:23:31 +0200 (CEST) X-Virus-Scanned: amavisd-new at rt-rk.com From: Aleksandar Markovic To: qemu-devel@nongnu.org Date: Thu, 1 Aug 2019 14:21:12 +0200 Message-Id: <1564662076-17964-12-git-send-email-aleksandar.markovic@rt-rk.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1564662076-17964-1-git-send-email-aleksandar.markovic@rt-rk.com> References: <1564662076-17964-1-git-send-email-aleksandar.markovic@rt-rk.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 89.216.37.149 Subject: [Qemu-devel] [PATCH for 4.2 v5 11/15] linux-user: Add support for KDGKBMETA and KDSKBMETA ioctls X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: laurent@vivier.eu, amarkovic@wavecomp.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Aleksandar Markovic Add support for KDGKBMETA and KDSKBMETA ioctls. Signed-off-by: Aleksandar Markovic --- linux-user/ioctls.h | 2 ++ linux-user/syscall_defs.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/linux-user/ioctls.h b/linux-user/ioctls.h index 3796ee6..2100cf4 100644 --- a/linux-user/ioctls.h +++ b/linux-user/ioctls.h @@ -63,6 +63,8 @@ IOCTL(KDSKBMODE, 0, TYPE_INT) IOCTL(KDGKBENT, IOC_RW, MK_PTR(MK_STRUCT(STRUCT_kbentry))) IOCTL(KDGKBSENT, IOC_RW, MK_PTR(MK_STRUCT(STRUCT_kbsentry))) + IOCTL(KDGKBMETA, IOC_R, MK_PTR(TYPE_INT)) + IOCTL(KDSKBMETA, IOC_W, TYPE_INT) IOCTL(KDGKBLED, 0, TYPE_INT) IOCTL(KDSKBLED, 0, TYPE_INT) IOCTL(KDGETLED, 0, TYPE_INT) diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h index 766d7b9..50fc44f 100644 --- a/linux-user/syscall_defs.h +++ b/linux-user/syscall_defs.h @@ -750,6 +750,8 @@ struct target_pollfd { #define TARGET_KDSKBMODE 0x4b45 #define TARGET_KDGKBENT 0x4B46 /* gets one entry in translation tab= le */ #define TARGET_KDGKBSENT 0x4B48 /* gets one function key string entr= y */ +#define TARGET_KDGKBMETA 0x4B62 /* gets meta key handling mode */ +#define TARGET_KDSKBMETA 0x4B63 /* sets meta key handling mode */ #define TARGET_KDGKBLED 0x4B64 /* get led flags (not lights) */ #define TARGET_KDSKBLED 0x4B65 /* set led flags (not lights) */ #define TARGET_KDGETLED 0x4B31 /* return current led state */ --=20 2.7.4 From nobody Sun May 19 17:58:03 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1564662378; cv=none; d=zoho.com; s=zohoarc; b=oYw52GRVB6uAvNODRrcQYjt7gXJovtU5b9CrOlAt8ULD4ZFi407KF/3o6SPvwOK32a0vy4pRMC0UjVqbXNV+Gqwnq+3d2vjEOQuApqwtivUTL7fVbS3aodXSYFP4sTVo9if7sZ9d2KJsZZ+h3dRUmTgRdFmehd50k+855tkn/UM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1564662378; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=ajmIfOehH5lpgnu30GvLdl/34YBquwMFvQpDCbOfwVo=; b=Umazp4i8WMCDNJT8MmpK1zpEJmX4V1dQODqXGYlDNacUf6ueHRLS7PrIYQzBc858N0yqeANYV4Z3JidWPXMF0TxdLG3iIdReCMZo/Q2NosdPo2zs+DZtFukfJACEV79mesZEge9z3vRbDEnn7MLTOUNEWCIS4jUeIwUNcb6WuMg= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1564662378416227.61651100091774; Thu, 1 Aug 2019 05:26:18 -0700 (PDT) Received: from localhost ([::1]:55488 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1htA9x-0006BG-E8 for importer@patchew.org; Thu, 01 Aug 2019 08:26:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45373) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1htA7W-0001ZJ-9S for qemu-devel@nongnu.org; Thu, 01 Aug 2019 08:23:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1htA7U-0002zW-8L for qemu-devel@nongnu.org; Thu, 01 Aug 2019 08:23:45 -0400 Received: from mx2.rt-rk.com ([89.216.37.149]:51356 helo=mail.rt-rk.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1htA7T-0002yx-FN for qemu-devel@nongnu.org; Thu, 01 Aug 2019 08:23:43 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.rt-rk.com (Postfix) with ESMTP id 67AAF1A215B; Thu, 1 Aug 2019 14:23:41 +0200 (CEST) Received: from rtrkw774-lin.domain.local (rtrkw774-lin.domain.local [10.10.13.43]) by mail.rt-rk.com (Postfix) with ESMTPSA id 4F15F1A20CF; Thu, 1 Aug 2019 14:23:41 +0200 (CEST) X-Virus-Scanned: amavisd-new at rt-rk.com From: Aleksandar Markovic To: qemu-devel@nongnu.org Date: Thu, 1 Aug 2019 14:21:13 +0200 Message-Id: <1564662076-17964-13-git-send-email-aleksandar.markovic@rt-rk.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1564662076-17964-1-git-send-email-aleksandar.markovic@rt-rk.com> References: <1564662076-17964-1-git-send-email-aleksandar.markovic@rt-rk.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 89.216.37.149 Subject: [Qemu-devel] [PATCH for 4.2 v5 12/15] linux-user: Fix support for KDGKBLED and KDSKBLED ioctls X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: laurent@vivier.eu, amarkovic@wavecomp.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Aleksandar Markovic Fix support for KDGKBLED and KDSKBLED ioctls. Signed-off-by: Aleksandar Markovic --- linux-user/ioctls.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/linux-user/ioctls.h b/linux-user/ioctls.h index 2100cf4..ea92eea 100644 --- a/linux-user/ioctls.h +++ b/linux-user/ioctls.h @@ -65,8 +65,8 @@ IOCTL(KDGKBSENT, IOC_RW, MK_PTR(MK_STRUCT(STRUCT_kbsentry))) IOCTL(KDGKBMETA, IOC_R, MK_PTR(TYPE_INT)) IOCTL(KDSKBMETA, IOC_W, TYPE_INT) - IOCTL(KDGKBLED, 0, TYPE_INT) - IOCTL(KDSKBLED, 0, TYPE_INT) + IOCTL(KDGKBLED, IOC_R, MK_PTR(TYPE_CHAR)) + IOCTL(KDSKBLED, IOC_W, TYPE_INT) IOCTL(KDGETLED, 0, TYPE_INT) IOCTL(KDSETLED, 0, TYPE_INT) IOCTL_SPECIAL(KDSIGACCEPT, 0, do_ioctl_kdsigaccept, TYPE_INT) --=20 2.7.4 From nobody Sun May 19 17:58:03 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1564662480; cv=none; d=zoho.com; s=zohoarc; b=Hs6ArYw0ifinGafwjOlg2hYgQtZl3yXqc7ygrDkVUBDKb50lTVJwH4T3upPwI59g0zJT6rwFL/0UqVm1uaG4MbrygMm34eMIrnxxVY8cUbzo7vbDbAvZSVXyi7m6CJSeVq6fdRa/nfpb5dri45l2flekM1UwthXQ+sBDAv5s7g8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1564662480; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=B1Lzrt8+S0f6fw9pIdYKYOxsQHPLL1faLz78O+4RbUY=; b=YC3eT5ISFkkvhOaV+9O7/vsBbo08W5f+DDdkyFZPTIZz+jtwvqZBA2Je47sPetl4o8BYtOZIUxAFpjQ28w5yn6LhV29tIv5lMy0FyVwyvRoeWXbANqG6TNbMoKc7Y4bGGpu1GymdBeji7B4EkMFMYtMaoqtFk24XZpz84PRBfZw= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1564662480089829.4550524357945; Thu, 1 Aug 2019 05:28:00 -0700 (PDT) Received: from localhost ([::1]:55512 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1htABY-0001A0-Tq for importer@patchew.org; Thu, 01 Aug 2019 08:27:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45495) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1htA7l-0001rM-T3 for qemu-devel@nongnu.org; Thu, 01 Aug 2019 08:24:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1htA7k-0003tC-PU for qemu-devel@nongnu.org; Thu, 01 Aug 2019 08:24:01 -0400 Received: from mx2.rt-rk.com ([89.216.37.149]:52140 helo=mail.rt-rk.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1htA7i-0003lD-SA for qemu-devel@nongnu.org; Thu, 01 Aug 2019 08:23:59 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.rt-rk.com (Postfix) with ESMTP id 46CB51A20CF; Thu, 1 Aug 2019 14:23:55 +0200 (CEST) Received: from rtrkw774-lin.domain.local (rtrkw774-lin.domain.local [10.10.13.43]) by mail.rt-rk.com (Postfix) with ESMTPSA id 2DD9E1A20B3; Thu, 1 Aug 2019 14:23:55 +0200 (CEST) X-Virus-Scanned: amavisd-new at rt-rk.com From: Aleksandar Markovic To: qemu-devel@nongnu.org Date: Thu, 1 Aug 2019 14:21:14 +0200 Message-Id: <1564662076-17964-14-git-send-email-aleksandar.markovic@rt-rk.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1564662076-17964-1-git-send-email-aleksandar.markovic@rt-rk.com> References: <1564662076-17964-1-git-send-email-aleksandar.markovic@rt-rk.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 89.216.37.149 Subject: [Qemu-devel] [PATCH for 4.2 v5 13/15] linux-user: Fix support for KDGETLED and KDSETLED ioctls X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: laurent@vivier.eu, amarkovic@wavecomp.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Aleksandar Markovic Fix support for KDGETLED and KDSETLED ioctls. Signed-off-by: Aleksandar Markovic --- linux-user/ioctls.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/linux-user/ioctls.h b/linux-user/ioctls.h index ea92eea..7a4e85b 100644 --- a/linux-user/ioctls.h +++ b/linux-user/ioctls.h @@ -67,8 +67,8 @@ IOCTL(KDSKBMETA, IOC_W, TYPE_INT) IOCTL(KDGKBLED, IOC_R, MK_PTR(TYPE_CHAR)) IOCTL(KDSKBLED, IOC_W, TYPE_INT) - IOCTL(KDGETLED, 0, TYPE_INT) - IOCTL(KDSETLED, 0, TYPE_INT) + IOCTL(KDGETLED, IOC_R, MK_PTR(TYPE_CHAR)) + IOCTL(KDSETLED, IOC_W, TYPE_INT) IOCTL_SPECIAL(KDSIGACCEPT, 0, do_ioctl_kdsigaccept, TYPE_INT) =20 IOCTL(BLKROSET, IOC_W, MK_PTR(TYPE_INT)) --=20 2.7.4 From nobody Sun May 19 17:58:03 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1564662685; cv=none; d=zoho.com; s=zohoarc; b=DSmca7rNtbN96wjxw0cFa21qEwqO8urW4exKIJ+Wduq8HVQVuSrHCW/1h3pzap64LCgjPGoqNkAT5yjp4pQxZarNM0EaR95jlzbkkBGjndtBDaks5oLsImAQYjDYXW88UNIqMnPh3hIoIQiKx+FICH+pJ5Q1aMJIBre+xaydZ/Y= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1564662685; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=GhOo3UgufzQezzVtSYxQ1suO/IhSPsCj0+YnEsK1KnE=; b=ZP1zh/Z+ojw+am4pbbMu9Uws6iJ7gjBpRi0uyvsJ9eYb53XOdUql8iNpcwi2SeOCBgb/e8CdR01+ZFszwh3eKQ/BeiD7k5VbPO8BMJsulrLiiM+pRkqNcSsPjTdofKTAy+Q6nLSdQdm/XJhnOOUl4xArOQ6qeXZgyiVLPK4ZFak= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 156466268583481.84623642469023; Thu, 1 Aug 2019 05:31:25 -0700 (PDT) Received: from localhost ([::1]:55564 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1htAEu-0006Bk-TR for importer@patchew.org; Thu, 01 Aug 2019 08:31:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45560) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1htA81-0002Y7-F3 for qemu-devel@nongnu.org; Thu, 01 Aug 2019 08:24:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1htA80-0004Hs-FU for qemu-devel@nongnu.org; Thu, 01 Aug 2019 08:24:17 -0400 Received: from mx2.rt-rk.com ([89.216.37.149]:53614 helo=mail.rt-rk.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1htA80-0004HF-8M for qemu-devel@nongnu.org; Thu, 01 Aug 2019 08:24:16 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.rt-rk.com (Postfix) with ESMTP id 17A461A22B3; Thu, 1 Aug 2019 14:24:14 +0200 (CEST) Received: from rtrkw774-lin.domain.local (rtrkw774-lin.domain.local [10.10.13.43]) by mail.rt-rk.com (Postfix) with ESMTPSA id C00221A20B3; Thu, 1 Aug 2019 14:24:13 +0200 (CEST) X-Virus-Scanned: amavisd-new at rt-rk.com From: Aleksandar Markovic To: qemu-devel@nongnu.org Date: Thu, 1 Aug 2019 14:21:15 +0200 Message-Id: <1564662076-17964-15-git-send-email-aleksandar.markovic@rt-rk.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1564662076-17964-1-git-send-email-aleksandar.markovic@rt-rk.com> References: <1564662076-17964-1-git-send-email-aleksandar.markovic@rt-rk.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 89.216.37.149 Subject: [Qemu-devel] [PATCH for 4.2 v5 14/15] linux-user: Add support for RNDRESEEDCRNG ioctl X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: laurent@vivier.eu, amarkovic@wavecomp.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Aleksandar Markovic RNDRESEEDCRNG is a newer ioctl (added in kernel 4.17), and an "ifdef" guard is used for that reason in this patch. Signed-off-by: Aleksandar Markovic Reviewed-by: Laurent Vivier --- linux-user/ioctls.h | 3 +++ linux-user/syscall_defs.h | 1 + 2 files changed, 4 insertions(+) diff --git a/linux-user/ioctls.h b/linux-user/ioctls.h index 7a4e85b..240cb50 100644 --- a/linux-user/ioctls.h +++ b/linux-user/ioctls.h @@ -261,6 +261,9 @@ IOCTL(RNDADDTOENTCNT, IOC_W, MK_PTR(TYPE_INT)) IOCTL(RNDZAPENTCNT, 0, TYPE_NULL) IOCTL(RNDCLEARPOOL, 0, TYPE_NULL) +#ifdef RNDRESEEDCRNG + IOCTL(RNDRESEEDCRNG, 0, TYPE_NULL) +#endif =20 IOCTL(CDROMPAUSE, 0, TYPE_NULL) IOCTL(CDROMSTART, 0, TYPE_NULL) diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h index 50fc44f..1b42578 100644 --- a/linux-user/syscall_defs.h +++ b/linux-user/syscall_defs.h @@ -852,6 +852,7 @@ struct target_pollfd { #define TARGET_RNDADDTOENTCNT TARGET_IOW('R', 0x01, int) #define TARGET_RNDZAPENTCNT TARGET_IO('R', 0x04) #define TARGET_RNDCLEARPOOL TARGET_IO('R', 0x06) +#define TARGET_RNDRESEEDCRNG TARGET_IO('R', 0x07) =20 /* From */ =20 --=20 2.7.4 From nobody Sun May 19 17:58:03 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1564662723; cv=none; d=zoho.com; s=zohoarc; b=ioSKuIVmTvs6ppXdOHd8Dnkbu7KXkNJC3YO4MJvl8S7cAAS2f+ZqFbCwXQsAsMEF6jYc9wfUkgg9tFDGlE/xpAkSS4xS9FlpyFVSyAmPTkHRVbHFx5J7OGLTWsrlRYnbZWDmW2AOUtud7AW6ztNdhgs8JGjN/67B/G6AEyaFXos= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1564662723; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=BGduTydV5WfKDKfds0sCLIkJwbIBdDrYTwCW7oJrfQg=; b=ZkmyhPjqzY+DCRjcwKUpWxiH2vp7ZxmuWooHYVwVl6MRa+cRgO2bh1iel6NuF5ocDyGVrNNn0oXMj52OLTxeL+sQuHCxyRv7NMNwWDgWzfWBb73BKaw6pnm9XVgiHr2eNbuN6R1sz4bSwiJnGO321pG/GOxjB+myv/vHzPUZa8s= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1564662723335620.5321599745213; Thu, 1 Aug 2019 05:32:03 -0700 (PDT) Received: from localhost ([::1]:55576 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1htAFW-0007Vm-Cm for importer@patchew.org; Thu, 01 Aug 2019 08:32:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45600) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1htA8C-00036l-JK for qemu-devel@nongnu.org; Thu, 01 Aug 2019 08:24:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1htA8B-0004Q0-LB for qemu-devel@nongnu.org; Thu, 01 Aug 2019 08:24:28 -0400 Received: from mx2.rt-rk.com ([89.216.37.149]:57751 helo=mail.rt-rk.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1htA8B-0004Ph-Ci for qemu-devel@nongnu.org; Thu, 01 Aug 2019 08:24:27 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.rt-rk.com (Postfix) with ESMTP id 5A5BE1A215B; Thu, 1 Aug 2019 14:24:25 +0200 (CEST) Received: from rtrkw774-lin.domain.local (rtrkw774-lin.domain.local [10.10.13.43]) by mail.rt-rk.com (Postfix) with ESMTPSA id 377B01A20CF; Thu, 1 Aug 2019 14:24:25 +0200 (CEST) X-Virus-Scanned: amavisd-new at rt-rk.com From: Aleksandar Markovic To: qemu-devel@nongnu.org Date: Thu, 1 Aug 2019 14:21:16 +0200 Message-Id: <1564662076-17964-16-git-send-email-aleksandar.markovic@rt-rk.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1564662076-17964-1-git-send-email-aleksandar.markovic@rt-rk.com> References: <1564662076-17964-1-git-send-email-aleksandar.markovic@rt-rk.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 89.216.37.149 Subject: [Qemu-devel] [PATCH for 4.2 v5 15/15] linux-user: Add support for semtimedop() syscall X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Aleksandar Rikalo , laurent@vivier.eu, amarkovic@wavecomp.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Aleksandar Rikalo Add support for semtimedop() emulation. It is based on invocation of safe_semtimedop(). Conversion is left out of safe_semtimedop(), since other safe_xxx() usually don't contain similar conversions. Signed-off-by: Aleksandar Rikalo Signed-off-by: Aleksandar Markovic --- linux-user/syscall.c | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index ee80175..6825458 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -6650,7 +6650,43 @@ static inline abi_long host_to_target_statx(struct t= arget_statx *host_stx, return 0; } #endif +#ifdef TARGET_NR_semtimedop +static inline abi_long do_semtimedop(int semid, abi_long ptr, unsigned nso= ps, + abi_long timeout) +{ + struct sembuf *sops; + struct timespec ts, *pts; + abi_long ret; + + if (timeout) { + pts =3D &ts; + if (target_to_host_timespec(pts, timeout)) { + return -TARGET_EFAULT; + } + } else { + pts =3D NULL; + } =20 + sops =3D g_malloc(sizeof(struct sembuf) * nsops); + if (sops =3D=3D NULL) { + return -TARGET_EFAULT; + } + + if (target_to_host_sembuf(sops, ptr, nsops)) { + g_free(sops); + return -TARGET_EFAULT; + } + +#ifdef __NR_semtimedop + ret =3D get_errno(safe_semtimedop(semid, sops, nsops, pts)); +#else + ret =3D -TARGET_ENOSYS; +#endif + g_free(sops); + + return ret; +} +#endif =20 /* ??? Using host futex calls even when target atomic operations are not really atomic probably breaks things. However implementing @@ -9194,6 +9230,10 @@ static abi_long do_syscall1(void *cpu_env, int num, = abi_long arg1, case TARGET_NR_semop: return do_semop(arg1, arg2, arg3); #endif +#ifdef TARGET_NR_semtimedop + case TARGET_NR_semtimedop: + return do_semtimedop(arg1, arg2, arg3, arg4); +#endif #ifdef TARGET_NR_semctl case TARGET_NR_semctl: return do_semctl(arg1, arg2, arg3, arg4); --=20 2.7.4