From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NDHPD-0007IX-R4 for qemu-devel@nongnu.org; Wed, 25 Nov 2009 07:55:35 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NDHP9-0007GT-3z for qemu-devel@nongnu.org; Wed, 25 Nov 2009 07:55:35 -0500 Received: from [199.232.76.173] (port=42533 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NDHP8-0007GQ-St for qemu-devel@nongnu.org; Wed, 25 Nov 2009 07:55:30 -0500 Received: from mx1.redhat.com ([209.132.183.28]:44040) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NDHP8-0000gh-Ey for qemu-devel@nongnu.org; Wed, 25 Nov 2009 07:55:30 -0500 Received: from int-mx08.intmail.prod.int.phx2.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id nAPCtTHn004202 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 25 Nov 2009 07:55:29 -0500 Message-ID: <4B0D2936.9000707@redhat.com> Date: Wed, 25 Nov 2009 13:55:18 +0100 From: Gerd Hoffmann MIME-Version: 1.0 References: <1259060788-17411-1-git-send-email-kraxel@redhat.com> <1259060788-17411-2-git-send-email-kraxel@redhat.com> <20091124141122.GM2405@redhat.com> In-Reply-To: <20091124141122.GM2405@redhat.com> Content-Type: multipart/mixed; boundary="------------080109020803000301010308" Subject: [Qemu-devel] Re: [PATCH 2/2] qdev: add command line option to set global defaults for properties. List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" Cc: qemu-devel@nongnu.org This is a multi-part message in MIME format. --------------080109020803000301010308 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 11/24/09 15:11, Michael S. Tsirkin wrote: > On Tue, Nov 24, 2009 at 12:06:28PM +0100, Gerd Hoffmann wrote: >> This patch adds infrastructure and command line option for setting >> global defaults for device properties, i.e. you can for example use >> >> -global virtio-blk-pci.vectors=0 >> >> to turn off msi by default for all virtio block devices. The config >> file syntax is: >> >> [global] >> driver = "virtio-blk-pci" >> property = "vectors" >> value = "0" > > Where's this documented? config file syntax is git-style, the details are not (yet) documented. Easiest way to get one if you want to play with it is "qemu -writeconfig ". Note that not all command line options are covered. I've attached a sample to this mail. Needs a few patches sent to the list yesterday and today to actually work though. > How would one figure out the command lines you give in > the examples above? "info qtree" in monitor prints the device names and properties for all devices used by the virtual machine. "info qdm" and '-device ?' list all devices known to qemu. The device properties are not listed there though (one of the items on my todo list). cheers, Gerd --------------080109020803000301010308 Content-Type: text/plain; name="x86-gfx.cfg" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="x86-gfx.cfg" # qemu config file # The config file doesn't yet cover all possible options. # # minimum command line: # qemu -nodefaults -vga cirrus -readconfig $thisfile # # you might want to add these switches: # -enable-kvm -m -smp -vnc -monitor # # create a new config file for your guest, for the bits already covered: # qemu -writeconfig .cfg ##################################################### # host side configuration [drive "hda"] if = "none" file = "/vmdisk/arch-x86.img" [drive "hdc"] if = "none" media = "cdrom" [drive "sda"] if = "none" file = "/vmdisk/test-lsi-1.img" [drive "sdb"] if = "none" file = "/vmdisk/test-lsi-2.img" [drive "vda"] if = "none" file = "/vmdisk/test-vio-1.img" [chardev "ttyS0"] backend = "vc" cols = "100" rows = "50" [netdev "eth0"] type = "user" ##################################################### # guest devices [device] driver = "ide-drive" bus = "ide.0" drive = "hda" [device] driver = "ide-drive" bus = "ide.1" drive = "hdc" [device] driver = "isa-serial" chardev = "ttyS0" [device] driver = "e1000" netdev = "eth0" mac = "52:54:00:78:23:6f" addr = "06.0" [device] driver = "AC97" addr = "05.0" [device] driver = "virtio-balloon-pci" addr = "08.0" [device] driver = "virtio-blk-pci" addr = "0c.0" drive = "vda" [device "lsi"] driver = "lsi53c895a" addr = "0a.0" [device] driver = "scsi-disk" bus = "lsi.0" scsi-id = "0" drive = "sda" [device] driver = "scsi-disk" bus = "lsi.0" scsi-id = "2" drive = "sdb" --------------080109020803000301010308--