From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60607) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XosjM-0003bn-NZ for qemu-devel@nongnu.org; Thu, 13 Nov 2014 06:38:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XosjD-0005J2-MP for qemu-devel@nongnu.org; Thu, 13 Nov 2014 06:38:28 -0500 Received: from mail-wg0-x22d.google.com ([2a00:1450:400c:c00::22d]:45669) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XosjD-0005Iv-G2 for qemu-devel@nongnu.org; Thu, 13 Nov 2014 06:38:19 -0500 Received: by mail-wg0-f45.google.com with SMTP id x12so16821255wgg.18 for ; Thu, 13 Nov 2014 03:38:18 -0800 (PST) Date: Thu, 13 Nov 2014 11:38:16 +0000 From: Stefan Hajnoczi Message-ID: <20141113113816.GQ7462@stefanha-thinkpad.redhat.com> References: <2d8594b44c764e12873a71821668a63b@AMSPR05MB0658.eurprd05.prod.outlook.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="O7Os1+MGCLLi8F5z" Content-Disposition: inline In-Reply-To: <2d8594b44c764e12873a71821668a63b@AMSPR05MB0658.eurprd05.prod.outlook.com> Subject: Re: [Qemu-devel] Is there a way for passing parameter directly to a module List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Lior Nahmanson Cc: "qemu-devel@nongnu.org" --O7Os1+MGCLLi8F5z Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 --O7Os1+MGCLLi8F5z Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJUZJgoAAoJEJykq7OBq3PIPwoH/3Ae8pd7ZDcqWGnuA2U7YnHH yh/kREvsjpGVqy2Jh/AS6r8LovS9XRO5ArJOTySSD8BHLo7FkLzYAEk1eCmAwvvL Xk+6zuPCINSGhnxLOwMc4z8kM1kbGyE7KMPMLZWGz85HT5xQ/mS255VzJMhhEDrR JKIuFqsMvjaTbUba8gNh67Azw/r5zt4PZD7KbCn16U+2D5xzh69cyaW1M3t3OKGk A3lBtXoJ+A65oqhjd3B899ZOh9z5k7JOpDft42H02U47efVVxBGHrkCk/XlD5ym9 QOpOKY3IGjzKQIk+plPmKePZAKi6azTvOqBZpKzfXylj3reg4dqkSG6FuIGiTYA= =tQVJ -----END PGP SIGNATURE----- --O7Os1+MGCLLi8F5z--