[SeaBIOS] [PATCH] KVM vcpu hotplug seabios infrastructure

Liu, Jinsong jinsong.liu at intel.com
Tue May 18 11:08:29 CEST 2010


Hi, Kevin, Gleb, Avi, and Yunhong

I have updated vcpu hotplug seabios infrastructure, as attached. Please kindly review it, thanks!

--------------------------------------------
This patch is to support KVM vcpu hotplug feature.
It ported from KVM bochs bios, and update some points to KVM seabios:
1. build ssdt with 15/255 processor obj, which separately support Win2000 and other oses;
2. build madt accordingly, protect it as 'E820_NVS', and keep madt checksum and lapic flag correctly when cpu hotplug;
3. define Processor under \_SB instead of \_PR, so that it works better with latest linux like 2.6.32 later;
4. for Processor _MAT method, explicitly transfer it 'ToBuffer' so that os will not confused with 'Integer' which will result in parse failure;
5. for Processor _STA method, use 0x0 instead of 0x9 for cpu hot-remove, which matchs better with ACPI 4.0 spec, and works better with latest linux;
6. add Processor _EJ0 method, so that 'eject' appear under linux /sys, and triggered by uevent to make cpu hot-remove;
-------------------------------------------

Thanks,
Jinsong

-------------- next part --------------
A non-text attachment was scrubbed...
Name: kvm-vcpu-hotplug-seabios.patch
Type: application/octet-stream
Size: 14769 bytes
Desc: kvm-vcpu-hotplug-seabios.patch
URL: <http://www.seabios.org/pipermail/seabios/attachments/20100518/9cfe97e8/attachment-0001.obj>


More information about the SeaBIOS mailing list