* [Qemu-devel] Is there a way for passing parameter directly to a module
@ 2014-11-09 16:41 Lior Nahmanson
2014-11-13 11:38 ` Stefan Hajnoczi
0 siblings, 1 reply; 2+ messages in thread
From: Lior Nahmanson @ 2014-11-09 16:41 UTC (permalink / raw)
To: qemu-devel@nongnu.org
[-- Attachment #1: Type: text/plain, Size: 324 bytes --]
Hi,
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.
Thanks,
Lior Nahmanson
[-- Attachment #2: Type: text/html, Size: 2032 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] Is there a way for passing parameter directly to a module
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
0 siblings, 0 replies; 2+ messages in thread
From: Stefan Hajnoczi @ 2014-11-13 11:38 UTC (permalink / raw)
To: Lior Nahmanson; +Cc: qemu-devel@nongnu.org
[-- 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 --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-11-13 11:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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).