From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joerg Roedel Subject: Re: List of unaccessible x86 states Date: Mon, 26 Oct 2009 10:17:31 +0100 Message-ID: <20091026091731.GF5326@amd.com> References: <4ADDB49B.3010101@siemens.com> <4AE2055A.3050001@web.de> <9D81B6EA-7161-4682-8685-79928C0AC2B3@suse.de> <4AE41F2F.2050700@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Cc: Alexander Graf , Jan Kiszka , kvm-devel list , Marcelo Tosatti , Gleb Natapov To: Avi Kivity Return-path: Received: from va3ehsobe003.messaging.microsoft.com ([216.32.180.13]:7050 "EHLO VA3EHSOBE003.bigfish.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755044AbZJZJRl (ORCPT ); Mon, 26 Oct 2009 05:17:41 -0400 Content-Disposition: inline In-Reply-To: <4AE41F2F.2050700@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On Sun, Oct 25, 2009 at 11:49:35AM +0200, Avi Kivity wrote: > On 10/24/2009 12:35 PM, Alexander Graf wrote: > > > >Hm, thinking about this again, it might be useful to have an > >"currently in nested VM" flag here. That way userspace can decide > >if it needs to get out of the nested state (for migration) or if > >it just doesn't care. > > Getting out of nested state involves modifying state (both memory > and registers). Nor can we in the general case force it. The guest > can set up a situation where it is impossible to #vmexit. There is actually more than that. If the guest runs in guest mode itself we also need to report the host state to be able to do an #vmexit after migration. In nested SVM the host state is not saved in the guest memory to prevent the guest from modifying it and break out of its virtualization jail. Joerg