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: 10691937 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 3DEA814BD for ; Wed, 21 Nov 2018 05:11:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 280402B6E0 for ; Wed, 21 Nov 2018 05:11:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 176BA2B6E6; Wed, 21 Nov 2018 05:11:57 +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 B04DD2B6E0 for ; Wed, 21 Nov 2018 05:11:56 +0000 (UTC) Received: from localhost ([::1]:37250 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gPKnr-0004jz-Ig for patchwork-qemu-devel@patchwork.kernel.org; Wed, 21 Nov 2018 00:11:55 -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+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP 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