Re: [libvirt] [RFC PATCH 01/12] domain_conf: allocate cpu's apic id dynamically

2015-01-22 Thread Zhu Guihua
On Wed, 2015-01-21 at 09:56 +0100, Peter Krempa wrote: On Wed, Jan 21, 2015 at 16:00:53 +0800, Zhu Guihua wrote: Add a bitmap apic_idmap to store status of APIC IDs. If you want to use an APIC ID, you can find a minimum value which has not been used in the bitmap. Signed-off-by: Zhu

[libvirt] [RFC PATCH 01/12] domain_conf: allocate cpu's apic id dynamically

2015-01-21 Thread Zhu Guihua
Add a bitmap apic_idmap to store status of APIC IDs. If you want to use an APIC ID, you can find a minimum value which has not been used in the bitmap. Signed-off-by: Zhu Guihua zhugh.f...@cn.fujitsu.com --- src/conf/domain_conf.c | 15 +++ src/conf/domain_conf.h | 3 +++

Re: [libvirt] [RFC PATCH 01/12] domain_conf: allocate cpu's apic id dynamically

2015-01-21 Thread Peter Krempa
On Wed, Jan 21, 2015 at 16:00:53 +0800, Zhu Guihua wrote: Add a bitmap apic_idmap to store status of APIC IDs. If you want to use an APIC ID, you can find a minimum value which has not been used in the bitmap. Signed-off-by: Zhu Guihua zhugh.f...@cn.fujitsu.com --- src/conf/domain_conf.c