Re: [PATCH] kvm-unit-tests: VMX: Fix two minor bugs

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

 



Hi Paolo,

Sorry but I should trouble you merging these two minor changes to vmx branch.

Until now, all the commits in vmx branch seems fine (if others have no
comments). Because I have some patches to commit based on vmx branch,
should we merge this branch to master or I just commit patches based
on vmx?

Thanks,
Arthur

On Wed, Sep 11, 2013 at 11:11 AM, Arthur Chunqi Li <yzt356@xxxxxxxxx> wrote:
> This patch just contains two minor changes to EPT framwork.
> 1. Reorder macro definition
> 2. Fix bug of setting CPU_EPT without check.
>
> Signed-off-by: Arthur Chunqi Li <yzt356@xxxxxxxxx>
> ---
>  x86/vmx.h       |    2 +-
>  x86/vmx_tests.c |    2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/x86/vmx.h b/x86/vmx.h
> index e02183f..dc1ebdf 100644
> --- a/x86/vmx.h
> +++ b/x86/vmx.h
> @@ -366,9 +366,9 @@ enum Ctrl0 {
>         CPU_NMI_WINDOW          = 1ul << 22,
>         CPU_IO                  = 1ul << 24,
>         CPU_IO_BITMAP           = 1ul << 25,
> +       CPU_MSR_BITMAP          = 1ul << 28,
>         CPU_MONITOR             = 1ul << 29,
>         CPU_PAUSE               = 1ul << 30,
> -       CPU_MSR_BITMAP          = 1ul << 28,
>         CPU_SECONDARY           = 1ul << 31,
>  };
>
> diff --git a/x86/vmx_tests.c b/x86/vmx_tests.c
> index e891a9f..0759e10 100644
> --- a/x86/vmx_tests.c
> +++ b/x86/vmx_tests.c
> @@ -925,7 +925,7 @@ static void ept_init()
>         ctrl_cpu[1] = (ctrl_cpu[1] | CPU_EPT)
>                 & ctrl_cpu_rev[1].clr;
>         vmcs_write(CPU_EXEC_CTRL0, ctrl_cpu[0]);
> -       vmcs_write(CPU_EXEC_CTRL1, ctrl_cpu[1] | CPU_EPT);
> +       vmcs_write(CPU_EXEC_CTRL1, ctrl_cpu[1]);
>         if (setup_ept())
>                 init_fail = true;
>         data_page1 = alloc_page();
> --
> 1.7.9.5
>
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[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