Re: [PATCH v3 2/6] KVM: nVMX: Enable nested virtualize x2apic mode.

From: Paolo Bonzini
Date: Tue Jan 27 2015 - 16:40:00 EST




On 24/01/2015 11:21, Wincy Van wrote:
> +static void nested_vmx_disable_intercept_for_msr(unsigned long *msr_bitmap_l1,
> + unsigned long *msr_bitmap_nested,
> + u32 msr, int type)
> +{
> + int f = sizeof(unsigned long);
> +
> + if (!cpu_has_vmx_msr_bitmap())
> + return;
> +

Also, make this a WARN_ON.

Paolo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/