From: "Jan Beulich" Subject: vmx & efer Date: Fri, 04 May 2007 16:41:56 +0100 Message-ID: <463B7064.76E4.0078.0@novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Am I blind in that I cannot find the place where the guest intended EFER = value gets loaded into the CPU register? The VMCS has no field for this (other = than AMD's VMCB), and the guest_msr_state->flags bit for this register doesn't = get set anywhere. I'm implying that the guest thus always runs with all = features enabled that were enabled by the hypervisor (slight security issue, as = EFER.SCE set implies LSTAR was initialized, which may not be true). Further I am quite confused about the saving and restoring of CSTAR - all parts of the SDM state or imply that this register doesn't exist (as = syscall is supposedly invalid in compatibility mode), so it wouldn't need saving/resto= ring at all; there's one exception though: section 25.10.4.3 says "SYSCALL/SYSRE= T invocations can occur from either 32-bit compatibility mode application = code or from 64-bit application code." Thanks, Jan