From patchwork Sat Nov 10 03:41:13 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Li Qiang X-Patchwork-Id: 10676855 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 41C1C13AD for ; Sat, 10 Nov 2018 03:42:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3111B2E60C for ; Sat, 10 Nov 2018 03:42:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 20A402EDC0; Sat, 10 Nov 2018 03:42:40 +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=-6.9 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI, SUBJ_OBFU_PUNCT_FEW 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 904D12E57F for ; Sat, 10 Nov 2018 03:42:39 +0000 (UTC) Received: from localhost ([::1]:36973 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gLKAQ-0004TQ-GQ for patchwork-qemu-devel@patchwork.kernel.org; Fri, 09 Nov 2018 22:42:38 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53532) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gLK9M-0003u8-Kh for qemu-devel@nongnu.org; Fri, 09 Nov 2018 22:41:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gLK9G-0003uH-HM for qemu-devel@nongnu.org; Fri, 09 Nov 2018 22:41:30 -0500 Received: from m12-14.163.com ([220.181.12.14]:46659) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gLK9E-0003po-VK for qemu-devel@nongnu.org; Fri, 09 Nov 2018 22:41:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id; bh=0nO5ZOxHw8X03tpH1F FiDVSPGg+B1vHxSPdRiWhfCR0=; b=E+We9rxRWh0SYpzozcs0OR0YCQwhFKaF58 rCdAx6UJJbXj27DsC5dOUU0xlEHroWGkxAFjlJd61ADVO9c4KtEosIAVwtBwy1kg /+m7GewN5stqd+6H7wwvdeXSKiNEza6o/BrzM5CTkHx7r5JqtRPd/MtgT9Gyokkf TLvHMyhjo= Received: from ubuntu.localdomain (unknown [36.27.43.123]) by smtp10 (Coremail) with SMTP id DsCowAA3U81dU+ZbjEFaYA--.60968S2; Sat, 10 Nov 2018 11:41:18 +0800 (CST) From: Li Qiang To: pbonzini@redhat.com, kraxel@redhat.com, armbru@redhat.com, lersek@redhat.com, philmd@redhat.com Date: Fri, 9 Nov 2018 19:41:13 -0800 Message-Id: <20181110034115.103335-1-liq3ea@163.com> X-Mailer: git-send-email 2.17.1 X-CM-TRANSID: DsCowAA3U81dU+ZbjEFaYA--.60968S2 X-Coremail-Antispam: 1Uf129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7v73 VFW2AGmfu7bjvjm3AaLaJ3UbIYCTnIWIevJa73UjIFyTuYvjxUY6wuUUUUU X-Originating-IP: [36.27.43.123] X-CM-SenderInfo: 5oltjvrd6rljoofrz/xtbBLwv6bVUMGssDdwABsO X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 220.181.12.14 Subject: [Qemu-devel] [PATCH 0/2] refactor fw_cfg_bootsplash() and fw_cfg_reboot() 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 This patchset comes out as the result of the following review as per Markus's and Gerd's advice: -->https://lists.gnu.org/archive/html/qemu-devel/2018-10/msg06975.html -->http://lists.gnu.org/archive/html/qemu-devel/2018-11/msg00701.html The second patch also fix that the user can set a negative reboot_timeout. Li Qiang (2): hw: fw_cfg: refactor fw_cfg_bootsplash() hw: fw_cfg: refactor fw_cfg_reboot() hw/nvram/fw_cfg.c | 63 ++++++++++++++++++++--------------------------- vl.c | 4 +-- 2 files changed, 29 insertions(+), 38 deletions(-)