From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 2139981F3A for ; Thu, 16 Feb 2017 12:41:43 -0800 (PST) Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id A5222C03BD7B; Thu, 16 Feb 2017 20:41:43 +0000 (UTC) Received: from lacos-laptop-7.usersys.redhat.com (ovpn-116-72.phx2.redhat.com [10.3.116.72]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id v1GKfgnX011444; Thu, 16 Feb 2017 15:41:42 -0500 From: Laszlo Ersek To: edk2-devel-01 Cc: Jordan Justen Date: Thu, 16 Feb 2017 21:41:32 +0100 Message-Id: <20170216204137.30221-1-lersek@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Thu, 16 Feb 2017 20:41:43 +0000 (UTC) Subject: [PATCH 0/5] OvmfPkg: support QEMU_LOADER_WRITE_POINTER X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Feb 2017 20:41:43 -0000 This patch series adds support for the new WRITE_POINTER command of QEMU's ACPI linker/loader. The command's first use case is QEMU's implementation of the "Microsoft Hyper-V Generation Counter" device (a.k.a. "VMGENID"). The latest version of the QEMU patch series (v7) can be found at: [Qemu-devel] [PATCH v7 0/8] Add support for VM Generation ID msgid http://lists.nongnu.org/archive/html/qemu-devel/2017-02/msg03456.html The VMGENID device is publicly specified by Microsoft. Please find the reference, and how QEMU implements the specification in cooperation with guest firmware (OVMF and SeaBIOS), at: [Qemu-devel] [PATCH v7 2/8] docs: VM Generation ID device description msgid <6e7af53f114f4875fbb952fb047d9d91bba2634f.1487224954.git.ben@skyportsystems.com> http://lists.nongnu.org/archive/html/qemu-devel/2017-02/msg03459.html The WRITE_POINTER command is a building block for this. While minuscule tweaks are expected in v8 of the QEMU series, we have finally stabilized the QEMU<->firmware interface, over a long and taxing series of emails and patch set versions. I've successfully tested basic VMGENID functionality (initial setup, guest memory contents, ACPI S3 suspend/resume, device status) with RHEL-7 and Windows Server 2012 R2 guests. This series can be fetched from , branch "write_pointer". Cc: Jordan Justen Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=359 Thanks Laszlo Laszlo Ersek (5): OvmfPkg/AcpiPlatformDxe: prepare for QEMU_LOADER_WRITE_POINTER definitions OvmfPkg/AcpiPlatformDxe: add QEMU_LOADER_WRITE_POINTER definitions OvmfPkg/AcpiPlatformDxe: rewrap license block in "QemuFwCfgAcpi.c" OvmfPkg/AcpiPlatformDxe: implement the QEMU_LOADER_WRITE_POINTER command OvmfPkg/AcpiPlatformDxe: replay QEMU_LOADER_WRITE_POINTER commands at S3 OvmfPkg/AcpiPlatformDxe/AcpiPlatformDxe.inf | 2 + OvmfPkg/AcpiPlatformDxe/QemuFwCfgAcpiPlatformDxe.inf | 2 + OvmfPkg/AcpiPlatformDxe/AcpiPlatform.h | 27 ++ OvmfPkg/AcpiPlatformDxe/QemuLoader.h | 36 +- OvmfPkg/AcpiPlatformDxe/BootScript.c | 414 ++++++++++++++++++++ OvmfPkg/AcpiPlatformDxe/QemuFwCfgAcpi.c | 245 +++++++++++- 6 files changed, 711 insertions(+), 15 deletions(-) create mode 100644 OvmfPkg/AcpiPlatformDxe/BootScript.c -- 2.9.3