Received: from eggs.gnu.org ([2001:4830:134:3::10]:57755) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cyOho-0003T1-9q for qemu-devel@nongnu.org; Wed, 12 Apr 2017 16:17:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cyOhj-0007GH-Ci for qemu-devel@nongnu.org; Wed, 12 Apr 2017 16:17:32 -0400 Received: from mx1.redhat.com ([209.132.183.28]:39362) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cyOhj-0007FK-74 for qemu-devel@nongnu.org; Wed, 12 Apr 2017 16:17:27 -0400 References: <1488435591-17882-1-git-send-email-mst@redhat.com> <1488435591-17882-3-git-send-email-mst@redhat.com> From: Laszlo Ersek Message-ID: <83ab7c00-5d71-d3fc-741b-2a7abbb6f63a@redhat.com> Date: Wed, 12 Apr 2017 22:17:19 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PULL 02/15] docs: VM Generation ID device description List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?Q?Marc-Andr=c3=a9_Lureau?= , "Michael S. Tsirkin" , qemu-devel@nongnu.org Cc: Gal Hammer , Peter Maydell , Ben Warren , Igor Mammedov On 04/12/17 22:06, Marc-Andr=C3=A9 Lureau wrote: > On Thu, Mar 2, 2017 at 10:22 AM Michael S. Tsirkin wro= te: >> +Device Usage: >> +------------- >> + >> +The device has one property, which may be only be set using the comma= nd >> line: >> + >> + guid - sets the value of the GUID. A special value "auto" instruct= s >> + QEMU to generate a new random GUID. >> + >> +For example: >> + >> + QEMU -device vmgenid,guid=3D"324e6eaf-d1d1-4bf6-bf41-b9bb6c91fb87" >> + QEMU -device vmgenid,guid=3Dauto >> >=20 > The default will keep uuid to null, should it be documented? Wouldn't i= t > make sense to default to auto? I guess it might. >=20 >=20 >> +The property may be queried via QMP/HMP: >> + >> + (QEMU) query-vm-generation-id >> + {"return": {"guid": "324e6eaf-d1d1-4bf6-bf41-b9bb6c91fb87"}} >> + >> +Setting of this parameter is intentionally left out from the QMP/HMP >> +interfaces. There are no known use cases for changing the GUID once = QEMU >> is >> +running, and adding this capability would greatly increase the comple= xity. >> >=20 > Is this supposed to be not permitted? >=20 > { "execute": "qom-set", "arguments": { "path": > "/machine/peripheral-anon/device[1]", "property": "guid", "value": "aut= o" } > } I don't know if qom-set can be disabled for individual devices / device properties. Either way, setting a new GUID for VMGENID will definitely take custom code. > Is there any linux kernel support being worked on? There's an RHBZ for it (alias "vmgenid-kernel"): https://bugzilla.redhat.com/show_bug.cgi?id=3D1159983 (It is private because RHBZs for the kernel component are private by default.) Thanks Laszlo