From patchwork Sat Feb 7 00:17:02 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cory Fields X-Patchwork-Id: 5953 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n16NJOSP022170 for ; Fri, 6 Feb 2009 23:19:24 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750936AbZBFXTV (ORCPT ); Fri, 6 Feb 2009 18:19:21 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752853AbZBFXTV (ORCPT ); Fri, 6 Feb 2009 18:19:21 -0500 Received: from mout.perfora.net ([74.208.4.194]:52414 "EHLO mout.perfora.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750936AbZBFXTU (ORCPT ); Fri, 6 Feb 2009 18:19:20 -0500 Received: from localhost.localdomain (c-24-30-35-55.hsd1.ga.comcast.net [24.30.35.55]) by mrelay.perfora.net (node=mrus1) with ESMTP (Nemesis) id 0MKpCa-1LVZyf1LGJ-0007TW; Fri, 06 Feb 2009 18:19:18 -0500 From: Cory Fields To: kvm@vger.kernel.org Subject: [PATCH 1/4] Define new channels for quietboot and fastboot Date: Fri, 6 Feb 2009 19:17:02 -0500 Message-Id: <1233965825-17970-2-git-send-email-FOSS@AtlasTechnologiesInc.com> X-Mailer: git-send-email 1.6.0.6 In-Reply-To: <1233965825-17970-1-git-send-email-FOSS@AtlasTechnologiesInc.com> References: <1233965825-17970-1-git-send-email-FOSS@AtlasTechnologiesInc.com> X-Provags-ID: V01U2FsdGVkX190qYoorQrwT8nB54zbxorFnNlR2lGtGqoOWUi RcbYpfk7mLJPToWRRnrd7cTutBNk75WgQFjV6crgEJUfEBrF8W mgkcBRKmS7qcODx0xenFMCD1rzd4ttJzmL5lTvKr4A= Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org Provide a way to send quietboot and fastboot to bios Signed-off-by: Cory Fields --- qemu/hw/fw_cfg.c | 2 ++ qemu/hw/fw_cfg.h | 2 ++ qemu/sysemu.h | 2 ++ 3 files changed, 6 insertions(+), 0 deletions(-) diff --git a/qemu/hw/fw_cfg.c b/qemu/hw/fw_cfg.c index 4333ed9..280f227 100644 --- a/qemu/hw/fw_cfg.c +++ b/qemu/hw/fw_cfg.c @@ -287,6 +287,8 @@ void *fw_cfg_init(uint32_t ctl_port, uint32_t data_port, fw_cfg_add_bytes(s, FW_CFG_UUID, qemu_uuid, 16); fw_cfg_add_i16(s, FW_CFG_NOGRAPHIC, (uint16_t)nographic); fw_cfg_add_i16(s, FW_CFG_NB_CPUS, (uint16_t)smp_cpus); + fw_cfg_add_i16(s, FW_CFG_QUIETBOOT, (uint16_t)quietboot); + fw_cfg_add_i16(s, FW_CFG_FASTBOOT, (uint16_t)fastboot); register_savevm("fw_cfg", -1, 1, fw_cfg_save, fw_cfg_load, s); qemu_register_reset(fw_cfg_reset, s); diff --git a/qemu/hw/fw_cfg.h b/qemu/hw/fw_cfg.h index ef8f378..e9b22cd 100644 --- a/qemu/hw/fw_cfg.h +++ b/qemu/hw/fw_cfg.h @@ -8,6 +8,8 @@ #define FW_CFG_NOGRAPHIC 0x04 #define FW_CFG_NB_CPUS 0x05 #define FW_CFG_MACHINE_ID 0x06 +#define FW_CFG_FASTBOOT 0x07 +#define FW_CFG_QUIETBOOT 0x08 #define FW_CFG_MAX_ENTRY 0x10 #define FW_CFG_WRITE_CHANNEL 0x4000 diff --git a/qemu/sysemu.h b/qemu/sysemu.h index f971d1b..2b1949c 100644 --- a/qemu/sysemu.h +++ b/qemu/sysemu.h @@ -88,6 +88,8 @@ extern int graphic_width; extern int graphic_height; extern int graphic_depth; extern int nographic; +extern int fastboot; +extern int quietboot; extern const char *keyboard_layout; extern int win2k_install_hack; extern int rtc_td_hack;