From patchwork Thu Nov 1 06:09:34 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Li Qiang X-Patchwork-Id: 10663509 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D47A5109C for ; Thu, 1 Nov 2018 06:10:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B0CA62BC4D for ; Thu, 1 Nov 2018 06:10:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A47682BC53; Thu, 1 Nov 2018 06:10:42 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.7 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 51F902BC4D for ; Thu, 1 Nov 2018 06:10:42 +0000 (UTC) Received: from localhost ([::1]:35560 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gI6Bl-00061F-8P for patchwork-qemu-devel@patchwork.kernel.org; Thu, 01 Nov 2018 02:10:41 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36526) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gI6As-0005Or-0l for qemu-devel@nongnu.org; Thu, 01 Nov 2018 02:09:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gI6An-0003Qb-1l for qemu-devel@nongnu.org; Thu, 01 Nov 2018 02:09:45 -0400 Received: from mail-pf1-x444.google.com ([2607:f8b0:4864:20::444]:36341) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gI6Am-0003QJ-Qv for qemu-devel@nongnu.org; Thu, 01 Nov 2018 02:09:40 -0400 Received: by mail-pf1-x444.google.com with SMTP id j22-v6so4986798pfh.3 for ; Wed, 31 Oct 2018 23:09:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=K+PUrSI6FcixxAu7O8jtPwRLm5k7UuhrBDkcJoOwYE8=; b=kFX/5aEJED3FLoPCm7Nm8Uabdjts/POVZyJQKZpDm+dlhfK9vDBrz93ZKbEmU0bzve OSOEPxAFFpgn4BZjtDOSDOWYW+2SopoiEN14S6jJu1cE2m5K68Tc63vuOnECcQv1yqBE wf4I29fF8dInqxKLdjgvgUpW2ivyVfmFGPNMZFjC2Zkb3otZKer3rnGa5PAepKzG7dCN EZkpCV9xWMgR2S62apOlQ1mnrc7a+z4zCPHzqjdfYI/3MQFDwdhRi9a6ZMLjx037Tghh xFoCPgnWSrkjwbpmdvw/idZKBG+HmcOMzapjtlEODyGX2UVIIY9smtORUlNWFXXM1Zps 1q8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=K+PUrSI6FcixxAu7O8jtPwRLm5k7UuhrBDkcJoOwYE8=; b=kZBgQz2szdz/L7KHXEq47xcuJQHj/arVWh4GnZDFB+FcllPMq7/mNaXgvPsgD/5igI nw90ec9iUPz7wurODJkMqRcMsgGfcfnwuuJ2isc/LHM0CdB2pgqz1Kdq7Lh1cBjX+XUs Tf63wNHFWNclMOKgTMZgGn9L3XmsGwsXMZBAJtRRB0DAFzel409Ixsg+BOPCxDf64sJK HGFzDfzBDNl904/bchxhbCcn7AfsBynIB1ajDJuALiBEX8BsCCtYUCHCql29p0r1uybH 3etj65l76tRvv3pYJjBRpqw9ih75ax8HzoUNy+4pP59PcgASWAs2iaVQK3PunxS6+qG6 NmzA== X-Gm-Message-State: AGRZ1gIu+8qKoLkeepC3vINXFQfK28n7P5AOX5CfATIPKGeaauE3ae0T UaZmJRR+wKbNTuARMOXQWc8= X-Google-Smtp-Source: AJdET5c1yTo+A3uBNxbGEKWt36hyF5xHvBRmLLcROuw+8ceNuo3D3YPIrk+dCs3p3HAh2FwPtg2QfA== X-Received: by 2002:a63:41c2:: with SMTP id o185-v6mr5957850pga.11.1541052579923; Wed, 31 Oct 2018 23:09:39 -0700 (PDT) Received: from localhost.localdomain.localdomain ([103.65.40.100]) by smtp.gmail.com with ESMTPSA id h17-v6sm9892076pfj.125.2018.10.31.23.09.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 31 Oct 2018 23:09:39 -0700 (PDT) From: Li Qiang To: pbonzini@redhat.com, armbru@redhat.com, philmd@redhat.com, lersek@redhat.com, kraxel@redhat.com Date: Wed, 31 Oct 2018 23:09:34 -0700 Message-Id: <1541052574-29085-1-git-send-email-liq3ea@gmail.com> X-Mailer: git-send-email 1.8.3.1 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::444 Subject: [Qemu-devel] [PATCH 0/2] fw_cfg reboot_time and splash_time fix X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Li Qiang , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP The first patch ensure the reboot_time is never negative and second change the splash-time and reboot-timeout type to qemu_opt_get_number per Markus's advice: https://lists.gnu.org/archive/html/qemu-devel/2018-10/msg06975.html Li Qiang (2): hw: fw_cfg: ensure reboot_time is nonegative hw: fw_cfg: use qemu_opt_get_number to get splash-time and reboot-timeout hw/nvram/fw_cfg.c | 38 +++++++++++++++----------------------- vl.c | 4 ++-- 2 files changed, 17 insertions(+), 25 deletions(-)