Re: [PATCH] nVMX: Keep arch.pat in sync on L1-L2 switches

Arthur Chunqi Li
2013-08-05T02:19:46Z

On Sun, Aug 4, 2013 at 11:17 PM, Jan Kiszka <jan.kiszka@web.de> wrote:
> From: Jan Kiszka <jan.kiszka@siemens.com>
>
> When asking vmx to load the PAT MSR for us while switching from L1 to L2
> or vice versa, we have to update arch.pat as well as it may later be
> used again to load or read out the MSR content.
>
> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
> ---
>
> Arthur, please add your tested-by also officially.
This patch is generally good expect that we need to add
VM_EXIT_LOAD_IA32_PAT/VM_EXIT_SAVE_IA32_PAT to
nested_vmx_exit_ctls_high in function nested_vmx_setup_ctls_msrs() to
enable these two features. Currently only VM_ENTRY_LOAD_IA32_PAT is
enabled while all three are implemented.

Arthur