qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Stefan Hajnoczi <stefanha@gmail.com>
To: Lior Nahmanson <liorna@mellanox.com>
Cc: "qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] Is there a way for passing parameter directly to a module
Date: Thu, 13 Nov 2014 11:38:16 +0000	[thread overview]
Message-ID: <20141113113816.GQ7462@stefanha-thinkpad.redhat.com> (raw)
In-Reply-To: <2d8594b44c764e12873a71821668a63b@AMSPR05MB0658.eurprd05.prod.outlook.com>

[-- Attachment #1: Type: text/plain, Size: 776 bytes --]

On Sun, Nov 09, 2014 at 04:41:17PM +0000, Lior Nahmanson wrote:
> Is there a way for passing a parameter directly to a module (i.e. device driver within QEMU), for example file path (when I am working at Full system emulation)?
> My goal is to have a device emulation which will be able to read a configuration file that its name is provided in runtime.

Hi Lior,
Thanks for posting to qemu-devel.  You also posted on my blog.  I saw
and answered there first.  In the future, please post general technical
questions on qemu-devel and not my blog - that way others can help too.

For the record, my answer was that qdev properties (or QOM properties)
are the standard way of passing parameters: -device foo,myarg=1.  There
are many examples, such as in hw/net/e1000.c.

Stefan

[-- Attachment #2: Type: application/pgp-signature, Size: 473 bytes --]

      reply	other threads:[~2014-11-13 11:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-09 16:41 [Qemu-devel] Is there a way for passing parameter directly to a module Lior Nahmanson
2014-11-13 11:38 ` Stefan Hajnoczi [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20141113113816.GQ7462@stefanha-thinkpad.redhat.com \
    --to=stefanha@gmail.com \
    --cc=liorna@mellanox.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).