From patchwork Wed Nov 21 05:10:23 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Li Qiang X-Patchwork-Id: 1000919 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="nF1/+Dr5"; 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 4309f52Vn2z9s4s for ; Wed, 21 Nov 2018 16:11:23 +1100 (AEDT) Received: from localhost ([::1]:37246 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gPKnF-0003x8-En for incoming@patchwork.ozlabs.org; Wed, 21 Nov 2018 00:11:17 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43675) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gPKmc-0003ww-PG for qemu-devel@nongnu.org; Wed, 21 Nov 2018 00:10:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gPKmZ-0002lu-NF for qemu-devel@nongnu.org; Wed, 21 Nov 2018 00:10:38 -0500 Received: from mail-pl1-x642.google.com ([2607:f8b0:4864:20::642]:38653) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gPKmZ-0002k4-H8 for qemu-devel@nongnu.org; Wed, 21 Nov 2018 00:10:35 -0500 Received: by mail-pl1-x642.google.com with SMTP id e5so3688615plb.5 for ; Tue, 20 Nov 2018 21:10:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=0xLa30h9W/UbF1bHrxYrcd2AAStOOZPvMHsrsqilA28=; b=nF1/+Dr54ZaDlEhZQT5saWKHzBlgJuUGOOvZkBbABstaH52kvOZJTDMjRa1+psnbK8 /5q2U+0j+8eTYKRE26un2Cg5zOAppGcDifiY4RAdEPUXQ7wMMElK/yWj9+mYPic+iWHT JjyO6j9Jv7ecNUWx91Ox6qwSutMkGcfxxOs4oQaCsbS1J1lOV0uH0ND9M29VR3OjdwgB VsqOF92nlnCke6wTFUCpnTomOD6tuexb00fjIaAlHCamBh9AvJJKeNiFx4kkqTeDVV7f QkiftV/qwDMYbvONRDg3jDEcIrWx/XLSBZqOUZdY7t6yX/ZloGfcIqz6U5MPlZeVHI6R I5Sw== 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=0xLa30h9W/UbF1bHrxYrcd2AAStOOZPvMHsrsqilA28=; b=tk1DtWXqAIR9t+CC7pfNZ2C7Ls+Chqc1b8YWAQdu4SJX6JjfwuPDp1pHP9LhLWPNc5 OS6wWRbsGsrP8Np1Njr95OC/y6NFIbDioJBOV4gj6q/QE/EGFUGygRA0Q3WSRBFELJDF ZsxdKt0BK6njoiD7FzhYVhleCu2NiItKhMCplektcLTZS9rulZhsH3YL/mRQfWgO6uIR AdUJi5yM9hMOWen6npA2rhrRO/R4LY6cC9B0g2ZxdzSWo/KnhgnXfANFAtW6FEHw3JFt CDkKlhjKhWT0iYdpUE1FF3qCRury8EuklDVqovE59OwuWcAzd6VPeWhxdu0WPM9okIio OD1g== X-Gm-Message-State: AA+aEWYXLcGBOOHJxg/IcW1izhzh1/quIWtdspeDAT6e+NHTuIWtEPBY hlTDGBgdiDY5AmudUvA45HY= X-Google-Smtp-Source: AFSGD/U8s5D7yX6F08MNecyxg7WexJ+sp8+UXE4kzh5KbD/27SGtsusFRq2GuqYF9AAUxWBlfvlg6Q== X-Received: by 2002:a65:57cb:: with SMTP id q11mr4643940pgr.60.1542777034414; Tue, 20 Nov 2018 21:10:34 -0800 (PST) Received: from localhost.localdomain.localdomain ([103.129.255.252]) by smtp.gmail.com with ESMTPSA id b62-v6sm52846616pfa.159.2018.11.20.21.10.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Nov 2018 21:10:33 -0800 (PST) From: Li Qiang To: armbru@redhat.com, pbonzini@redhat.com, kraxel@redhat.com, lersek@redhat.com, philmd@redhat.com Date: Tue, 20 Nov 2018 21:10:23 -0800 Message-Id: <1542777026-2788-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::642 Subject: [Qemu-devel] [PATCH v2 0/3] fw_cfg: fix boot bootsplash and reboot-timeout error checking 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: liq3ea@gmail.com, qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" And also do some code cleanup. A lot of thanks to Markus's review and advice. v2: fix some small issue per Markus's review. Li Qiang (3): fw_cfg: fix -boot bootsplash error checking fw_cfg: fix -boot reboot-timeout error checking fw_cfg: make qemu_extra_params_fw locally hw/nvram/fw_cfg.c | 63 +++++++++++++++++++++---------------------------- include/sysemu/sysemu.h | 1 - vl.c | 4 ++-- 3 files changed, 29 insertions(+), 39 deletions(-) Reviewed-by: Gerd Hoffmann