Re: [PATCH v2 2/2] x86/kvm/hyper-v: disallow setting illegal vectors for direct mode stimers

2018-12-13 Thread Roman Kagan
On Wed, Dec 12, 2018 at 05:50:17PM +0100, Vitaly Kuznetsov wrote: > APIC vectors used for direct mode stimers should be valid for lAPIC and > just like genuine Hyper-V we should #GP when an illegal one is specified. > > Add the appropriate check to stimer_set_config() > > Suggested-by: Roman

[PATCH v2 2/2] x86/kvm/hyper-v: disallow setting illegal vectors for direct mode stimers

2018-12-12 Thread Vitaly Kuznetsov
APIC vectors used for direct mode stimers should be valid for lAPIC and just like genuine Hyper-V we should #GP when an illegal one is specified. Add the appropriate check to stimer_set_config() Suggested-by: Roman Kagan Signed-off-by: Vitaly Kuznetsov --- arch/x86/kvm/hyperv.c | 5 + 1