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: 991825 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="kFX/5aEJ"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 42lvv71NSpz9sV8 for ; Thu, 1 Nov 2018 17:10:09 +1100 (AEDT) Received: from localhost ([::1]:35551 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gI6BC-0005P9-CM for incoming@patchwork.ozlabs.org; Thu, 01 Nov 2018 02:10:06 -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+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" 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(-)