From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.groups.io with SMTP id smtpd.web10.49990.1673512134457724941 for ; Thu, 12 Jan 2023 00:28:54 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=bDOn1bAL; spf=pass (domain: redhat.com, ip: 170.10.133.124, mailfrom: lersek@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1673512133; 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; bh=9Ei6Bx32zV5anK3r6lWZ3YAfCRuTItNqJs9MhEIUNno=; b=bDOn1bALyyeN4/oS9qguylmvf42qevLBo6Ew9Zn4KbFEmo5EPY+3Bu2xmVyyQI4MbZBsTd usN3fu2A/fXtYnnynnXzxd3wOU1dX4bPkV7LO6+oZ6Wi58tPZqOvkT+3H1AoO5dOxCDeZK JjG1BlB7Kmv4vtPUJfPB7fJsLBLasFk= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-442-HpO777JxPQejjdBeMVudeg-1; Thu, 12 Jan 2023 03:28:50 -0500 X-MC-Unique: HpO777JxPQejjdBeMVudeg-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 0D04885D060; Thu, 12 Jan 2023 08:28:50 +0000 (UTC) Received: from lacos-laptop-9.usersys.redhat.com (unknown [10.39.192.93]) by smtp.corp.redhat.com (Postfix) with ESMTP id C433E140EBF5; Thu, 12 Jan 2023 08:28:47 +0000 (UTC) From: "Laszlo Ersek" To: devel@edk2.groups.io Cc: Ard Biesheuvel , Brijesh Singh , Erdem Aktas , Gerd Hoffmann , James Bottomley , Jiewen Yao , Jordan Justen , Min Xu , Oliver Steffen , Sebastien Boeuf , Tom Lendacky Subject: [PATCH v2] OvmfPkg/PlatformInitLib: catch QEMU's CPU hotplug reg block regression Date: Thu, 12 Jan 2023 09:28:45 +0100 Message-Id: <20230112082845.128463-1-lersek@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.7 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: base64 Content-Type: text/plain; charset="US-ASCII"; x-default=true SW4gUUVNVSB2NS4xLjAsIHRoZSBDUFUgaG90cGx1ZyByZWdpc3RlciBibG9jayBtaXNiZWhhdmVz OiB0aGUgbmVnb3RpYXRpb24KcHJvdG9jb2wgaXMgKGVmZmVjdGl2ZWx5KSBicm9rZW4gc3VjaCB0 aGF0IGl0IHN1Z2dlc3RzIHRoYXQgc3dpdGNoaW5nIGZyb20KdGhlIGxlZ2FjeSBpbnRlcmZhY2Ug dG8gdGhlIG1vZGVybiBpbnRlcmZhY2Ugd29ya3MsIGJ1dCBpbiByZWFsaXR5IHRoZQpzd2l0Y2gg bmV2ZXIgaGFwcGVucy4gVGhlIHN5bXB0b20gaGFzIGJlZW4gd2l0bmVzc2VkIHdoZW4gdXNpbmcg VENHCmFjY2VsZXJhdGlvbjsgS1ZNIHNlZW1zIHRvIG1hc2sgdGhlIGlzc3VlLiBUaGUgaXNzdWUg cGVyc2lzdHMgd2l0aCB0aGUKZm9sbG93aW5nIChsYXRlc3QpIHN0YWJsZSBRRU1VIHJlbGVhc2Vz OiB2NS4yLjAsIHY2LjIuMCwgdjcuMi4wLiBDdXJyZW50bHkKdGhlcmUgaXMgbm8gc3RhYmxlIHJl bGVhc2UgdGhhdCBhZGRyZXNzZXMgdGhlIHByb2JsZW0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ICgiYWNwaTogY3B1aHA6IGZpeA0KKyAgICAgIC8vIGd1ZXN0LXZpc2libGUgbWF4aW11 bSBhY2Nlc3Mgc2l6ZSB0byB0aGUgbGVnYWN5IHJlZyBibG9jayIsDQorICAgICAgLy8gMjAyMy0w MS0wOCksIHRvIGJlIGluY2x1ZGVkIGluIFFFTVUgdjguMC4wLg0KKyAgICAgIC8vDQorICAgICAg Ly8gSWYgd2UncmUgYWZmZWN0ZWQgYnkgdGhpcyBRRU1VIGJ1ZywgdGhlbiB3ZSBtdXN0IG5vdCBj b250aW51ZTogaXQNCisgICAgICAvLyBjb25mdXNlcyB0aGUgbXVsdGlwcm9jZXNzaW5nIGluIFVl ZmlDcHVQa2cvTGlicmFyeS9NcEluaXRMaWIsIGFuZA0KKyAgICAgIC8vIGJyZWFrcyBDUFUgaG90 KHVuKXBsdWcgd2l0aCBTTUkgaW4gT3ZtZlBrZy9DcHVIb3RwbHVnU21tLg0KKyAgICAgIC8vDQor ICAgICAgaWYgKFByZXNlbnQgPT0gMCkgew0KKyAgICAgICAgREVCVUcgKCgNCisgICAgICAgICAg REVCVUdfRVJST1IsDQorICAgICAgICAgICIlYTogQnJva2VuIENQVSBob3RwbHVnIHJlZ2lzdGVy IGJsb2NrOiBQcmVzZW50PSV1IFBvc3NpYmxlPSV1LlxuIg0KKyAgICAgICAgICAiJWE6IFVwZGF0 ZSBRRU1VIHRvIHY4LCBvciB0byBzdGFibGUgd2l0aCBkYWIzMGZiZWYzODkgYmFja3BvcnRlZC5c biINCisgICAgICAgICAgIiVhOiBSZWZlciB0byAiDQorICAgICAgICAgICI8aHR0cHM6Ly9idWd6 aWxsYS50aWFub2NvcmUub3JnL3Nob3dfYnVnLmNnaT9pZD00MjUwPi5cbiIsDQorICAgICAgICAg IF9fRlVOQ1RJT05fXywNCisgICAgICAgICAgUHJlc2VudCwNCisgICAgICAgICAgUG9zc2libGUs DQorICAgICAgICAgIF9fRlVOQ1RJT05fXywNCisgICAgICAgICAgX19GVU5DVElPTl9fDQorICAg ICAgICAgICkpOw0KKyAgICAgICAgQVNTRVJUIChGQUxTRSk7DQorICAgICAgICBDcHVEZWFkTG9v cCAoKTsNCisgICAgICB9DQorDQogICAgICAgLy8NCiAgICAgICAvLyBTYW5pdHkgY2hlY2s6IGZ3 X2NmZyBhbmQgdGhlIG1vZGVybiBDUFUgaG90cGx1ZyBpbnRlcmZhY2Ugc2hvdWxkDQogICAgICAg Ly8gcmV0dXJuIHRoZSBzYW1lIGJvb3QgQ1BVIGNvdW50Lg0K