From patchwork Mon Jan 16 19:20:53 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: 9519361 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 58A6A6020B for ; Mon, 16 Jan 2017 19:29:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 420A227DCE for ; Mon, 16 Jan 2017 19:29:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 36D1F282DC; Mon, 16 Jan 2017 19:29:33 +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 9B9F227DCE for ; Mon, 16 Jan 2017 19:29:32 +0000 (UTC) Received: from localhost ([::1]:59085 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cTCyB-0000ke-O7 for patchwork-qemu-devel@patchwork.kernel.org; Mon, 16 Jan 2017 14:29:31 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56870) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cTCq4-0002Tg-PY for qemu-devel@nongnu.org; Mon, 16 Jan 2017 14:21:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cTCq2-0007HV-KJ for qemu-devel@nongnu.org; Mon, 16 Jan 2017 14:21:08 -0500 Received: from mail-pf0-x232.google.com ([2607:f8b0:400e:c00::232]:35840) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cTCq2-0007HJ-ET for qemu-devel@nongnu.org; Mon, 16 Jan 2017 14:21:06 -0500 Received: by mail-pf0-x232.google.com with SMTP id 189so55491758pfu.3 for ; Mon, 16 Jan 2017 11:21:06 -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=w3FIGsdKV082AiD0taMoVk0p7xh/gBVvbvG3SKgzRyQ=; b=JFXRbf044Ba/OYRfeyrOl8Fvm0NZZeW9h1PKB5jBvdXnq0oE6aU/Cu6XLu+xZ39TTB H6c+zzH4017q75Sf3U+ImBhskVS+10/xNOLUS0bA842w6+hgdlVK4IdoES154PLdynq2 ZxdaKXvb/w2fF/2CqX1ZH8LQLj4lf8Hd4B7Rg= 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=w3FIGsdKV082AiD0taMoVk0p7xh/gBVvbvG3SKgzRyQ=; b=HKvfMk9Tc9vt5IYbJ8dVef5mT+sv2Au0WKw4u+Y5liaFIkTO4QjLdVaEpJRIM4YPHI QsESvTTQ5du/IB66razN7TjPoHvmMHBANUJTu8d1u8pK7rCI09r6XgEc4tlHRS5Rab0q TA+wi6BPd7dd5VkloHFAwc9ofSpzUNrkzlOfgPXrMc3WwQHfhiHIGh4SwSo0UPrIpRC5 Igzn35+Fp8uXzspQ6RDTbDQfPUhmh/EWQiZifFDdw4kECbOlDKjPWf3z05hlsCrnujV3 eZvP1cbDavoFJNJfh4VpzMdtRiHkW/kLIkTjZkZ05af7rDObQjmwF2OMjDPb+z1L/FF5 hDJQ== X-Gm-Message-State: AIkVDXJx39xJ2MA8pZvLOy6hl3YogKa1VzcYxiY823MqO2QqYxaO17QWLJ0dCRz+64fmMk66 X-Received: by 10.84.218.3 with SMTP id q3mr52638650pli.80.1484594465198; Mon, 16 Jan 2017 11:21:05 -0800 (PST) Received: from Arrow.corp.skyportsystems.com (67-207-112-138.static.wiline.com. [67.207.112.138]) by smtp.gmail.com with ESMTPSA id w76sm43886299pfd.74.2017.01.16.11.21.04 (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 16 Jan 2017 11:21:04 -0800 (PST) From: ben@skyportsystems.com To: qemu-devel@nongnu.org Date: Mon, 16 Jan 2017 11:20:53 -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:400e:c00::232 Subject: [Qemu-devel] [PATCH v2 1/6] docs: vm generation id device's 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 Signed-off-by: Ben Warren Cc: Gal Hammer --- docs/specs/vmgenid.txt | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 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..afc1717 --- /dev/null +++ b/docs/specs/vmgenid.txt @@ -0,0 +1,38 @@ +VIRTUAL MACHINE GENERATION ID +============================= + +Copyright (C) 2016 Red Hat, Inc. +Copyright (C) 2016 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 "QEMU_Gen_Counter_V1". + +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 +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" + +According to the specification, any change to the GUID executes an +ACPI notification. The vmgenid device triggers the \_GPE._E00 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.