Received: from eggs.gnu.org ([2001:4830:134:3::10]:38669) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XyjO0-0001Nz-VK for qemu-devel@nongnu.org; Wed, 10 Dec 2014 10:41:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XyjNw-0003cI-DZ for qemu-devel@nongnu.org; Wed, 10 Dec 2014 10:41:08 -0500 Received: from mx6-phx2.redhat.com ([209.132.183.39]:43993) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XyjNw-0003cE-5x for qemu-devel@nongnu.org; Wed, 10 Dec 2014 10:41:04 -0500 Date: Wed, 10 Dec 2014 10:41:01 -0500 (EST) From: Gal Hammer Message-ID: <1319988177.24177324.1418226061804.JavaMail.zimbra@redhat.com> In-Reply-To: <5487364F.9070000@redhat.com> References: <1418141689-10828-1-git-send-email-ghammer@redhat.com> <1418141689-10828-2-git-send-email-ghammer@redhat.com> <5487364F.9070000@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH V9 1/3] docs: vm generation id device's description Reply-To: Gal Hammer List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake Cc: qemu-devel@nongnu.org ----- Original Message ----- > From: "Eric Blake" > To: "Gal Hammer" , qemu-devel@nongnu.org > Sent: Tuesday, December 9, 2014 7:50:07 PM > Subject: Re: [Qemu-devel] [PATCH V9 1/3] docs: vm generation id device's description > > On 12/09/2014 09:14 AM, Gal Hammer wrote: > > Signed-off-by: Gal Hammer > > > > --- > > docs/specs/vmgenid.txt | 27 +++++++++++++++++++++++++++ > > 1 file changed, 27 insertions(+) > > create mode 100644 docs/specs/vmgenid.txt > > > > diff --git a/docs/specs/vmgenid.txt b/docs/specs/vmgenid.txt > > new file mode 100644 > > index 0000000..9a09d11 > > --- /dev/null > > +++ b/docs/specs/vmgenid.txt > > @@ -0,0 +1,27 @@ > > +VIRTUAL MACHINE GENERATION ID > > Just because we aren't consistent doesn't mean that new files can get > away with not listing a license/copyright notice. Check some of the > other recent doc additions for ideas on how to do it concisely. Most of the files in the docs/specs doesn't have a legal notice so I missed it. Fixed. > > > +============================= > > + > > +The VM generation ID (vmgenid) device is an emulated device which > > +expose a 128-bit, cryptographically random, integer value identifier. > > s/expose/exposes/ > > > +This allows management applications (e.g. libvirt) to notify the guest > > +operating system when the virtual machine is executed with a different > > +configuration (e.g. snapshot execution or creation from a template). > > + > > +Specs is on the web at: http://go.microsoft.com/fwlink/?LinkId=260709 > > s/Specs is/This is specified/ > > > + > > +--- > > + > > +The vmgenid device is a sysbus device with the following ACPI ID: > > +"QEMU0002". > > + > > +The device adds a "vmgenid.uuid" property, which can be modifed using > > s/modifed/modified/ Fixed the typos. Thanks. > > +the -global command line argument or the QMP interface. > > + > > +The device uses a fixed memory resource: 0xfedf0000-0xfedf0003. The > > What endianness is the memory resource? Is 4 bytes sufficient, or should > it be 8 bytes because it holds a pointer? Or is the size dependent on > the guest hardware? Current implementation allocates the GUID's buffer in a 32-bit address range so the device uses 4 LE bytes. > > +guest is expected to write the physical address of the GUID's buffer > > +to that memory resource. This allows the device to modify the GUID if > > +requested by the management application. > > What endianness is the GUID buffer? The spec say nothing about it. I assumed it is LE. > > + > > +According to the specification, any change to the GUID executes an > > +ACPI notification. The vmgenid device triggers the GPE._E00 which > > +executes the ACPI Notify operation. > > > > -- > Eric Blake eblake redhat com +1-919-301-3266 > Libvirt virtualization library http://libvirt.org > > Thanks, Gal.