From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.81]) by mx.groups.io with SMTP id smtpd.web10.9251.1582478766178973074 for ; Sun, 23 Feb 2020 09:26:06 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=VaHrncfo; spf=pass (domain: redhat.com, ip: 207.211.31.81, mailfrom: lersek@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1582478765; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=rbFlaOijAOmBjJiqr/lFxJdPrX28E9j1LOXXFYNUBN8=; b=VaHrncfoFL/zJHDJsdG0O5s0Lk1m6nffU7vPSS97+hbjvVIfivOM+Irr1q6MYaZnIw3IgZ LJWVPJocsFJWfV5SjT3IID+IBrjRvzytsQzSyRoHY1KkQ+aIgvm6g4yKSGd4D2hKkK0kRG HYuNVqkQBvf1iAoTI+Qt0EQBnGrF1Lk= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-443-9xL3VVQeP66Q5OAcczgRpg-1; Sun, 23 Feb 2020 12:26:03 -0500 X-MC-Unique: 9xL3VVQeP66Q5OAcczgRpg-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 800288017CC; Sun, 23 Feb 2020 17:26:02 +0000 (UTC) Received: from lacos-laptop-7.usersys.redhat.com (ovpn-116-53.ams2.redhat.com [10.36.116.53]) by smtp.corp.redhat.com (Postfix) with ESMTP id C20DD5C105; Sun, 23 Feb 2020 17:26:00 +0000 (UTC) From: "Laszlo Ersek" To: edk2-devel-groups-io Cc: Ard Biesheuvel , Igor Mammedov , Jiewen Yao , Jordan Justen , Michael Kinney , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH 08/16] OvmfPkg/CpuHotplugSmm: define the QEMU_CPUHP_CMD_GET_ARCH_ID macro Date: Sun, 23 Feb 2020 18:25:29 +0100 Message-Id: <20200223172537.28464-9-lersek@redhat.com> In-Reply-To: <20200223172537.28464-1-lersek@redhat.com> References: <20200223172537.28464-1-lersek@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 UUVNVSBjb21taXQgM2E2MWM4ZGI5ZDI1ICgiYWNwaTogY3B1aHA6IGFkZCBDUEhQX0dFVF9DUFVf SURfQ01EIGNvbW1hbmQiLAoyMDIwLTAxLTIyKSBpbnRyb2R1Y2VkIGEgbmV3IGNvbW1hbmQgaW4g dGhlIG1vZGVybiBDUFUgaG90cGx1ZyByZWdpc3RlcgpibG9jayB0aGF0IGxldHMgdGhlIGZpcm13 YXJlIHF1ZXJ5IHRoZSBhcmNoLXNwZWNpZmljIElEcyAob24gSUEzMi9YNjQ6IHRoZQpBUElDIElE cykgb2YgQ1BVcy4gQWRkIGEgbWFjcm8gZm9yIHRoaXMgY29tbWFuZCB2YWx1ZSwgYmVjYXVzZSB3 ZSdsbCBuZWVkCml0IGxhdGVyLgoKQXQgdGhlIHNhbWUgdGltZSwgYWRkIGEgc2FuaXR5IGNoZWNr IGZvciB0aGUgbW9kZXJuIGhvdHBsdWcgaW50ZXJmYWNlIHRvCkNwdUhvdHBsdWdTbW0uCgpDYzog QXJkIEJpZXNoZXV2ZWwgPGFyZC5iaWVzaGV1dmVsQGxpbmFyby5vcmc+CkNjOiBJZ29yIE1hbW1l ZG92IDxpbWFtbWVkb0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5kbGVyDQogICAgICAgICAgICAgICAgICAgICAmbURpc3Bh dGNoSGFuZGxlDQogICAgICAgICAgICAgICAgICAgICApOw0KICAgaWYgKEVGSV9FUlJPUiAoU3Rh dHVzKSkgew0KICAgICBERUJVRyAoKERFQlVHX0VSUk9SLCAiJWE6IE1taUhhbmRsZXJSZWdpc3Rl cigpOiAlclxuIiwgX19GVU5DVElPTl9fLA0KICAgICAgIFN0YXR1cykpOw0KICAgICBnb3RvIEZh dGFsOw0KICAgfQ0KIA0KICAgcmV0dXJuIEVGSV9TVUNDRVNTOw0KIA0KIEZhdGFsOg0KICAgQVNT RVJUIChGQUxTRSk7DQogICBDcHVEZWFkTG9vcCAoKTsNCiAgIHJldHVybiBTdGF0dXM7DQogfQ0K LS0gCjIuMTkuMS4zLmczMDI0N2FhNWQyMDEKCgo=