Bug 1937564

Summary: [RFE] support VCPU hot unplug in OVMF/edk2
Product: Red Hat Enterprise Linux 8 Reporter: Ademar Reis <areis>
Component: edk2Assignee: Laszlo Ersek <lersek>
Status: CLOSED ERRATA QA Contact: Yumei Huang <yuhuang>
Severity: medium Docs Contact:
Priority: medium    
Version: ---CC: berrange, chayang, coli, jinzhao, juzhang, kraxel, lersek, mrezanin, pbonzini, philmd, virt-maint, xuwei, yfu, yuhuang
Target Milestone: pre-dev-freezeKeywords: FutureFeature, Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: edk2-20210527gite1999b264f1f-1.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-11-09 18:06:53 UTC Type: Feature Request
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version: edk2-stable202105
Embargoed:
Bug Depends On: 1938238    
Bug Blocks: 1849172    

Description Ademar Reis 2021-03-11 01:25:15 UTC
Hot-unplug is usually tracked, implemented and tested as a separate feature, due to the additional complexity.

This bug was initially created as a copy of Bug #1454803

OVMF (built from upstream edk2 @ f78c8bf2c64f ("OvmfPkg/README: document 4MB flash layout", 2017-05-06)), using the SMM stack, does not implement VCPU hotplug / hot-unplug.

Investigate & implement the feature.

It will almost certainly require upstream QEMU development too.

Comment 2 Laszlo Ersek 2021-03-16 14:09:33 UTC
The upstream v9 series:

* [edk2-devel] [PATCH v9 00/10] support CPU hot-unplug
msgid: <20210312062656.2477515-1-ankur.a.arora>
https://edk2.groups.io/g/devel/message/72702
https://listman.redhat.com/archives/edk2-devel-archive/2021-March/msg00449.html

has been merged as commit range 4751a48aeb2a..f3bdfc41866e, via <https://github.com/tianocore/edk2/pull/1494>.

Comment 3 Yumei Huang 2021-05-13 03:30:54 UTC
Hi Laszlo, 

Would you please set DTM? The qemu bug 1849172 is ON_QA, QE would like to know when the edk2 package is ready to test. Thanks!

Comment 10 Yanan Fu 2021-06-24 03:40:12 UTC
QE bot(pre verify): Set 'Verified:Tested,SanityOnly' as gating/tier1 test pass.

Comment 13 Yumei Huang 2021-06-30 02:04:53 UTC
Verify:
qemu-kvm-6.0.0-21.module+el8.5.0+11555+e0ab0d09
kernel-4.18.0-315.el8.x86_64
edk2-ovmf-20210527gite1999b264f1f-1.el8.noarch
Guest: RHEL.8.5.0, Win2022

Ran a round test of cpu hotplug/unplug under ovmf, all cases passed.

Comment 15 errata-xmlrpc 2021-11-09 18:06:53 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: edk2 security, bug fix, and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2021:4198