From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39636) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cyPBG-0005Sr-21 for qemu-devel@nongnu.org; Wed, 12 Apr 2017 16:48:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cyPBE-00032M-JA for qemu-devel@nongnu.org; Wed, 12 Apr 2017 16:47:58 -0400 Received: from mail-lf0-x230.google.com ([2a00:1450:4010:c07::230]:35756) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cyPBE-00030P-70 for qemu-devel@nongnu.org; Wed, 12 Apr 2017 16:47:56 -0400 Received: by mail-lf0-x230.google.com with SMTP id 75so20389490lfs.2 for ; Wed, 12 Apr 2017 13:47:56 -0700 (PDT) MIME-Version: 1.0 References: <1488435591-17882-1-git-send-email-mst@redhat.com> <1488435591-17882-3-git-send-email-mst@redhat.com> <9CD33C23-31A4-408C-883C-FD9160CB4A9D@skyportsystems.com> In-Reply-To: <9CD33C23-31A4-408C-883C-FD9160CB4A9D@skyportsystems.com> From: =?UTF-8?B?TWFyYy1BbmRyw6kgTHVyZWF1?= Date: Wed, 12 Apr 2017 20:47:43 +0000 Message-ID: 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: Ben Warren Cc: "Michael S. Tsirkin" , qemu-devel@nongnu.org, Gal Hammer , Peter Maydell , Laszlo Ersek , Igor Mammedov Hi On Thu, Apr 13, 2017 at 12:25 AM Ben Warren wrote: > On Apr 12, 2017, at 1:22 PM, Marc-Andr=C3=A9 Lureau > wrote: > > Hi > > On Thu, Apr 13, 2017 at 12:17 AM Ben Warren > wrote: > > On Apr 12, 2017, at 1:06 PM, Marc-Andr=C3=A9 Lureau > wrote: > > +Device Usage: > +------------- > + > +The device has one property, which may be only be set using the command > line: > + > + guid - sets the value of the GUID. A special value "auto" instructs > + QEMU to generate a new random GUID. > + > +For example: > + > + QEMU -device vmgenid,guid=3D"324e6eaf-d1d1-4bf6-bf41-b9bb6c91fb87" > + QEMU -device vmgenid,guid=3Dauto > > > The default will keep uuid to null, should it be documented? Wouldn't it > make sense to default to auto? > > There is no default - you have to supply a value. It=E2=80=99s up to what= ever > software is managing VM lifecycle to decide what value to pass in. Alway= s > setting to =E2=80=98auto=E2=80=99 will cause a lot of churn within Window= s that may or may > not be acceptable to your use case. > > > Why would you have a vmgenid device if it's always null? Does that please > some windows use-cases as well? > > > I don=E2=80=99t get what you mean by this. What device is always null? = Either > the device is instantiated or it isn=E2=80=99t. If not there, Windows wi= ll not > find a device and I don=E2=80=99t know how derived objects (Invocation ID= , etc.) > are handled. > If you start a VM without specifying guid argument, you'll always have a genid null uuid, event after a migration (this could have been handled by qemu without requiring management layer, no?). I don't understand why auto would create more churn than what the management layer would do by setting new uuid for each VM started. Could you explain? > > > +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 QEM= U > is > +running, and adding this capability would greatly increase the complexit= y. > > > Is this supposed to be not permitted? > > { "execute": "qom-set", "arguments": { "path": > "/machine/peripheral-anon/device[1]", "property": "guid", "value": "auto"= } > } > > Is there any linux kernel support being worked on? > > This isn=E2=80=99t really relevant to the Linux kernel, at least in any w= ay I can > think of. What did you have in mind? > > > Testing, but apparently we do have RFE for RHEL as Laszlo pointed out. > > OK, so you mean a guest driver. I do have one that needs work to go > upstream, but has been helpful to me in testing. > https://github.com/ben-skyportsystems/vmgenid-test > Thanks, that's exactly what I was looking for :) --=20 Marc-Andr=C3=A9 Lureau