Re: [PATCH 2/7] KVM: nVMX: Move the checks for VM-Execution Control Fields to a separate helper function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Dec 3, 2018 at 2:24 PM Krish Sadhukhan
<krish.sadhukhan@xxxxxxxxxx> wrote:
>
>
>
> On 12/03/2018 01:06 PM, Jim Mattson wrote:
> > On Mon, Dec 3, 2018 at 12:24 PM Krish Sadhukhan
> > <krish.sadhukhan@xxxxxxxxxx> wrote:
> >>
> >>
> >> On 12/03/2018 11:40 AM, Jim Mattson wrote:
> >>> On Fri, Nov 30, 2018 at 11:28 AM Krish Sadhukhan
> >>> <krish.sadhukhan@xxxxxxxxxx> wrote:
> >>>> .. to improve readability and maintainability, and to align the code as per
> >>>> the layout of the checks in chapter "VM Entries" in Intel SDM vol 3C.
> >>>>
> >>>> Signed-off-by: Krish Sadhukhan <krish.sadhukhan@xxxxxxxxxx>
> >>>> Reviewed-by: Mihai Carabas <mihai.carabas@xxxxxxxxxx>
> >>>> Reviewed-by: Mark Kanda <mark.kanda@xxxxxxxxxx>
> >>> I'm not sure that you've accomplished your goal. For instance, the
> >>> very first bullet point under section 26.2.1.1: VM-Execution Control
> >>> Fields is:
> >>> o  Reserved bits in the pin-based VM-execution controls must be set properly.
> >>>
> >>> Yet, you didn't move that check into nested_check_vm_execution_controls().
> >> Are you referring to the following check ?
> >>
> >> !vmx_control_verify(vmcs12->pin_based_vm_exec_control,
> >> vmx->nested.msrs.pinbased_ctls_low,
> >> vmx->nested.msrs.pinbased_ctls_high) ||
> > That's the one.
>
> It is in nested_check_vm_execution_controls().  Am I missing something ?

Maybe I just don't read diffs very well. :-)



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux