From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 134.134.136.31, mailfrom: jiewen.yao@intel.com) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by groups.io with SMTP; Thu, 15 Aug 2019 02:55:16 -0700 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 Aug 2019 02:55:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,388,1559545200"; d="scan'208";a="167703949" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by orsmga007.jf.intel.com with ESMTP; 15 Aug 2019 02:55:14 -0700 Received: from fmsmsx123.amr.corp.intel.com (10.18.125.38) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 15 Aug 2019 02:55:14 -0700 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by fmsmsx123.amr.corp.intel.com (10.18.125.38) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 15 Aug 2019 02:55:14 -0700 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.19]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.62]) with mapi id 14.03.0439.000; Thu, 15 Aug 2019 17:55:11 +0800 From: "Yao, Jiewen" To: Paolo Bonzini , Laszlo Ersek , edk2-devel-groups-io CC: edk2-rfc-groups-io , qemu devel list , Igor Mammedov , "Chen, Yingwen" , "Nakajima, Jun" , "Boris Ostrovsky" , Joao Marcal Lemos Martins , Phillip Goerl Subject: Re: CPU hotplug using SMM with QEMU+OVMF Thread-Topic: CPU hotplug using SMM with QEMU+OVMF Thread-Index: AQHVUfF5lMVYZhTq/0GuokGqDPas2Kb6jzUA//+ZRQCAAdE5QA== Date: Thu, 15 Aug 2019 09:55:11 +0000 Message-ID: <74D8A39837DF1E4DA445A8C0B3885C503F75E4E9@shsmsx102.ccr.corp.intel.com> References: <8091f6e8-b1ec-f017-1430-00b0255729f4@redhat.com> <74D8A39837DF1E4DA445A8C0B3885C503F75B680@shsmsx102.ccr.corp.intel.com> <047801f8-624a-2300-3cf7-1daa1395ce59@redhat.com> In-Reply-To: <047801f8-624a-2300-3cf7-1daa1395ce59@redhat.com> Accept-Language: zh-CN, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Return-Path: jiewen.yao@intel.com Content-Language: en-US Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 SGkgUGFvbG8NCkkgYW0gbm90IHN1cmUgd2hhdCBkbyB5b3UgbWVhbiAtICJZb3UgZG8gbm90IG5l ZWQgYSByZXNldCB2ZWN0b3IgLi4uIi4NCklmIHNvLCB3aGVyZSBpcyB0aGUgZmlyc3QgaW5zdHJ1 Y3Rpb24gb2YgdGhlIG5ldyBDUFUgaW4gdGhlIHZpcnR1YWxpemF0aW9uIGVudmlyb25tZW50Pw0K UGxlYXNlIGhlbHAgbWUgdW5kZXJzdGFuZCB0aGF0IGF0IGZpcnN0LiBUaGVuIHdlIGNhbiBjb250 aW51ZSB0aGUgZGlzY3Vzc2lvbi4NCg0KVGhhbmsgeW91DQpZYW8gSmlld2VuDQoNCj4gLS0tLS1P cmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogUGFvbG8gQm9uemluaSBbbWFpbHRvOnBib256 aW5pQHJlZGhhdC5jb21dDQo+IFNlbnQ6IFdlZG5lc2RheSwgQXVndXN0IDE0LCAyMDE5IDEwOjA1 IFBNDQo+IFRvOiBZYW8sIEppZXdlbiA8amlld2VuLnlhb0BpbnRlbC5jb20+OyBMYXN6bG8gRXJz ZWsNCj4gPGxlcnNla0ByZWRoYXQuY29tPjsgZWRrMi1kZXZl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