From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39466) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XS3ls-0007iY-JJ for qemu-devel@nongnu.org; Thu, 11 Sep 2014 08:46:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XS3lk-0003LN-Ve for qemu-devel@nongnu.org; Thu, 11 Sep 2014 08:46:44 -0400 Received: from cantor2.suse.de ([195.135.220.15]:43736 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XS3lk-0003Kv-MT for qemu-devel@nongnu.org; Thu, 11 Sep 2014 08:46:36 -0400 Message-ID: <541199A9.8020304@suse.de> Date: Thu, 11 Sep 2014 14:46:33 +0200 From: =?UTF-8?B?QW5kcmVhcyBGw6RyYmVy?= MIME-Version: 1.0 References: <1410350664-1376-1-git-send-email-arei.gonglei@huawei.com> <534C5107B281854290643468BBAAD41F1CC845@G08CNEXMBPEKD01.g08.fujitsu.local> <33183CC9F5247A488A2544077AF1902086DC95A2@SZXEMA503-MBS.china.huawei.com> In-Reply-To: <33183CC9F5247A488A2544077AF1902086DC95A2@SZXEMA503-MBS.china.huawei.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v8 00/30] modify boot order of guest, and take effect after rebooting List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Gonglei (Arei)" , "Li, Guang" , "qemu-devel@nongnu.org" Cc: "kwolf@redhat.com" , "chenliang (T)" , "peter.crosthwaite@xilinx.com" , "Huangweidong (C)" , "ehabkost@redhat.com" , "mst@redhat.com" , "aik@ozlabs.ru" , "Hu, Tao" , Luonengjun , "armbru@redhat.com" , "agraf@suse.de" , "hani@linux.com" , "kraxel@redhat.com" , "aliguori@amazon.com" , "imammedo@redhat.com" , "lcapitulino@redhat.com" , "pbonzini@redhat.com" , "Huangpeng (Peter)" , "akong@redhat.com" , "stefanha@redhat.com" Am 11.09.2014 um 07:58 schrieb Gonglei (Arei): >>> ./qemu-system-x86_64 -enable-kvm -m 4096 -smp 4 -name redhat6.2 -driv= e \ >>> file=3D/home/win7_32_2U,if=3Dnone,id=3Ddrive-ide0-0-0 -device ide-hd,= bus=3Dide.0,\ >>> unit=3D0,drive=3Ddrive-ide0-0-0,id=3Dide0-0-0,bootindex=3D1 -drive \ >>> file=3D/home/rhel-server-7.0-x86_64-dvd.iso,if=3Dnone,id=3Ddrive-ide0= -0-1 \ -device >>> ide-cd,bus=3Dide.0,unit=3D1,drive=3Ddrive-ide0-0-1,id=3Dide0-0-1,boot= index=3D4 \ -vnc >>> 0.0.0.0:10 -netdev type=3Duser,id=3Dnet0 -device >>> virtio-net-pci,netdev=3Dnet0,bootindex=3D3,id=3Dnic1 \ -drive >>> file=3D/mnt/sdb/gonglei/image/virtio-win-1.5.3.vfd,if=3Dnone,id=3Ddri= ve-fdc0-0-0,for >>> mat=3Draw \ -device isa-fdc,driveA=3Ddrive-fdc0-0-0,bootindexA=3D5,id= =3Dfloppy1 >> -qmp >>> unix:/tmp/qmp,server,nowait \ -monitor stdio -netdev type=3Duser,id=3D= net1 >>> -device e1000,netdev=3Dnet1,bootindex=3D2,id=3Dnic \ -boot menu=3Don = -device >>> virtio-scsi-pci,id=3Dscsi0 -drive file=3D/home/suse11_sp3_32,if=3Dnon= e,\ >>> id=3Ddrive-scsi0-0-0-0,format=3Draw,cache=3Dnone,aio=3Dnative \ -devi= ce >>> >> scsi-hd,bus=3Dscsi0.0,channel=3D0,scsi-id=3D0,lun=3D0,drive=3Ddrive-sc= si0-0-0-0,id=3Dscsi0- >>> 0-0-0,bootindex=3D8 >>> QEMU 2.1.50 monitor - type 'help' for more information >>> (qemu) qom-get nic1 bootindex >>> 3 (0x3) >>> (qemu) qom-set nic1 bootindex 3 >>> The bootindex 3 has already been used >>> (qemu) qom-set nic1 bootindex 0 >>> (qemu) qom-set floppy1 bootindexA 3 >>> (qemu) system_reset >>> (qemu) qom-get nic1 bootindex >>> 0 (0x0) >>> (qemu) qom-get scsi0-0-0-0 bootindex >>> 8 (0x8) >>> (qemu) qom-set scsi0-0-0-0 bootindex 0 >>> The bootindex 0 has already been used >>> (qemu) qom-set nic1 bootindex -1 >>> (qemu) qom-set scsi0-0-0-0 bootindex 0 >>> (qemu) qom-get scsi0-0-0-0 bootindex >>> 0 (0x0) >>> (qemu) >>> >> >> Hmm..., seems we also need something like this: >> (qemu) qom-get bootindex >> dev0 bootindex 0 >> dev1 bootindex 1 >> dev2 bootindex 2 >> ... > I don't think so. Qom-get interface is ready-to-wear, we must > provide both QOM path and QOM property name. This interface > is not added by me. Thanks. :) Yeah, I don't think we need wildcards for qom-get here. I wouldn't oppose a new HMP command though if someone really sees a need. > BTW, you can look at with Andreas's patch series: > http://thread.gmane.org/gmane.comp.emulators.qemu/271513 >=20 > which haven't applied in mater tree. Sigh, many things on the to-do list... :( Regards, Andreas --=20 SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 N=C3=BCrnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imend=C3=B6rffer; HRB 16746 AG N=C3=BC= rnberg