From patchwork Wed Jan 25 01:43:22 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: ben@skyportsystems.com X-Patchwork-Id: 9536293 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 4D8F560434 for ; Wed, 25 Jan 2017 01:49:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 337F826E76 for ; Wed, 25 Jan 2017 01:49:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 245DC27D5E; Wed, 25 Jan 2017 01:49:18 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 957D826E76 for ; Wed, 25 Jan 2017 01:49:17 +0000 (UTC) Received: from localhost ([::1]:56756 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cWCi4-0007tR-M2 for patchwork-qemu-devel@patchwork.kernel.org; Tue, 24 Jan 2017 20:49:16 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47458) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cWCcw-0003hE-Lb for qemu-devel@nongnu.org; Tue, 24 Jan 2017 20:43:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cWCct-0005NJ-AC for qemu-devel@nongnu.org; Tue, 24 Jan 2017 20:43:58 -0500 Received: from mail-yw0-x233.google.com ([2607:f8b0:4002:c05::233]:35279) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cWCct-0005ND-63 for qemu-devel@nongnu.org; Tue, 24 Jan 2017 20:43:55 -0500 Received: by mail-yw0-x233.google.com with SMTP id l19so177091489ywc.2 for ; Tue, 24 Jan 2017 17:43:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=skyportsystems.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=aeWAsoiMNKh/CpQkRE/eDD9bbTYSYMvNAeXrdMPBbDs=; b=pe3ZQXPSKxTtoDYMDmy5vQV8kqtK5sJHrqtVoEIWnCQJtWCz4lGpyYtOmyKdc6cO0o 233k0rW243vRcuDebQ630Ba6AedF3vFmkhZ4OlTmlHkpazJMk5IFCKQz28kzXcnwPmQB 88Tcqb8GlS1MxzKupA/tHjnyZnZvyrj0cQ33E= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=aeWAsoiMNKh/CpQkRE/eDD9bbTYSYMvNAeXrdMPBbDs=; b=jShtbr91bpB4Tvn8OPjiytEpoZRdk1PKqV9giEqw53q9RExXpRBcSCDvpVKtPdWRhM ql53LjIM1/oIsRJu4xmo9MAF8Z7auGgOIa1afDV9hgZNI2Pc/cyJCbWNT2koWGXPST1i rMsx3Rp8FxE3CVk0U962tpiuiimaMrn85XYaF6PjO684BgQjAEgqbjccyulb8hYnaT7I mZGAfCD3WCR6OR/MPOnFEvLBsgi1NEd8+t3+SSR3DMRDgwOE48i95V94E1nHmBB2cZkc OBIHWN8gx2cwK1idviGjPFAPsNGwyUDQyM/FX+7Qk5buPOo0JW1WJMr2CsC5Aief/+ba Iv2A== X-Gm-Message-State: AIkVDXJ9lt8YRQjVXnzJUNVj3oH7LStaUDSg82POUKI0nkwZYvm2dN0Wh6fAU/itHssNpk7z X-Received: by 10.129.172.80 with SMTP id z16mr28023160ywj.6.1485308634508; Tue, 24 Jan 2017 17:43:54 -0800 (PST) Received: from Arrow.corp.skyportsystems.com (162-199-88-38.lightspeed.sntcca.sbcglobal.net. [162.199.88.38]) by smtp.gmail.com with ESMTPSA id w126sm10757317yww.41.2017.01.24.17.43.53 (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 24 Jan 2017 17:43:53 -0800 (PST) From: ben@skyportsystems.com To: qemu-devel@nongnu.org Date: Tue, 24 Jan 2017 17:43:22 -0800 Message-Id: X-Mailer: git-send-email 2.10.1 (Apple Git-78) In-Reply-To: References: In-Reply-To: References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:4002:c05::233 Subject: [Qemu-devel] [PATCH v4 3/9] docs: VM Generation ID device description X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Gal Hammer , Ben Warren Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Ben Warren This patch is based off an earlier version by Gal Hammer (ghammer@redhat.com) Signed-off-by: Gal Hammer Signed-off-by: Ben Warren --- docs/specs/vmgenid.txt | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 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..d36ed5b --- /dev/null +++ b/docs/specs/vmgenid.txt @@ -0,0 +1,40 @@ +VIRTUAL MACHINE GENERATION ID +============================= + +Copyright (C) 2016 Red Hat, Inc. +Copyright (C) 2017 Skyport Systems, Inc. + +This work is licensed under the terms of the GNU GPL, version 2 or later. +See the COPYING file in the top-level directory. + +=== + +The VM generation ID (vmgenid) device is an emulated device which +exposes a 128-bit, cryptographically random, integer value identifier. +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). + +This is specified on the web at: http://go.microsoft.com/fwlink/?LinkId=260709 + +--- + +The vmgenid device is a sysbus device with the ACPI ID "QEMUGVID". + +The device has one properties, which can be set using the command line +argument or the QMP interface: + 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="324e6eaf-d1d1-4bf6-bf41-b9bb6c91fb87" + +Or to change guid in runtime use: + set-vm-generation-id guid=124e6eaf-d1d1-4bf6-bf41-b9bb6c91fb87 + set-vm-generation-id guid=auto + +According to the specification, any change to the GUID executes an +ACPI notification. The vmgenid device triggers the \_GPE._E05 handler +which executes the ACPI Notify operation. + +Although not specified in Microsoft's document, it is assumed that the +device is expected to use the little-endian system.