From patchwork Fri Mar 4 21:16:13 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Marc-Andr=C3=A9_Lureau?= X-Patchwork-Id: 1601441 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=YsU0vIg6; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-ppc-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4K9LKG0h64z9sGF for ; Sat, 5 Mar 2022 08:17:20 +1100 (AEDT) Received: from localhost ([::1]:49340 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nQFIa-00023a-TX for incoming@patchwork.ozlabs.org; Fri, 04 Mar 2022 16:17:16 -0500 Received: from eggs.gnu.org ([209.51.188.92]:51006) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nQFIA-0001kO-BW for qemu-ppc@nongnu.org; Fri, 04 Mar 2022 16:16:51 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:35418) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nQFI8-0003fp-Vm for qemu-ppc@nongnu.org; Fri, 04 Mar 2022 16:16:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1646428608; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=NdT8zDvsJDHiraOVeHcwjnNH0oUrIhJUEknDrt+82IE=; b=YsU0vIg6UsZIShqd7w/Or/fqZUq/baVzg7cYgm2mElInUCjegefSwaVPBVAeLSv47NnVgE JJoN3gvuTPc2L+5z2hkGwH3J8nVamj7wZnJlr4YWBKa+mZveJSDVLA+zia2PQOVk7bXWOa CLB0jTw3VAtssa1eeKYbm0rETDzNQtc= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-446-BnATs81WNZOTzA1P3HpvIQ-1; Fri, 04 Mar 2022 16:16:45 -0500 X-MC-Unique: BnATs81WNZOTzA1P3HpvIQ-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 347B8180FD71; Fri, 4 Mar 2022 21:16:43 +0000 (UTC) Received: from localhost (unknown [10.39.208.4]) by smtp.corp.redhat.com (Postfix) with ESMTP id A7F074ABAD; Fri, 4 Mar 2022 21:16:22 +0000 (UTC) From: marcandre.lureau@redhat.com To: qemu-devel@nongnu.org Subject: [PATCH v2 0/5] Remove qemu_gettimeofday() Date: Sat, 5 Mar 2022 01:16:13 +0400 Message-Id: <20220304211618.3715999-1-marcandre.lureau@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=marcandre.lureau@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Received-SPF: pass client-ip=170.10.133.124; envelope-from=marcandre.lureau@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -28 X-Spam_score: -2.9 X-Spam_bar: -- X-Spam_report: (-2.9 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.082, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-ppc@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Kevin Wolf , Marek Vasut , Thomas Huth , "Michael S. Tsirkin" , qemu-block@nongnu.org, David Hildenbrand , Laurent Vivier , Michael Roth , Chris Wulff , Markus Armbruster , BALATON Zoltan , Konstantin Kostiuk , Hanna Reitz , qemu-ppc@nongnu.org, =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , Stefan Weil , Paolo Bonzini Errors-To: qemu-ppc-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-ppc" From: Marc-André Lureau Hi, Here is a few patches to replace qemu_gettimeofday() helper with functions provided by GLib. v2: - fix return of get-time in nanoseconds - qga: replace with a common get-time function for qga posix/win32 - split qga patch - add r-b tags, drop RFC Marc-André Lureau (5): m68k/nios2-semi: fix gettimeofday() result check qtest: replace gettimeofday with GTimer qga: replace qemu_gettimeofday() with g_get_real_time() Replace qemu_gettimeofday() with g_get_real_time() oslib: drop qemu_gettimeofday() include/sysemu/os-posix.h | 3 --- include/sysemu/os-win32.h | 6 ------ blockdev.c | 8 ++++---- hw/rtc/m41t80.c | 6 +++--- hw/virtio/virtio-balloon.c | 9 +-------- qapi/qmp-event.c | 12 +++++------- qemu-img.c | 8 ++++---- qga/commands-posix.c | 14 -------------- qga/commands-win32.c | 19 ------------------- qga/commands.c | 5 +++++ softmmu/qtest.c | 39 ++++++++++---------------------------- target/m68k/m68k-semi.c | 22 ++++++++++----------- target/nios2/nios2-semi.c | 23 ++++++++++------------ util/oslib-win32.c | 20 ------------------- 14 files changed, 52 insertions(+), 142 deletions(-)