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

From: Roman Kagan
Date: Thu Dec 13 2018 - 07:18:19 EST


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 Kagan <rkagan@xxxxxxxxxxxxx>
> Signed-off-by: Vitaly Kuznetsov <vkuznets@xxxxxxxxxx>
> ---
> arch/x86/kvm/hyperv.c | 5 +++++
> 1 file changed, 5 insertions(+)

Reviewed-by: Roman Kagan <rkagan@xxxxxxxxxxxxx>