Re: [PATCH v4 6/7] x86/hyper-v: detect nested features

2018-03-18 Thread Thomas Gleixner
On Sun, 18 Mar 2018, Thomas Gleixner wrote: > On Fri, 16 Mar 2018, Vitaly Kuznetsov wrote: > > > > + if (ms_hyperv.hints & HV_X64_ENLIGHTENED_VMCS_RECOMMENDED) > > + ms_hyperv.nested_features = > > + cpuid_eax(HYPERV_CPUID_NESTED_FEATURES); > > Please add curly bra

Re: [PATCH v4 6/7] x86/hyper-v: detect nested features

2018-03-18 Thread Thomas Gleixner
On Fri, 16 Mar 2018, Vitaly Kuznetsov wrote: > > + if (ms_hyperv.hints & HV_X64_ENLIGHTENED_VMCS_RECOMMENDED) > + ms_hyperv.nested_features = > + cpuid_eax(HYPERV_CPUID_NESTED_FEATURES); Please add curly braces. Rationale: https://marc.info/?l=linux-ke

[PATCH v4 6/7] x86/hyper-v: detect nested features

2018-03-16 Thread Vitaly Kuznetsov
TLFS 5.0 says: "Support for an enlightened VMCS interface is reported with CPUID leaf 0x4004. If an enlightened VMCS interface is supported, additional nested enlightenments may be discovered by reading the CPUID leaf 0x400A (see 2.4.11)." Signed-off-by: Vitaly Kuznetsov Reviewed-by: Mic