From: Paolo Bonzini <pbonzini@redhat.com>
To: Arthur Chunqi Li <yzt356@gmail.com>
Cc: Gleb Natapov <gleb@redhat.com>, kvm <kvm@vger.kernel.org>,
Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>,
Jun Nakajima <jun.nakajima@intel.com>,
Yang Zhang <yang.z.zhang@intel.com>
Subject: Re: [PATCH v7 01/15] nEPT: Support LOAD_IA32_EFER entry/exit controls for L1
Date: Mon, 5 Aug 2013 07:48:54 -0400 (EDT) [thread overview]
Message-ID: <346584789.9552175.1375703334046.JavaMail.root@redhat.com> (raw)
In-Reply-To: <CABpY8MLo7wC0jd6a3jeJHTi+dOTvE2bvMOZMjJLYJRS1zOMzAA@mail.gmail.com>
> > diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c
> > index e999dc7..27efa6a 100644
> > --- a/arch/x86/kvm/vmx.c
> > +++ b/arch/x86/kvm/vmx.c
> > @@ -2198,7 +2198,8 @@ static __init void nested_vmx_setup_ctls_msrs(void)
> > #else
> > nested_vmx_exit_ctls_high = 0;
> > #endif
> > - nested_vmx_exit_ctls_high |= VM_EXIT_ALWAYSON_WITHOUT_TRUE_MSR;
> > + nested_vmx_exit_ctls_high |= (VM_EXIT_ALWAYSON_WITHOUT_TRUE_MSR |
> > + VM_EXIT_LOAD_IA32_EFER);
>
> Gleb, why we don't need to check whether host supports
> VM_EXIT_LOAD_IA32_EFER here, as what you noted in my
> VM_EXIT_LOAD_IA32_PAT patch?
The host can also emulate VM_EXIT_LOAD_IA32_EFER using the
VM-exit MSR-load feature. If neither EFER save/load nor
MSR save/load are available, I believe you are right and
the feature should not be available in nested VMX.
next prev parent reply other threads:[~2013-08-05 11:48 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-05 8:07 [PATCH v7 00/15] Nested EPT Gleb Natapov
2013-08-05 8:07 ` [PATCH v7 01/15] nEPT: Support LOAD_IA32_EFER entry/exit controls for L1 Gleb Natapov
2013-08-05 11:27 ` Arthur Chunqi Li
2013-08-05 11:40 ` Gleb Natapov
2013-08-06 7:47 ` Jan Kiszka
2013-08-06 7:51 ` Gleb Natapov
2013-08-06 7:55 ` Jan Kiszka
2013-08-06 8:00 ` Gleb Natapov
2013-08-06 8:18 ` Jan Kiszka
2013-08-06 8:24 ` Gleb Natapov
2013-08-05 11:48 ` Paolo Bonzini [this message]
2013-08-05 12:05 ` Gleb Natapov
2013-08-05 8:07 ` [PATCH v7 02/15] nEPT: Fix cr3 handling in nested exit and entry Gleb Natapov
2013-08-05 8:07 ` [PATCH v7 03/15] nEPT: Fix wrong test in kvm_set_cr3 Gleb Natapov
2013-08-05 8:07 ` [PATCH v7 04/15] nEPT: Move common code to paging_tmpl.h Gleb Natapov
2013-08-05 8:07 ` [PATCH v7 05/15] nEPT: make guest's A/D bits depends on guest's paging mode Gleb Natapov
2013-08-05 8:07 ` [PATCH v7 06/15] nEPT: Support shadow paging for guest paging without A/D bits Gleb Natapov
2013-08-05 8:07 ` [PATCH v7 07/15] nEPT: Add EPT tables support to paging_tmpl.h Gleb Natapov
2013-08-05 8:07 ` [PATCH v7 08/15] nEPT: Redefine EPT-specific link_shadow_page() Gleb Natapov
2013-08-05 8:07 ` [PATCH v7 09/15] nEPT: correctly check if remote tlb flush is needed for shadowed EPT tables Gleb Natapov
2013-08-05 8:07 ` [PATCH v7 10/15] nEPT: Add nEPT violation/misconfigration support Gleb Natapov
2013-08-06 8:01 ` Jan Kiszka
2013-08-06 9:00 ` Gleb Natapov
2013-08-05 8:07 ` [PATCH v7 11/15] nEPT: MMU context for nested EPT Gleb Natapov
2013-08-05 8:07 ` [PATCH v7 12/15] nEPT: Nested INVEPT Gleb Natapov
2013-08-05 8:53 ` Xiao Guangrong
2013-08-05 8:07 ` [PATCH v7 13/15] nEPT: Advertise EPT to L1 Gleb Natapov
2013-08-06 8:20 ` Jan Kiszka
2013-08-06 9:02 ` Gleb Natapov
2013-08-05 8:07 ` [PATCH v7 14/15] nEPT: Some additional comments Gleb Natapov
2013-08-05 8:07 ` [PATCH v7 15/15] nEPT: Miscelleneous cleanups Gleb Natapov
2013-08-07 14:07 ` [PATCH v7 00/15] Nested EPT Paolo Bonzini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=346584789.9552175.1375703334046.JavaMail.root@redhat.com \
--to=pbonzini@redhat.com \
--cc=gleb@redhat.com \
--cc=jun.nakajima@intel.com \
--cc=kvm@vger.kernel.org \
--cc=xiaoguangrong@linux.vnet.ibm.com \
--cc=yang.z.zhang@intel.com \
--cc=yzt356@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.