RE: Any standard kernel API to dynamically allocate/free per-cpu vectors on x86?

2018-04-05 Thread Dexuan Cui
> From: Thomas Gleixner > > Can you please give a little more guidance? e.g. is there any similar > > driver, > > any pointer to the required APIs, etc. > > Your quick pointer would help a lot! > > > > BTW, so far, Hyper-V doesn't support CPU hotplug, but it supports dynamic > > CPU online/offline

RE: Any standard kernel API to dynamically allocate/free per-cpu vectors on x86?

2018-04-05 Thread Thomas Gleixner
Dexuan, On Wed, 4 Apr 2018, Dexuan Cui wrote: > > From: Thomas Gleixner > > That needs a very simple and minimal virtual interrupt controller driver > > which is mostly a dummy implementation except for the activation function > > which would allow you to retrieve the vector number and store it in

RE: Any standard kernel API to dynamically allocate/free per-cpu vectors on x86?

2018-04-04 Thread Dexuan Cui
> From: Thomas Gleixner > > I'm wondering if there is such a standard kernel API on x86. > > As I skimmed through the code, I haven't found it yet, if any. > > > We don't have a simple way to do such allocations because they involve IDT > entry manipulation. Hi tglx, Thanks for the quick detailed

Re: Any standard kernel API to dynamically allocate/free per-cpu vectors on x86?

2018-04-04 Thread Thomas Gleixner
Dexuan, On Wed, 4 Apr 2018, Dexuan Cui wrote: > Hi, > Recently, two Hyper-V specific vectors were introduced in > arch/x86/include/asm/irq_vectors.h: > > #if IS_ENABLED(CONFIG_HYPERV) > #define HYPERV_REENLIGHTENMENT_VECTOR 0xee > #define HYPERV_STIMER0_VECTOR 0xed > #endif > > What

Any standard kernel API to dynamically allocate/free per-cpu vectors on x86?

2018-04-04 Thread Dexuan Cui
Hi, Recently, two Hyper-V specific vectors were introduced in arch/x86/include/asm/irq_vectors.h: #if IS_ENABLED(CONFIG_HYPERV) #define HYPERV_REENLIGHTENMENT_VECTOR 0xee #define HYPERV_STIMER0_VECTOR 0xed #endif What if we need more such vectors on Hyper-V? This static global reserva