From patchwork Tue Apr 15 06:44:32 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Crosthwaite X-Patchwork-Id: 339166 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org 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 ozlabs.org (Postfix) with ESMTPS id 485331400E8 for ; Tue, 15 Apr 2014 16:46:06 +1000 (EST) Received: from localhost ([::1]:47273 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WZx88-0003zo-8n for incoming@patchwork.ozlabs.org; Tue, 15 Apr 2014 02:46:04 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37192) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WZx7I-0002Rz-3F for qemu-devel@nongnu.org; Tue, 15 Apr 2014 02:45:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WZx7B-0006h0-Re for qemu-devel@nongnu.org; Tue, 15 Apr 2014 02:45:12 -0400 Received: from mail-qa0-f41.google.com ([209.85.216.41]:36019) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WZx7B-0006gZ-Ob for qemu-devel@nongnu.org; Tue, 15 Apr 2014 02:45:05 -0400 Received: by mail-qa0-f41.google.com with SMTP id j5so9064570qaq.14 for ; Mon, 14 Apr 2014 23:45:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=posxGJXiQWhXaCEFduHCnZlcvx+mdicRmZoKMkrh3rY=; b=MWliR5+Uc/1mdghXJxRTkKP02s9mcjHr9N0nYtnw/vyrx5dG8ejCNRiJxoUQ9L1DjQ zO1yj/WNPMiVMEAGQ/7L2VDPW8D0g2wNnd8CnpVrk1+GAHDJbxfDDRtLRKAE+VZXJY24 5/IkRiFH/Dd9OjJAbCA1VCMW2iLS9JygYE5SZBr3qzmAl7izITZ5OSzNLcdvoRVjXmCU 9XzMKF2QSJYWO5WXRAye+sFiPyTY/pPaSlpB/WttEm2m/dJP6rhKy/6oJEyXwzSzaqV5 guS5JJENNvro1HQ5cVSe5ajkwAPUMvodvO/z9q5Iv46Vj2ngGuGMqg2CScy4/lmSKgfr 4Sxw== X-Gm-Message-State: ALoCoQmhhWa9UYcZqaRxQm7Vgl9h+6oz+6NHSCouplIHHhDtVqP0cQRylKvGyS6yrywbhNXz+HmC X-Received: by 10.140.37.194 with SMTP id r60mr53532193qgr.61.1397544305387; Mon, 14 Apr 2014 23:45:05 -0700 (PDT) Received: from localhost ([149.199.62.254]) by mx.google.com with ESMTPSA id n3sm21429026qaf.36.2014.04.14.23.45.03 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 14 Apr 2014 23:45:03 -0700 (PDT) From: Peter Crosthwaite To: qemu-devel@nongnu.org Date: Mon, 14 Apr 2014 23:44:32 -0700 Message-Id: <30d158f868d17a0866de29b5fcb255603dccdd4e.1397536761.git.peter.crosthwaite@xilinx.com> X-Mailer: git-send-email 1.9.2.1.g06c4abd In-Reply-To: References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.216.41 Cc: armbru@redhat.com Subject: [Qemu-devel] [PATCH v1 2/3] vl.c: Add qemu_get_boot_opts() X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Same basic idea as qemu_get_machine_opts(). Signed-off-by: Peter Crosthwaite --- include/sysemu/sysemu.h | 1 + vl.c | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/include/sysemu/sysemu.h b/include/sysemu/sysemu.h index ba5c7f8..d41748d 100644 --- a/include/sysemu/sysemu.h +++ b/include/sysemu/sysemu.h @@ -198,6 +198,7 @@ char *get_boot_devices_list(size_t *size, bool ignore_suffixes); DeviceState *get_boot_device(uint32_t position); QemuOpts *qemu_get_machine_opts(void); +QemuOpts *qemu_get_boot_opts(void); bool usb_enabled(bool default_usb); diff --git a/vl.c b/vl.c index bc12d0f..d761211 100644 --- a/vl.c +++ b/vl.c @@ -535,6 +535,17 @@ QemuOpts *qemu_get_machine_opts(void) return qemu_get_opts_nofail("machine"); } +/** + * Get boot options + * + * Returns: boot options (never null). + */ + +QemuOpts *qemu_get_boot_opts(void) +{ + return qemu_get_opts_nofail("boot-opts"); +} + const char *qemu_get_vm_name(void) { return qemu_name;